Update token controller test to test async retry

pull/6/head
Jordan Liggitt 2017-04-27 00:33:27 -04:00
parent 40d51462b2
commit f1207de4ea
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012
1 changed files with 3 additions and 0 deletions

View File

@ -369,10 +369,13 @@ func TestTokenCreation(t *testing.T) {
}, },
"updated serviceaccount with no secrets with resource conflict": { "updated serviceaccount with no secrets with resource conflict": {
ClientObjects: []runtime.Object{updatedServiceAccount(emptySecretReferences())}, ClientObjects: []runtime.Object{updatedServiceAccount(emptySecretReferences())},
IsAsync: true,
MaxRetries: 1,
UpdatedServiceAccount: serviceAccount(emptySecretReferences()), UpdatedServiceAccount: serviceAccount(emptySecretReferences()),
ExpectedActions: []core.Action{ ExpectedActions: []core.Action{
core.NewGetAction(schema.GroupVersionResource{Version: "v1", Resource: "serviceaccounts"}, metav1.NamespaceDefault, "default"), core.NewGetAction(schema.GroupVersionResource{Version: "v1", Resource: "serviceaccounts"}, metav1.NamespaceDefault, "default"),
core.NewGetAction(schema.GroupVersionResource{Version: "v1", Resource: "serviceaccounts"}, metav1.NamespaceDefault, "default"),
}, },
}, },