Merge "Fix wrong access-rule negative test"
diff --git a/manila_tempest_tests/tests/api/test_rules_negative.py b/manila_tempest_tests/tests/api/test_rules_negative.py
index 20db4eb..8049f14 100644
--- a/manila_tempest_tests/tests/api/test_rules_negative.py
+++ b/manila_tempest_tests/tests/api/test_rules_negative.py
@@ -19,6 +19,7 @@
 import testtools
 from testtools import testcase as tc
 
+from manila_tempest_tests.common import constants
 from manila_tempest_tests.tests.api import base
 from manila_tempest_tests import utils
 
@@ -166,12 +167,14 @@
             {"share_backend_name": 'invalid_backend'})
         share_type = self.create_share_type('invalid_backend',
                                             extra_specs=extra_specs,
-                                            client=self.admin_client)
+                                            client=self.admin_client,
+                                            cleanup_in_class=False)
         share_type = share_type['share_type']
         share = self.create_share(share_type_id=share_type['id'],
-                                  client=self.admin_client,
                                   cleanup_in_class=False,
                                   wait_for_status=False)
+        self.shares_v2_client.wait_for_share_status(
+            share['id'], constants.STATUS_ERROR)
         self.assertRaises(lib_exc.BadRequest,
                           self.admin_client.create_access_rule,
                           share["id"], access_type, access_to)