Browse Source

Add a validation check that the share has been deleted

This patch validates that share has been deleted after
deletion of share instance.

Change-Id: I14db6e04d9635229e4554582268ba8c5f745b57a
changes/69/795769/1
lkuchlan 5 days ago
parent
commit
ac53004edd
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      manila_tempest_tests/tests/api/admin/test_admin_actions.py

+ 5
- 0
manila_tempest_tests/tests/api/admin/test_admin_actions.py View File

@ -16,6 +16,7 @@
import ddt
from tempest import config
from tempest.lib import decorators
from tempest.lib import exceptions as lib_exc
import testtools
from testtools import testcase as tc
@ -130,6 +131,10 @@ class AdminActionsTest(base.BaseSharesAdminTest):
instance["id"], s_type="share_instances")
self.shares_v2_client.wait_for_resource_deletion(
share_instance_id=instance["id"])
# Verify that the share has been deleted.
self.assertRaises(lib_exc.NotFound,
self.shares_v2_client.get_share,
share['id'])
@decorators.idempotent_id('d5a48182-ecd7-463e-a31a-148c81d3c5ed')
@tc.attr(base.TAG_POSITIVE, base.TAG_API_WITH_BACKEND)


Loading…
Cancel
Save