Bugfix: Add case_name as constructor arg for snaps_smoke 25/33025/1
authorLinda Wang <wangwulin@huawei.com>
Thu, 6 Apr 2017 01:50:31 +0000 (01:50 +0000)
committerLinda Wang <wangwulin@huawei.com>
Thu, 6 Apr 2017 01:50:31 +0000 (01:50 +0000)
JIRA: FUNCTEST-791

When running snaps_smoke, it complains " __init__() got
an unexpected keyword argument 'case_name'"

Change-Id: I4a59828ba735ba14a286d000d1d061be14878d1c
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/opnfv_tests/openstack/snaps/smoke.py

index 45fa6de..63d5c12 100644 (file)
@@ -21,11 +21,10 @@ class SnapsSmoke(SnapsTestRunner):
     that exercise many of the OpenStack APIs within Keystone, Glance, Neutron,
     and Nova
     """
-    def __init__(self):
-        super(SnapsSmoke, self).__init__()
+    def __init__(self, case_name="snaps_smoke"):
+        super(SnapsSmoke, self).__init__(case_name)
 
         self.suite = unittest.TestSuite()
-        self.case_name = "snaps_smoke"
         use_fip = CONST.snaps_use_floating_ips
 
         # The snaps smoke test uses the same config as the