summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_flavor.py
AgeCommit message (Collapse)AuthorFilesLines
2017-07-20Merge "Created new class FlavorSettingsError."Steven Pisarski1-8/+16
2017-07-20Fixed logger name.spisarski1-1/+1
Logger was named incorrectly causing confusion. Change-Id: I2e2fdae3a96d57036ea7d0aea8e2c2943f09de70 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-18Created new class FlavorSettingsError.spisarski1-8/+16
Raising FlavorSettingsError in FlavorSettings instead of Exception. JIRA: SNAPS-131 Change-Id: I1cbd077f97bd9294e7bb87fc51c4125d0ef23f42 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-06Created domain object for flavors.spisarski1-3/+2
OpenStack implementation details were leaking out into the flavor creator. JIRA: SNAPS-111 Change-Id: I59a77d02e30065a7f4560e74295b2084a83686df Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-19Changes FlavorSettings constructor to use kwargs.spisarski1-61/+57
And changed line lengths to 79 for pep8. JIRA: SNAPS-95 Change-Id: Icd3ac79c66049b596c14273abb146d957d6e4e67 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-16Ensure creators' constructors cannot raise exceptions.spisarski1-1/+2
While creating unit tests for vPing that is using SNAPS, exceptions can be raised when retrieving their respective OpenStack clients with incorrect credentials. Moved client retrieval to the create() method which one should expect exceptions to be raised. JIRA: SNAPS-81 Change-Id: Id8e4279f60b97704b25a89c6312dcf2ebdc3f459 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-03-06Added the ability to give the tests the ability to add in flavor metadata.spisarski1-2/+3
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>
2017-02-17Added the ability to add in configurable metadata to flavor creation.spisarski1-1/+13
In order to properly support standard and DPDK installations, the default metadata value is hw:mem_page_size=any. JIRA: SNAPS-28 JIRA: FUNCTEST-737 Change-Id: Ic882e8f85a97320d65ede3d6a00735a909a4ead2 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+167
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>