Aarch64 adaption in functest for snaps smoke 87/29987/2
authorCristina Pauna <cristina.pauna@enea.com>
Tue, 7 Mar 2017 17:48:34 +0000 (19:48 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Wed, 8 Mar 2017 16:28:25 +0000 (16:28 +0000)
This commit sends the aarch64 custom config to the snaps integration
tests. Since these are the same as the snaps healthcheck, no additional
values were added to config_aarch64_patch.yaml

Change-Id: I5f2302a3c65d47ec8fca661888268489e2c6ba35
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
functest/opnfv_tests/openstack/snaps/smoke.py

index 4b8ba7d..864bca5 100644 (file)
@@ -28,6 +28,12 @@ class SnapsSmoke(SnapsTestRunner):
         self.case_name = "snaps_smoke"
         use_fip = CONST.snaps_use_floating_ips
 
+        # The snaps smoke test uses the same config as the
+        # snaps_health_check suite, so reuse it here
+        image_custom_config = None
+        if hasattr(CONST, 'snaps_health_check'):
+            image_custom_config = CONST.snaps_health_check
+
         # Tests requiring floating IPs leverage files contained within the
         # SNAPS repository and are found relative to that path
         if use_fip:
@@ -39,4 +45,5 @@ class SnapsSmoke(SnapsTestRunner):
             CONST.openstack_creds,
             self.ext_net_name,
             use_keystone=CONST.snaps_use_keystone,
+            image_metadata=image_custom_config,
             use_floating_ips=use_fip)