diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-03-02 12:01:34 -0700 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-03-06 09:07:48 -0700 |
commit | 8a6c7a2be06f25f9c8c18a80b1b54c3b3be8b62a (patch) | |
tree | 7c9262d61dd6f4402f6938884168d78989cdcf6f /snaps/provisioning/tests | |
parent | badc81a7ff469e02303a729c7544216258d40239 (diff) |
Added the ability to give the tests the ability to add in flavor metadata.
NFVI's configured for OVS/DPDK and fd.io scenarios required special
metadata for flavors in order for VM instances to be activated. This
patch allows for setting a value to be applied to all tests. With
this change, the default value is being removed that only partially
addressed this issue.
JIRA: SNAPS-38
Change-Id: Ic42944a849f710f631fe7ac6fbefb720a73f0b77
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/provisioning/tests')
-rw-r--r-- | snaps/provisioning/tests/ansible_utils_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/snaps/provisioning/tests/ansible_utils_tests.py b/snaps/provisioning/tests/ansible_utils_tests.py index dc108e0..552171f 100644 --- a/snaps/provisioning/tests/ansible_utils_tests.py +++ b/snaps/provisioning/tests/ansible_utils_tests.py @@ -85,7 +85,8 @@ class AnsibleProvisioningTests(OSIntegrationTestCase): # Create Flavor self.flavor_creator = create_flavor.OpenStackFlavor( self.admin_os_creds, - create_flavor.FlavorSettings(name=guid + '-flavor-name', ram=2048, disk=10, vcpus=2)) + create_flavor.FlavorSettings(name=guid + '-flavor-name', ram=2048, disk=10, vcpus=2, + metadata=self.flavor_metadata)) self.flavor_creator.create() # Create Key/Pair |