From 1550938c18fddb86e75c44b231349e3fff47cc11 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 15 Nov 2022 07:59:01 -0800 Subject: [PATCH] Remove deprecated configtest package (#6542) Signed-off-by: Bogdan Drutu Signed-off-by: Bogdan Drutu --- .chloggen/rmdepcfgtest.yaml | 11 +++++++++++ config/configtest/configtest.go | 22 ---------------------- config/configtest/doc.go | 16 ---------------- 3 files changed, 11 insertions(+), 38 deletions(-) create mode 100755 .chloggen/rmdepcfgtest.yaml delete mode 100644 config/configtest/configtest.go delete mode 100644 config/configtest/doc.go diff --git a/.chloggen/rmdepcfgtest.yaml b/.chloggen/rmdepcfgtest.yaml new file mode 100755 index 00000000000..1fec793a715 --- /dev/null +++ b/.chloggen/rmdepcfgtest.yaml @@ -0,0 +1,11 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: config/configtest + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove deprecated `configtest` package. + +# One or more tracking issues or pull requests related to the change +issues: [6542] diff --git a/config/configtest/configtest.go b/config/configtest/configtest.go deleted file mode 100644 index 5a599bbbe2c..00000000000 --- a/config/configtest/configtest.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package configtest // import "go.opentelemetry.io/collector/config/configtest" - -import ( - "go.opentelemetry.io/collector/component/componenttest" -) - -// Deprecated: [v0.64.0] use componenttest.CheckConfigStruct. -var CheckConfigStruct = componenttest.CheckConfigStruct diff --git a/config/configtest/doc.go b/config/configtest/doc.go deleted file mode 100644 index 1c0319cb4c0..00000000000 --- a/config/configtest/doc.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package configtest provides testing functionality for config package interfaces. -package configtest // import "go.opentelemetry.io/collector/config/configtest"