forked from openshift/microshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcos9-src@optional.sh
More file actions
34 lines (27 loc) · 1.03 KB
/
cos9-src@optional.sh
File metadata and controls
34 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Sourced from scenario.sh and uses functions defined there.
# Redefine network-related settings to use the dedicated network bridge
VM_BRIDGE_IP="$(get_vm_bridge_ip "${VM_MULTUS_NETWORK}")"
# shellcheck disable=SC2034 # used elsewhere
WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"
scenario_create_vms() {
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template cos9-bootc-source-optionals
# Two nics - one for macvlan, another for ipvlan (they cannot enslave the same interface)
launch_vm centos9-bootc --network "${VM_MULTUS_NETWORK},${VM_MULTUS_NETWORK}" --vm_disksize 25
}
scenario_remove_vms() {
remove_vm host1
}
scenario_run_tests() {
local skip_args=""
skip_args="--skip sriov"
if [[ "${UNAME_M}" =~ aarch64 ]]; then
skip_args+=" --skip tls-scanner"
fi
# shellcheck disable=SC2086
run_tests host1 \
--variable "PROMETHEUS_HOST:$(hostname)" \
--variable "LOKI_HOST:$(hostname)" \
${skip_args} \
suites/optional/
}