mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
fix failing UpsertBindingRules unit test (#15604)
UpsertBindingRules RPC changed in eacecb8,
validation happens after the ID check now, because we don't want validation to
fail for update payloads which may contain incomplete objects.
This commit is contained in:
committed by
GitHub
parent
01c82202ed
commit
73f7faeb3d
@@ -3147,6 +3147,7 @@ func TestACL_UpsertBindingRules(t *testing.T) {
|
||||
// Create another ACL binding rule that will fail validation. Attempting to
|
||||
// upsert this ensures the handler is triggering the validation function.
|
||||
aclBindingRule2 := mock.ACLBindingRule()
|
||||
aclBindingRule2.ID = ""
|
||||
aclBindingRule2.BindType = ""
|
||||
|
||||
aclBindingRuleReq5 := &structs.ACLBindingRulesUpsertRequest{
|
||||
|
||||
Reference in New Issue
Block a user