[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
This commit is contained in:
Marc Koderer 2016-11-17 17:02:46 +01:00
parent 97c764a9ea
commit 7683f2a3ca
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
cls.shares_admin_v2_client = shares_v2_client.SharesV2Client(
cls.os_admin.auth_provider)
def _create_share(self, share_protocol=None, size=1, name=None,
def _create_share(self, share_protocol=None, size=None, name=None,
snapshot_id=None, description=None, metadata=None,
share_network_id=None, share_type_id=None,
client=None, cleanup_in_class=True):
@ -79,7 +79,7 @@ class ShareScenarioTest(manager.NetworkScenarioTest):
metadata = metadata or {}
kwargs = {
'share_protocol': share_protocol,
'size': size,
'size': size or CONF.share.share_size,
'name': name,
'snapshot_id': snapshot_id,
'description': description,