From c198ac70ffc5dead4d9734c289db29ccce4d2b08 Mon Sep 17 00:00:00 2001 From: vishal mahajan Date: Thu, 29 May 2014 13:15:58 +0530 Subject: [PATCH] Added swift CLI test cases Below test cases are added:- stat list capabilities help Optional arguments Change-Id: I0daacd6d970f343cc225e820fbddf967cd6915dc --- tempest/cli/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tempest/cli/__init__.py b/tempest/cli/__init__.py index 6aa98c4..0571f4f 100644 --- a/tempest/cli/__init__.py +++ b/tempest/cli/__init__.py @@ -83,6 +83,12 @@ class ClientTestBase(tempest.test.BaseTestCase): return self.cmd_with_auth( 'cinder', action, flags, params, admin, fail_ok) + def swift(self, action, flags='', params='', admin=True, fail_ok=False): + """Executes swift command for the given action.""" + flags += ' --os-endpoint-type %s' % CONF.object_storage.endpoint_type + return self.cmd_with_auth( + 'swift', action, flags, params, admin, fail_ok) + def neutron(self, action, flags='', params='', admin=True, fail_ok=False): """Executes neutron command for the given action.""" flags += ' --endpoint-type %s' % CONF.network.endpoint_type