Skip to content

Commit 4650d1d

Browse files
Merge pull request #16678 from jim-minter/tsb_tests_wait_serviceacct
Automatic merge from submit-queue (batch tested with PRs 16675, 16678). wait for builder service account on necessary templateinstance/tsb tests fixes #16676 (all being well)
2 parents d8ecd70 + 5ccc860 commit 4650d1d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

test/extended/templates/templateinstance_readiness.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ var _ = g.Describe("[Conformance][templates] templateinstance readiness test", f
9797
}
9898

9999
g.BeforeEach(func() {
100-
err := cli.Run("create").Args("-f", templatefixture).Execute()
100+
err := exutil.WaitForBuilderAccount(cli.KubeClient().Core().ServiceAccounts(cli.Namespace()))
101+
o.Expect(err).NotTo(o.HaveOccurred())
102+
103+
err = cli.Run("create").Args("-f", templatefixture).Execute()
101104
o.Expect(err).NotTo(o.HaveOccurred())
102105

103106
template, err = cli.TemplateClient().Template().Templates(cli.Namespace()).Get("cakephp-mysql-example", metav1.GetOptions{})

test/extended/templates/templateservicebroker_e2e.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ var _ = g.Describe("[Conformance][templates] templateservicebroker end-to-end te
5151
g.BeforeEach(func() {
5252
framework.SkipIfProviderIs("gce")
5353

54+
err := exutil.WaitForBuilderAccount(cli.KubeClient().Core().ServiceAccounts(cli.Namespace()))
55+
o.Expect(err).NotTo(o.HaveOccurred())
56+
5457
brokercli, portForwardCmdClose = EnsureTSB(tsbOC)
5558

5659
cliUser = &user.DefaultInfo{Name: cli.Username(), Groups: []string{"system:authenticated"}}
57-
var err error
5860

5961
// should have been created before the extended test runs
6062
template, err = cli.TemplateClient().Template().Templates("openshift").Get("cakephp-mysql-example", metav1.GetOptions{})

test/extended/templates/templateservicebroker_security.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ var _ = g.Describe("[Conformance][templates] templateservicebroker security test
4444
)
4545

4646
g.BeforeEach(func() {
47-
brokercli, portForwardCmdClose = EnsureTSB(tsbOC)
47+
err := exutil.WaitForBuilderAccount(cli.KubeClient().Core().ServiceAccounts(cli.Namespace()))
48+
o.Expect(err).NotTo(o.HaveOccurred())
4849

49-
var err error
50+
brokercli, portForwardCmdClose = EnsureTSB(tsbOC)
5051

5152
template, err = cli.TemplateClient().Template().Templates("openshift").Get("cakephp-mysql-example", metav1.GetOptions{})
5253
o.Expect(err).NotTo(o.HaveOccurred())

0 commit comments

Comments
 (0)