Browse Source

[Tempest] Make share size configurable in scenario tests

The scenario tests missing a way to configure
the share size created during the test.

Change-Id: I58d433a39037cbdb4ad92f956cfc27c54739fe1a
Closes-bug: #1642548
Marc Koderer 2 years ago
parent
commit
7683f2a3ca
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      manila_tempest_tests/tests/scenario/manager_share.py

+ 2
- 2
manila_tempest_tests/tests/scenario/manager_share.py View File

@@ -50,7 +50,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
50 50
         cls.shares_admin_v2_client = shares_v2_client.SharesV2Client(
51 51
             cls.os_admin.auth_provider)
52 52
 
53
-    def _create_share(self, share_protocol=None, size=1, name=None,
53
+    def _create_share(self, share_protocol=None, size=None, name=None,
54 54
                       snapshot_id=None, description=None, metadata=None,
55 55
                       share_network_id=None, share_type_id=None,
56 56
                       client=None, cleanup_in_class=True):
@@ -79,7 +79,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
79 79
         metadata = metadata or {}
80 80
         kwargs = {
81 81
             'share_protocol': share_protocol,
82
-            'size': size,
82
+            'size': size or CONF.share.share_size,
83 83
             'name': name,
84 84
             'snapshot_id': snapshot_id,
85 85
             'description': description,

Loading…
Cancel
Save