summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/tests/create_instance_tests.py
AgeCommit message (Collapse)AuthorFilesLines
2017-03-10Merge "Add DEBUG logs to SimpleHealthCheck for VM console output."Steven Pisarski1-19/+45
2017-03-10Add DEBUG logs to SimpleHealthCheck for VM console output.spisarski1-19/+45
The test in the class SimpleHealthCheck uses the console output to determine whether or not the VM obtains a DHCP lease which contains a very image-specific check. When a client changes the image from what the test was designed for, the console output can change causing the test to fail unless it is simply timing out. This patch will output the full console log on failure or on success when the logger is configured as DEBUG. JIRA: SNAPS-47 Change-Id: I2041ca1aed8bd1e2fb65932591f4acbd4d3cd720 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-03-10reduce instance's memory sizeSerenaFeng1-7/+7
when using snaps to test small OpenStack env(devstack or all-in-one), testcase will fail due to not enough memory for a vm. As a basic test using cirros, only allocating ip and test the connectivity is needed, 128M should be enough. the error msg is: File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 80, in request raise exceptions.from_response(resp, body, url, method) ClientException: Unknown Error (HTTP 504) Change-Id: Ibfb27018ffd25292bcf80f69e8cb205b2c9c334b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-03-08Merge "Adapt integration tests to use custom image config"Steven Pisarski1-56/+217
2017-03-08Adapt integration tests to use custom image configCristina Pauna1-56/+217
This fix uses the possibility to pass custom imformation about the image via image_metadata variable. In the integration tests it checks for this info and creates a 3-part image if the kernel_url and ramdisk_url are set. The fix also allows the default url to be overriden as well as passing extra-properties. All the metadata info comes from the app. The part in functest where the custom config is set for creating a 3-part image is https://gerrit.opnfv.org/gerrit/29987 Change-Id: Ib2ad823705dbea68d672514c7c89b150c9c6dc63 Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
2017-03-06Add check that SSH validate returns truerandyl1-2/+2
The SSH Validate call needs to be checked before passing tests. test_ssh_client_fip_before_active and test_ssh_client_fip_after_active run the SSH Verify function, but do not check the return value. You will see an error in the test log file, but the test will appear to have passed. JIRA: SNAPS-45 Added an Assert True test to the SSH Validate return. Change-Id: Ib86ec38c7b5a64061a1ace4293336e3021c59013 Signed-off-by: randyl <r.levensalor@cablelabs.com>
2017-03-06Adapt simple health check to use 3-part imageCristina Pauna1-13/+31
This fix adds the possibility to pass custom imformation about the image via image_metadata variable. In SimpleHealthcheck it checks for this info and creates a 3-part image if the kernel_url and ramdisk_url are set. The fix also allows the default url to be overriden as well as passing extra-properties. All the metadata info comes from the app. The part in functest where the custom config is set for creating a 3-part image is https://gerrit.opnfv.org/gerrit/#/c/29851/ JIRA: ARMBAND-222 Change-Id: I11435d8bab4cf097b4079b6984741869f83aee2b Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
2017-03-06Added the ability to give the tests the ability to add in flavor metadata.spisarski1-20/+29
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-03-01Merge "Add support for extra properties in an image"Steven Pisarski1-0/+125
2017-03-01Add support for extra properties in an imageCristina Pauna1-0/+125
This patch adds a new setting for images, extra_properties. This field is a dict and can be used to create a 3-part image by setting the kernel_id and the ramdisk_id of the main image. Unit tests have been added to set some generic property, for creation of the 3-part image, and for creating an instance with that 3-part image JIRA: SNAPS-32 Change-Id: Ifb53d1da1085fcd6429ddc0607c905522db5e8bb Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
2017-02-28Ensuring all instances must have ports/network.spisarski1-51/+58
Fixing the addition of security groups during server instantiation. JIRA: SNAPS-35 Change-Id: Id29b18ba1454538e2cd72ffa33ed3dc47120944f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-24Improve way to check instances getting an IPjose.lausuch1-4/+12
JIRA: SNAPS-33 Change-Id: I7f8e0ff80da97f6be6df21b20e0a878f2fc18636 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+1474
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>