mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
make deployment unit tests need to respect subresources
This commit is contained in:
parent
422497b4cf
commit
b3f48f736f
@ -226,7 +226,7 @@ func (f *fixture) run_(deploymentName string, startInformers bool, expectError b
|
|||||||
}
|
}
|
||||||
|
|
||||||
expectedAction := f.actions[i]
|
expectedAction := f.actions[i]
|
||||||
if !expectedAction.Matches(action.GetVerb(), action.GetResource().Resource) {
|
if !(expectedAction.Matches(action.GetVerb(), action.GetResource().Resource) && action.GetSubresource() == expectedAction.GetSubresource()) {
|
||||||
f.t.Errorf("Expected\n\t%#v\ngot\n\t%#v", expectedAction, action)
|
f.t.Errorf("Expected\n\t%#v\ngot\n\t%#v", expectedAction, action)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user