Skip to content

Commit

Permalink
Add test for deprecated function for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed Feb 26, 2024
1 parent ab1124c commit 9c987b2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/configgrpc/configgrpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,25 @@ func TestGrpcServerAuthSettings(t *testing.T) {
assert.NotNil(t, srv)
}

func TestGrpcServerAuthSettings_Deprecated(t *testing.T) {
gss := &ServerConfig{
NetAddr: confignet.AddrConfig{
Endpoint: "0.0.0.0:1234",
},
}
gss.Auth = &configauth.Authentication{
AuthenticatorID: mockID,
}
host := &mockHost{
ext: map[component.ID]component.Component{
mockID: auth.NewServer(),
},
}
srv, err := gss.ToServer(host, componenttest.NewNopTelemetrySettings())
assert.NoError(t, err)
assert.NotNil(t, srv)
}

func TestGRPCClientSettingsError(t *testing.T) {
tt, err := componenttest.SetupTelemetry(componentID)
require.NoError(t, err)
Expand Down

0 comments on commit 9c987b2

Please sign in to comment.