| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package e2e |
| 5 |
|
| 6 |
import ( |
| 7 |
"testing" |
| 8 |
|
| 9 |
"github.com/stretchr/testify/assert" |
| 10 |
"github.com/stretchr/testify/require" |
| 11 |
|
| 12 |
"go.opentelemetry.io/collector/config/configauth" |
| 13 |
"go.opentelemetry.io/collector/confmap" |
| 14 |
) |
| 15 |
|
| 16 |
func TestConfmapMarshalConfigAuth(t *testing.T) { |
| 17 |
conf := confmap.New() |
| 18 |
require.NoError(t, conf.Marshal(configauth.Config{})) |
| 19 |
assert.Equal(t, map[string]any{}, conf.ToStringMap()) |
| 20 |
} |