From d1517415dbbbdd61c88cbc2779def3ebe9c3ceea Mon Sep 17 00:00:00 2001
From: licanwei
Date: Thu, 31 Oct 2019 10:33:09 +0800
Subject: [PATCH] Set volume default value to 1
In python3, the function max(None, int)
raise a typeError exception.
Change-Id: I8f0b8bf4fcfc3371e9249ec6460874c5382f8cbe
---
watcher_tempest_plugin/tests/scenario/manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/watcher_tempest_plugin/tests/scenario/manager.py b/watcher_tempest_plugin/tests/scenario/manager.py
index 408433b..c753b6b 100644
--- a/watcher_tempest_plugin/tests/scenario/manager.py
+++ b/watcher_tempest_plugin/tests/scenario/manager.py
@@ -200,7 +200,7 @@ class ScenarioTest(tempest.test.BaseTestCase):
server = clients.servers_client.show_server(body['id'])['server']
return server
- def create_volume(self, name=None, imageRef=None, size=None,
+ def create_volume(self, name=None, imageRef=None, size=1,
volume_type=None, clients=None):
if clients is None: