diff options
author | Huayu Ouyang <huayu.ouyang@mongodb.com> | 2021-03-09 23:53:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-11 19:04:49 +0000 |
commit | e32478da118c6c65ce37e10f787be0b00af6be16 (patch) | |
tree | 33fd532ce01b30105ecc09b7669c38323e3457af /buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl | |
parent | 254838f3481faa1b967d4c5798473b8bf5f4d384 (diff) | |
download | mongo-e32478da118c6c65ce37e10f787be0b00af6be16.tar.gz |
SERVER-54530 Extend buildscripts/idl/idl_check_compatibility.py to check for changes between access_check types and for changes in simple
Diffstat (limited to 'buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl')
-rw-r--r-- | buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl b/buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl index 0a7f64a32f8..e160fb20202 100644 --- a/buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl +++ b/buildscripts/idl/tests/compatibility_test_fail/new/compatibility_test_fail_new.idl @@ -1388,3 +1388,74 @@ commands: strict: true api_version: "1" reply_type: ValidatorsNotEqualStruct + + simpleCheckNotEqual: + description: "new command fails because its simple check is not equal to + the old check" + command_name: simpleCheckNotEqual + namespace: ignored + cpp_name: simpleCheckNotEqual + strict: true + api_version: "1" + reply_type: OkReply + access_check: + simple: + check: new + + simpleCheckNotEqualTwo: + description: "new command fails because it has a privilege while the old command + has a check" + command_name: simpleCheckNotEqualTwo + namespace: ignored + cpp_name: simpleCheckNotEqualTwo + strict: true + api_version: "1" + reply_type: OkReply + access_check: + simple: + privilege: + resource_pattern: resourcePattern + action_type: actionType + + simpleCheckNotEqualThree: + description: "new command fails because its simple check is not equal to + the old check" + command_name: simpleCheckNotEqualThree + namespace: ignored + cpp_name: simpleCheckNotEqualThree + strict: true + api_version: "1" + reply_type: OkReply + access_check: + simple: + check: None + + simpleResourcePatternNotEqual: + description: "new command fails because its simple privilege resource_pattern is not + equal to the old resource_pattern" + command_name: simpleResourcePatternNotEqual + namespace: ignored + cpp_name: simpleResourcePatternNotEqual + strict: true + api_version: "1" + reply_type: OkReply + access_check: + simple: + privilege: + resource_pattern: new + action_type: actionType + + newSimpleActionTypesNotSubset: + description: "new command fails because its simple privilege resource_pattern is not + equal to the old resource_pattern" + command_name: newSimpleActionTypesNotSubset + namespace: ignored + cpp_name: newSimpleActionTypesNotSubset + strict: true + api_version: "1" + reply_type: OkReply + access_check: + simple: + privilege: + resource_pattern: resourcePattern + action_type: [actionType, actionTypeThree] |