fix integration tests now JTI feature is enabled by default
This commit is contained in:
parent
1eab8be822
commit
dfc20d19c8
@ -306,6 +306,8 @@ func TestServiceAccountTokenCreate(t *testing.T) {
|
||||
checkPayload(t, treq.Status.Token, "null", "kubernetes.io", "node")
|
||||
|
||||
info := doTokenReview(t, cs, treq, false)
|
||||
// we are not testing the credential-id feature, so delete this value from the returned extra info map
|
||||
delete(info.Extra, apiserverserviceaccount.CredentialIDKey)
|
||||
if len(info.Extra) != 2 {
|
||||
t.Fatalf("expected Extra have length of 2 but was length %d: %#v", len(info.Extra), info.Extra)
|
||||
}
|
||||
@ -400,6 +402,8 @@ func TestServiceAccountTokenCreate(t *testing.T) {
|
||||
}
|
||||
|
||||
info := doTokenReview(t, cs, treq, false)
|
||||
// we are not testing the credential-id feature, so delete this value from the returned extra info map
|
||||
delete(info.Extra, apiserverserviceaccount.CredentialIDKey)
|
||||
if len(info.Extra) != len(expectedExtraValues) {
|
||||
t.Fatalf("expected Extra have length of %d but was length %d: %#v", len(expectedExtraValues), len(info.Extra), info.Extra)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user