Skip to content

Commit

Permalink
UPSTREAM: <carry>: fix [sig-auth] ServiceAccounts no secret-based ser…
Browse files Browse the repository at this point in the history
…vice account token should be auto-generated
  • Loading branch information
tkashem authored and soltysh committed Aug 23, 2022
1 parent 7919623 commit c08d657
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/auth/service_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ var _ = SIGDescribe("ServiceAccounts", func() {
time.Sleep(10 * time.Second)
sa, err := f.ClientSet.CoreV1().ServiceAccounts(f.Namespace.Name).Get(context.TODO(), "default", metav1.GetOptions{})
framework.ExpectNoError(err)
framework.ExpectEmpty(sa.Secrets)

// TODO: OpenShift creates a Secret with a prefix "default-dockercfg", is the
// following assertion valid?
framework.ExpectEqual(len(sa.Secrets), 1)
framework.ExpectEqual(strings.HasPrefix(sa.Secrets[0].Name, "default-dockercfg"), true)
}
})

Expand Down

0 comments on commit c08d657

Please sign in to comment.