mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--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
21 lines
471 B
Go
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())
|
|
}
|