Fix lack of share type id in share creation
One cephx rule negative test can fail in case Manila does not have
default share types set.
Fix that by adding the share type to the shares creation, avoiding
the scheduler to fail while chosing the most suitable backend.
Closes-Bug: #2069087
Change-Id: I0d47eed3777edb36540ba36be3eb5151e689ae91
diff --git a/manila_tempest_tests/tests/api/test_rules_negative.py b/manila_tempest_tests/tests/api/test_rules_negative.py
index 32c4e9f..84b416d 100644
--- a/manila_tempest_tests/tests/api/test_rules_negative.py
+++ b/manila_tempest_tests/tests/api/test_rules_negative.py
@@ -522,12 +522,13 @@
@tc.attr(base.TAG_NEGATIVE, base.TAG_API_WITH_BACKEND)
def test_can_apply_new_cephx_rules_when_one_is_in_error_state(self):
# Create share on "primary" tenant
- share_primary = self.create_share()
+ share_primary = self.create_share(share_type_id=self.share_type_id)
# Add access rule to "Joe" by "primary" user
self.allow_access(share_primary['id'], access_to='Joe')
# Create share on "alt" tenant
- share_alt = self.create_share(client=self.alt_shares_v2_client)
+ share_alt = self.create_share(
+ client=self.alt_shares_v2_client, share_type_id=self.share_type_id)
# Add access rule to "Joe" by "alt" user.
# Rule must be set to "error" status.
rule1 = self.allow_access(share_alt['id'],