mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Wait for controller events in resource conflict test
This commit is contained in:
parent
0421dbfee6
commit
24efb3736b
@ -325,10 +325,13 @@ func TestTokenCreation(t *testing.T) {
|
|||||||
},
|
},
|
||||||
"new serviceaccount with no secrets with resource conflict": {
|
"new serviceaccount with no secrets with resource conflict": {
|
||||||
ClientObjects: []runtime.Object{updatedServiceAccount(emptySecretReferences()), createdTokenSecret()},
|
ClientObjects: []runtime.Object{updatedServiceAccount(emptySecretReferences()), createdTokenSecret()},
|
||||||
|
IsAsync: true,
|
||||||
|
MaxRetries: 1,
|
||||||
|
|
||||||
AddedServiceAccount: serviceAccount(emptySecretReferences()),
|
AddedServiceAccount: 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"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"updated serviceaccount with no secrets": {
|
"updated serviceaccount with no secrets": {
|
||||||
|
Loading…
Reference in New Issue
Block a user