diff options
author | asteroide <thomas.duval@orange.com> | 2015-11-04 10:45:47 +0100 |
---|---|---|
committer | asteroide <thomas.duval@orange.com> | 2015-11-04 10:45:47 +0100 |
commit | cd2aa309f52cb9c2ae8bfb5f52219b59d82d31d7 (patch) | |
tree | 8faf6a28d68f477edf1e7307cbf032c99cd51800 /moonclient | |
parent | 447b35e9795ce9dea21212fbd78c7ff0c5b2e85d (diff) |
Add more tests (assignments for nova server set from low to high)
Change-Id: I3bd369cc3c6f3cfcc2c6e8ea207d7d638a9e08e5
Diffstat (limited to 'moonclient')
-rw-r--r-- | moonclient/moonclient/tests/tests_empty_policy.json | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/moonclient/moonclient/tests/tests_empty_policy.json b/moonclient/moonclient/tests/tests_empty_policy.json index f26da551..1320ecc9 100644 --- a/moonclient/moonclient/tests/tests_empty_policy.json +++ b/moonclient/moonclient/tests/tests_empty_policy.json @@ -910,7 +910,7 @@ "name": "add_assignment", "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", "result": "^$", - "description": "Add a new assignment to nova server", + "description": "Set the assignment 'low' to nova server", "command_options": "" }, { @@ -937,7 +937,54 @@ "name": "check nova command", "external_command": "nova list", "result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| PAUSED\\s+\\| [\\w\\-]+\\s+\\| Paused", - "description": "Check that we cannot list nova servers due to the current rules" + "description": "Check that we can still list nova servers due to the current rules" + }, + { + "name": "reactivate nova instance", + "external_command": "nova unpause $uuid_server", + "result": "^$", + "description": "Unpausing the server for next tests" + }, + + { + "name": "del_assignment", + "command": "object assignment delete $uuid_object_nova_server $uuid_object_category $uuid_object_scope_low", + "result": "^$", + "description": "Delete the assignment 'low' to nova server", + "command_options": "" + }, + { + "name": "add_assignment", + "command": "object assignment add $uuid_object_nova_server $uuid_object_category $uuid_object_scope_high", + "result": "^$", + "description": "Set the assignment 'high' to nova server", + "command_options": "" + }, + { + "name": "check_added_assignment", + "command": "object assignment list $uuid_object_nova_server $uuid_object_category", + "result": "$uuid_object_scope_high high", + "description": "Check added assignment.", + "command_options": "-c id -c name -f value" + }, + + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can now list nova servers due to the current rules" + }, + { + "name": "try to pause nova instance", + "external_command": "nova pause $uuid_server", + "result": "^$", + "description": "Pausing the server must be not possible now" + }, + { + "name": "check nova command", + "external_command": "nova list", + "result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| test_moonclient\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running", + "description": "Check that we can still list nova servers due to the current rules" }, |