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 sanchezl committed Jan 5, 2023
1 parent a9753a1 commit 037536c
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 @@ -62,7 +62,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 037536c

Please sign in to comment.