Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for SA creation in etcd test #14051

Merged
merged 1 commit into from May 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/integration/etcd_storage_path_test.go
Expand Up @@ -24,6 +24,7 @@ import (

"github.com/openshift/origin/pkg/api/latest"
serverapi "github.com/openshift/origin/pkg/cmd/server/api"
"github.com/openshift/origin/pkg/cmd/server/bootstrappolicy"
osclientcmd "github.com/openshift/origin/pkg/cmd/util/clientcmd"
testutil "github.com/openshift/origin/test/util"
testserver "github.com/openshift/origin/test/util/server"
Expand Down Expand Up @@ -873,6 +874,13 @@ func testEtcdStoragePath(t *testing.T, etcdServer *etcdtest.EtcdTestServer, gett
if _, err := kubeClient.Core().Namespaces().Create(&kapi.Namespace{ObjectMeta: metav1.ObjectMeta{Name: testNamespace}}); err != nil {
t.Fatalf("error creating test namespace: %#v", err)
}
if err := testserver.WaitForServiceAccounts(
kubeClient,
testNamespace,
[]string{bootstrappolicy.DefaultServiceAccountName, bootstrappolicy.BuilderServiceAccountName, bootstrappolicy.DeployerServiceAccountName},
); err != nil {
t.Fatalf("error creating test namespace service accounts: %#v", err)
}

kindSeen := sets.NewString()
etcdSeen := map[schema.GroupVersionResource]empty{}
Expand Down