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

OpenShift-Rebase-Source: a031438
  • Loading branch information
tkashem authored and bertinatto committed Mar 6, 2024
1 parent c4da68b commit b59b6a9
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 @@ -64,7 +64,11 @@ var _ = SIGDescribe("ServiceAccounts", func() {
time.Sleep(10 * time.Second)
sa, err := f.ClientSet.CoreV1().ServiceAccounts(f.Namespace.Name).Get(ctx, "default", metav1.GetOptions{})
framework.ExpectNoError(err)
gomega.Expect(sa.Secrets).To(gomega.BeEmpty())

// TODO: OpenShift creates a Secret with a prefix "default-dockercfg", is the
// following assertion valid?
gomega.Expect(sa.Secrets).To(gomega.HaveLen(1))
gomega.Expect(sa.Secrets[0].Name).To(gomega.HavePrefix("default-dockercfg"))
}
})

Expand Down

0 comments on commit b59b6a9

Please sign in to comment.