-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspread.yaml
executable file
·128 lines (117 loc) · 4.73 KB
/
spread.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
project: console-conf-tests
environment:
#PATHS
PROJECT_PATH: /home/test/console-conf-tests
HELPERS: $PROJECT_PATH/scripts/bash
CCONF: $PROJECT_PATH/scripts/expect/console_conf
WELCOME: $PROJECT_PATH/scripts/expect/welcome
NETWORK: $PROJECT_PATH/scripts/expect/network
IDENTITY: $PROJECT_PATH/scripts/expect/identity
FINISH: $PROJECT_PATH/scripts/expect/finish
ETHERNET: $PROJECT_PATH/scripts/expect/ethernet
WIFI: $PROJECT_PATH/scripts/expect/wifi
SNAPD: $PROJECT_PATH/scripts/expect/snapd
#USERS
REGISTER_USER_USERNAME: sergio-j-cazzolato
REGISTER_USER_EMAIL: [email protected]
NOEXIST_USER_EMAIL: [email protected]
NOKEY_USER_EMAIL: [email protected]
#NETWORK
WIFI_SSID: "$(HOST: echo $WIFI_SSID)"
WIFI_PASSWORD: "$(HOST: echo $WIFI_PASSWORD)"
STATIC_DNS: 8.8.8.8
backends:
external:
type: adhoc
environment:
SPREAD_EXTERNAL_ADDRESS: "$(HOST: echo ${SPREAD_EXTERNAL_ADDRESS:-localhost:8022})"
MANAGED_DEVICE: "true"
allocate: |
ADDRESS $SPREAD_EXTERNAL_ADDRESS
systems:
- ubuntu-core-16-64:
environment:
TRUST_TEST_KEYS: "false"
ETHERNET_READY: "$(HOST: echo ${ETHERNET_READY:-true})"
ETHERNET_IFACE: "$(HOST: echo ${ETHERNET_IFACE:-eth0})"
ETHERNET_POSITION: "$(HOST: echo ${ETHERNET_POSITION:-1})"
WIFI_READY: "$(HOST: echo ${WIFI_READY:-false})"
WIFI_IFACE: "$(HOST: echo ${WIFI_IFACE:-wlan0})"
WIFI_POSITION: "$(HOST: echo ${WIFI_POSITION:-1})"
username: test
password: ubuntu
- ubuntu-core-16-32:
environment:
TRUST_TEST_KEYS: "false"
ETHERNET_READY: "$(HOST: echo ${ETHERNET_READY:-true})"
ETHERNET_IFACE: "$(HOST: echo ${ETHERNET_IFACE:-eth0})"
ETHERNET_POSITION: "$(HOST: echo ${ETHERNET_POSITION:-1})"
WIFI_READY: "$(HOST: echo ${WIFI_READY:-false})"
WIFI_IFACE: "$(HOST: echo ${WIFI_IFACE:-wlan0})"
WIFI_POSITION: "$(HOST: echo ${WIFI_POSITION:-1})"
username: test
password: ubuntu
- ubuntu-core-16-arm-64:
environment:
ETHERNET_READY: "$(HOST: echo ${ETHERNET_READY:-false})"
ETHERNET_IFACE: "$(HOST: echo ${ETHERNET_IFACE:-eth0})"
ETHERNET_POSITION: "$(HOST: echo ${ETHERNET_POSITION:-1})"
WIFI_READY: "$(HOST: echo ${WIFI_READY:-true})"
WIFI_IFACE: "$(HOST: echo ${WIFI_IFACE:-wlan0})"
WIFI_POSITION: "$(HOST: echo ${WIFI_POSITION:-1})"
username: test
password: ubuntu
- ubuntu-core-16-arm-32:
environment:
ETHERNET_READY: "$(HOST: echo ${ETHERNET_READY:-true})"
ETHERNET_IFACE: "$(HOST: echo ${ETHERNET_IFACE:-eth0})"
ETHERNET_POSITION: "$(HOST: echo ${ETHERNET_POSITION:-1})"
WIFI_READY: "$(HOST: echo ${WIFI_READY:-true})"
WIFI_IFACE: "$(HOST: echo ${WIFI_IFACE:-wlan0})"
WIFI_POSITION: "$(HOST: echo ${WIFI_POSITION:-2})"
username: test
password: ubuntu
path: /home/test/console-conf-tests
exclude:
- .git
prepare: |
snap install --devmode expect
snap install --devmode jq
restore: |
snap remove expect jq
rm -rf /home/test/console-conf-tests
prepare-each: |
echo "Preparing test"
suites:
tests/register/:
summary: Tests for registration
prepare: |
$HELPERS/clean_netplan
prepare-each: |
$HELPERS/delete_extrauser $REGISTER_USER_USERNAME
$HELPERS/unregister_user_snapd
restore-each: |
$HELPERS/restore_extrauser
$HELPERS/restore_user_snapd
tests/network/:
summary: Tests for network configuration
prepare: |
$HELPERS/clean_netplan
prepare-each: |
$HELPERS/save_netplan
restore-each: |
$HELPERS/restore_netplan
tests/e2e/:
summary: Tests for e2e scenarios
prepare: |
$HELPERS/clean_netplan
prepare-each: |
$HELPERS/delete_extrauser $REGISTER_USER_USERNAME
$HELPERS/unregister_user_snapd
$HELPERS/save_netplan
restore-each: |
$HELPERS/restore_netplan
$HELPERS/restore_extrauser
$HELPERS/restore_user_snapd
tests/welcome/:
summary: Tests for welcome screen