aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auto/testcase/resiliency/AutoResilItfCloud.py
AgeCommit message (Collapse)AuthorFilesLines
2018-06-21checked code logic for UC2-vim001 recovery time measurementGerard Damm1-24/+6
JIRA: AUTO-38 Leveraging new OpenStack SDK release 0.14, tested existing code for UC2/vif-001 (simulated VM failure), to verify that generic code for recovery time measurement works. Entered test code in placeholders for this test case: challenge start (suspend a VM), challenge stop (resume, although this was done outside (from Horizon), to simulate an ONAP-controlled recovery), test code (periodic status check, stop when VM is active again). Time was measured correctly, output files (.csv) were created successfully. This will allow to close Jira ticket 38. Next steps will be to interface with ONAP, to obtain VNF info (especially the ID of the corresponding OpenStack VMs), and perform the same measurement, which this time will be an actual recovery time, provided DCAE data collection, Policy and CLAMP have the proper configuration. Change-Id: I7320f7570c119d2b59d1ed6ca787ba975ad04a44 Signed-off-by: Gerard Damm <gerard.damm@wipro.com>
2018-03-27UC2 update with Openstack SDK interface and common test logicGerard Damm1-40/+110
JIRA: AUTO-13 1) Openstack SDK usage for VM suspend/resume actions, using clouds.yaml, tested on hpe16 pod 2) common test logic (creation of test execution instances, measurement of recovery time, calling of per-use case indexed functions, saving results to CSV files) Change-Id: If84d2a0e44618d476a028d4ac4a2897da9cd5532 Signed-off-by: Gerard Damm <gerard.damm@wipro.com>
2018-03-20structures for definition code (Tests and Challenges)Gerard Damm1-0/+227
JIRA: AUTO-13 Created structures for configuring various test definition scripts and challenge definition scripts in corresponding classes (something like libraries of functions, with an index ID to pick the applicable function). This will be useful to leverage Python clients to OpenStack and Kubernetes, or even for HTTP-level APIs for ONAP. It may be more flexible than the list of CLI/API commands initially planned (however, the list structures are still there, and might be used by the scripts). Additionally, there are some test snippets for Openstack Python SDK (work in progress). Also, there is a clouds.yaml file, for this interface. Change-Id: Ida1ff118fcbfe8715679492feb8fe0df2da62b45 Signed-off-by: Gerard Damm <gerard.damm@wipro.com>