Skip to content

Commit 2265297

Browse files
committed
Assert nil on standard host
1 parent e6d8fad commit 2265297

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ func TestCommandResponse(t *testing.T) {
737737

738738
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
739739
defer cancel()
740-
config, pkey, creds, _, err := c.Enroll(ctx, testutil.NewTestLogger(), "foobar")
740+
config, pkey, creds, meta, err := c.Enroll(ctx, testutil.NewTestLogger(), "foobar")
741741
require.NoError(t, err)
742742

743743
// make sure all credential values were set
@@ -750,6 +750,9 @@ func TestCommandResponse(t *testing.T) {
750750
assert.NotEmpty(t, config)
751751
assert.NotEmpty(t, pkey)
752752

753+
// no EndpointOIDC for standard host enrollments
754+
assert.Nil(t, meta.EndpointOIDC)
755+
753756
// This time sign the response with the correct CA key.
754757
responseToken := "abc123"
755758
res := map[string]any{"msg": "Hello, world!"}

0 commit comments

Comments
 (0)