summaryrefslogtreecommitdiffstats
path: root/tests/lib/installers/apex
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-11-16 09:55:01 +0000
committerCarlos Goncalves <carlos.goncalves@neclab.eu>2016-12-10 16:18:46 +0000
commit83076cf49ebd8ded4d5d5e9667fcd8e9e9be4172 (patch)
tree0649e9f7e01d3a73b25099396a40c9c26d2d3c2d /tests/lib/installers/apex
parent23f860704776c1be1d71e81580044de4c33d7a93 (diff)
Refactor installers support code
Restructuring tests directory to become more modular, and adding installer helper functions. JIRA: DOCTOR-71 Change-Id: Ib3846c35485cfa4f0a0881beb69811cdc0b8f66f Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
Diffstat (limited to 'tests/lib/installers/apex')
-rw-r--r--tests/lib/installers/apex24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/lib/installers/apex b/tests/lib/installers/apex
new file mode 100644
index 00000000..54b3dce2
--- /dev/null
+++ b/tests/lib/installers/apex
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+function get_installer_ip {
+ local instack_mac=$(sudo virsh domiflist instack | awk '/default/{print $5}')
+ INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}')
+ die_if_not_set $LINENO $INSTALLER_IP "No installer IP"
+}
+
+function installer_get_ssh_keys {
+ sudo scp $ssh_opts root@"$INSTALLER_IP":/home/stack/.ssh/id_rsa instack_key
+ sudo chown $(whoami):$(whoami) instack_key
+ chmod 400 instack_key
+ ssh_opts_cpu+=" -i instack_key"
+}
+
+function installer_apply_patches {
+ # Noop
+ return
+}
+
+function cleanup_installer_apex {
+ # Noop
+ return
+}