diff options
author | 2015-11-25 15:10:23 +0000 | |
---|---|---|
committer | 2015-11-25 15:10:23 +0000 | |
commit | 37bfc828e629714733320cd32ce2ec1f7f5dc845 (patch) | |
tree | c816aa68529a8b1948fcec9f3282ec9c38ff2e27 /moonclient/moonclient/tests/tests_object_assignments.json | |
parent | fbdd3c6adc86353861fc48a8534523f85356b0cc (diff) | |
parent | 5a6c85a046dccc21752e4aa52670a5f22c231c18 (diff) |
Merge "Add a "no_result" key in JSON test files because "(?!...)" regular expression doesn't work as expected."
Diffstat (limited to 'moonclient/moonclient/tests/tests_object_assignments.json')
-rw-r--r-- | moonclient/moonclient/tests/tests_object_assignments.json | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/moonclient/moonclient/tests/tests_object_assignments.json b/moonclient/moonclient/tests/tests_object_assignments.json index 35fd34ab..fa834cce 100644 --- a/moonclient/moonclient/tests/tests_object_assignments.json +++ b/moonclient/moonclient/tests/tests_object_assignments.json @@ -5,7 +5,7 @@ { "name": "list tenant", "command": "tenant list", - "result": "(?!alt_demo)", + "no_result": "alt_demo", "description": "Check if tenant alt_demo is used." }, { @@ -121,7 +121,7 @@ { "name": "check_deleted_assignment", "command": "object assignment list $uuid_object $uuid_object_category", - "result": "(?!$uuid_object_scope)", + "no_result": "$uuid_object_scope", "description": "Check deleted assignment.", "command_options": "-c id -f value" }, @@ -134,6 +134,13 @@ "command_options": "" }, { + "name": "check_added_scope", + "command": "object scope list $uuid_object_category", + "no_result": "$uuid_object_scope", + "description": "Check added scope was deleted.", + "command_options": "-c id -f value" + }, + { "name": "delete_object_category", "command": "object category delete $uuid_object_category", "result": "^$", @@ -143,7 +150,7 @@ { "name": "list_object_category", "command": "object category list", - "result": "(?!$uuid_object_category)", + "no_result": "$uuid_object_category", "description": "Check that my_new_object_category object_category was deleted." }, { @@ -165,7 +172,7 @@ { "name": "list tenant", "command": "tenant list", - "result": "(?!alt_demo)", + "no_result": "alt_demo", "description": "Check if tenant alt_demo is used." }, { @@ -315,7 +322,7 @@ { "name": "check_deleted_assignment", "command": "object assignment list $uuid_object $uuid_object_category", - "result": "(?!$uuid_object_scope)", + "no_result": "$uuid_object_scope", "description": "Check deleted assignment.", "command_options": "-c id -f value" }, @@ -328,6 +335,13 @@ "command_options": "" }, { + "name": "check_deleted_scope", + "command": "object scope list $uuid_object_category", + "no_result": "$uuid_object_scope", + "description": "Check added scope was deleted.", + "command_options": "-c id -f value" + }, + { "name": "delete_object_category", "command": "object category delete $uuid_object_category", "result": "^$", @@ -337,7 +351,7 @@ { "name": "list_object_category", "command": "object category list", - "result": "(?!$uuid_object_category)", + "no_result": "$uuid_object_category", "description": "Check that my_new_object_category object_category was deleted." }, { |