summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-04-26Fixed test for security groups when checking for project/tenant IDstable/danubespisarski1-3/+11
This problem has only been observed on the WindRiver pod during the OPNFV Plug/Hackfest This is exactly the same patch that was checked in master JIRA: SNAPS-72 Change-Id: I595cf0bca7394d8ffd95cec5824afbacda80d3ef Signed-off-by: spisarski <s.pisarski@cablelabs.com>
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 Pisarski4-113/+450
2017-03-08Adapt integration tests to use custom image configCristina Pauna4-113/+450
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 Pauna3-19/+43
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-06Merge "Added the ability to give the tests the ability to add in flavor ↵Steven Pisarski7-55/+84
metadata."
2017-03-06Added the ability to give the tests the ability to add in flavor metadata.spisarski7-55/+84
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-03Fixed docs build and examplesrandyl11-93/+598
Modified index.rst to include the other docs. Removed redundnat items. Cleaned up the examples. JIRA: SNAPS-41 Change-Id: I7058f1604135f6a2af0376d7b3d2ebc7bafd63e7 Signed-off-by: randyl <r.levensalor@cablelabs.com>
2017-03-03Removed test class in question from the test builder.spisarski1-2/+14
test_suite_builder#add_openstack_integration_tests() which is being used to add SNAPS-OO tests to Functest.snaps_smoke test case. JIRA: SNAPS-39 Change-Id: Ib9d7fea3a132ac29078ce052b5e334c7e5076b61 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-03-01Added new 3-part image tests to test_suite_builder.py and documented themspisarski2-2/+30
in IntegrationTests.rst. JIRA: SNAPS-32 Change-Id: I20b3917840b5caf26f1a12caf0231f5f0801999d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-03-01Merge "Add support for extra properties in an image"Steven Pisarski5-16/+330
2017-03-01Add support for extra properties in an imageCristina Pauna5-16/+330
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-28Merge "Ensuring all instances must have ports/network. Fixing the addition ↵Steven Pisarski3-58/+74
of security groups during server instantiation."
2017-02-28Ensuring all instances must have ports/network.spisarski3-58/+74
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-27Added Ansible substitution value support for flavor IDs, image IDs, and ↵spisarski2-33/+89
image_user values to the SNAPS-OO application deploy_venv.py. Decided to stop raising an exception when ansible cannot properly apply the playbook and simply logging the problem as a WARN. Change-Id: I4ae74bbaa80a5d9763cc9352810c1620af3192af 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-20Make SNAPS repo installable as a python modulejose.lausuch1-0/+42
JIRA: SNAPS-29 Change-Id: I180a0ad0db531ba3c32ad35e41381baebd164724 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-20Merge "Adding INFO and LICENSE for review"Aric Gardner3-0/+35
2017-02-17Merge "Added the ability to add in configurable metadata to flavor creation. ↵Steven Pisarski2-5/+25
In order to properly support standard and DPDK installations, the default metadata value is hw:mem_page_size=any."
2017-02-17Merge "Converted existing markdown documentation to RST format. Removed MD ↵Steven Pisarski22-502/+987
versions. Moved examples directory up one under repo root Moved RST files under docs/how-to-use"
2017-02-17Merge "Added the ability to create custom flavors with the deploy_venv.py ↵Steven Pisarski1-17/+55
application."
2017-02-17Added the ability to create custom flavors with the deploy_venv.py application.spisarski1-17/+55
JIRA: SNAPS-3 CableLabs JIRA SNAPS-155 Change-Id: Ic1c07b7d75e04578495cb2f2881798da4c2571a2 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-17Accidentally checked in changes to this file.spisarski1-23/+1
Change-Id: I10565206e81a2d960e42c808345e91c32cc4b57c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-17Added the ability to add in configurable metadata to flavor creation.spisarski2-5/+25
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-15Converted existing markdown documentation to RST format.spisarski22-502/+987
Removed MD versions. Moved examples directory up one under repo root Moved RST files under docs/how-to-use Change-Id: I4137b8591e4ae63e40674a7f5f8243d928efee0c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski73-0/+12245
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-14Adding INFO and LICENSE for reviewAric Gardner3-0/+35
Change-Id: I028dc92b441aa81f9f1538fab229162f9a30bd8e Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2017-02-14Initial empty repositoryAric Gardner0-0/+0