Files
Pablo BaeyensandGitHub 115bce10cd [configauth] Deprecate Authentication in favor of authentication.Config (#12904)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Deprecates `configauth.Authentication` in favor of
`configauth.AuthenticationConfig`.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #12875
2025-04-30 10:00:22 +00:00

21 lines
471 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package e2e
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/config/configauth"
"go.opentelemetry.io/collector/confmap"
)
func TestConfmapMarshalConfigAuth(t *testing.T) {
conf := confmap.New()
require.NoError(t, conf.Marshal(configauth.Config{}))
assert.Equal(t, map[string]any{}, conf.ToStringMap())
}