summaryrefslogtreecommitdiffstats
path: root/testing/robot_local_no_score
diff options
context:
space:
mode:
authorTomas Cechvala <tcechval@cisco.com>2017-03-13 15:18:39 +0100
committerjuraj.linkes <jlinkes@cisco.com>2017-03-14 12:38:14 +0100
commita717a49967f77ede476da582b6d3bb2c6359da1b (patch)
tree277749bb97dfd905163ca22486e83baf62068bee /testing/robot_local_no_score
parente98d863ae414a55b1d306f66f0b54aa659a2c9ae (diff)
Check for a flavor with hugepages
Flavor is not checked by name but by huge_pages extra option. It is created when no flavor has huge_pages setting. Change-Id: I1266a6e58047c24456b12f16fc3061082916558c Signed-off-by: Tomas Cechvala <tcechval@cisco.com> Signed-off-by: juraj.linkes <jlinkes@cisco.com>
Diffstat (limited to 'testing/robot_local_no_score')
-rw-r--r--testing/robot_local_no_score/smoke.robot74
1 files changed, 74 insertions, 0 deletions
diff --git a/testing/robot_local_no_score/smoke.robot b/testing/robot_local_no_score/smoke.robot
new file mode 100644
index 0000000..473c2c7
--- /dev/null
+++ b/testing/robot_local_no_score/smoke.robot
@@ -0,0 +1,74 @@
+##############################################################################
+# Copyright (c) 2016 Juraj Linkes (Cisco) and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+*** Settings ***
+Library OperatingSystem
+Library ../robot/lib/FDSLibrary.py
+Library ../robot/lib/Keywords.robot
+Variables ../robot/data/test_data.py
+Suite Setup Setup Suite
+Suite Teardown Teardown Suite
+
+*** Variables ***
+
+*** Test Cases ***
+Create network for VMs
+ Create tenant network
+
+Create subnet without dhcp for VMs
+ Create subnet without dhcp
+
+Create port for VM1
+ ${result} = Create port with ip ${port1_name} ${vm1_address}
+ Set Suite Variable ${port1_id} ${result}
+
+Create port for VM2
+ ${result} = Create port with ip ${port2_name} ${vm2_address}
+ Set Suite Variable ${port2_id} ${result}
+
+Create VM1
+ ${port_ids} = Create List ${port1_id}
+ ${result} = Create vm ${vm1_name} ${port_ids} flavor=${flavor_to_use}
+ ... userdata=${userdata1}
+ Set Suite Variable ${vm1_id} ${result}
+
+Wait for VM1 to be active
+ Should Be True $vm1_id is not $None
+ Poll vm ${vm1_id} active
+
+Create VM2
+ ${port_ids} = Create List ${port2_id}
+ ${result} = Create vm ${vm2_name} ${port_ids} userdata=${userdata2}
+ Set Suite Variable ${vm2_id} ${result}
+
+Wait for VM2 to be active
+ Should Be True $vm2_id is not $None
+ Poll vm ${vm2_id} active
+
+Check VM2 userdata
+ ${result} = Check vm console ${vm2_id} PASSED
+ Should Be True ${result}
+
+*** Keywords ***
+Setup Suite
+ Set Suite Variable ${network_id} ${None}
+ Set Suite Variable ${subnet_id} ${None}
+ Set Suite Variable ${port1_id} ${None}
+ Set Suite Variable ${port2_id} ${None}
+ Set Suite Variable ${vm1_id} ${None}
+ Set Suite Variable ${vm2_id} ${None}
+ Ensure Image
+ Ensure Flavor
+
+Teardown Suite
+ Run Keyword If $vm1_id is not $None Delete vm ${vm1_id}
+ Run Keyword If $vm2_id is not $None Delete vm ${vm2_id}
+ Run Keyword If $port1_id is not $None Delete ports ${port1_id}
+ Run Keyword If $port2_id is not $None Delete ports ${port2_id}
+ Run Keyword If $network_id is not $None Delete network ${network_id}