Drop IoT zezere tests
zezere is retired in F42: https://fedoraproject.org/wiki/Changes/Retire_Zezere it didn't work in F41 either, so let's just get rid of these. Signed-off-by: Adam Williamson <awilliam@redhat.com>
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 255,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"height": 16,
|
||||
"ypos": 214,
|
||||
"width": 36
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_claim_button"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 31 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"type": "match",
|
||||
"xpos": 251,
|
||||
"width": 36,
|
||||
"ypos": 214,
|
||||
"height": 16
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_claim_button"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 31 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 253,
|
||||
"ypos": 213,
|
||||
"height": 16,
|
||||
"type": "match",
|
||||
"width": 36
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_claim_button"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 63 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 36,
|
||||
"ypos": 214,
|
||||
"height": 16,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"xpos": 254
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_claim_button"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 31 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 136,
|
||||
"width": 151,
|
||||
"height": 14,
|
||||
"xpos": 270,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_claim_unowned"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 62 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 14,
|
||||
"width": 130,
|
||||
"ypos": 137,
|
||||
"xpos": 617,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_device_management"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 28 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 133,
|
||||
"width": 60,
|
||||
"height": 21,
|
||||
"xpos": 15,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_login"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 26 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 60,
|
||||
"type": "match",
|
||||
"ypos": 132,
|
||||
"height": 21,
|
||||
"xpos": 15
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_login"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 52 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 17,
|
||||
"ypos": 296,
|
||||
"width": 106,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"xpos": 49
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_provision_installed"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 36 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 175,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"height": 13,
|
||||
"width": 12,
|
||||
"ypos": 216
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_provision_menu"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 33 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 12,
|
||||
"ypos": 215,
|
||||
"type": "match",
|
||||
"height": 13,
|
||||
"xpos": 175
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_provision_menu"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 69 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 14,
|
||||
"ypos": 215,
|
||||
"width": 58,
|
||||
"xpos": 200,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_provision_schedule"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 32 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 15,
|
||||
"width": 142,
|
||||
"ypos": 136,
|
||||
"xpos": 450,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_ssh_key"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 27 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 448,
|
||||
"height": 15,
|
||||
"ypos": 135,
|
||||
"type": "match",
|
||||
"width": 142
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_ssh_key"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 57 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 11,
|
||||
"ypos": 284,
|
||||
"width": 185,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"xpos": 67
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_ssh_key_contents"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 32 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"ypos": 234,
|
||||
"width": 69,
|
||||
"height": 15,
|
||||
"xpos": 398,
|
||||
"type": "match",
|
||||
"match": 90
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_submit_provision"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 34 KiB |
@ -1,16 +0,0 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 15,
|
||||
"ypos": 234,
|
||||
"width": 69,
|
||||
"type": "match",
|
||||
"match": 90,
|
||||
"xpos": 396
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"zezere_submit_provision"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 34 KiB |
@ -1961,45 +1961,6 @@
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
|
||||
}
|
||||
},
|
||||
"iot_zezere_ignition": {
|
||||
"profiles": {
|
||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
||||
},
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"GRUB_POSTINSTALL": "zezere.url=http://172.16.2.118",
|
||||
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
|
||||
"NICTYPE": "tap",
|
||||
"PARALLEL_WITH": "iot_zezere_server",
|
||||
"POSTINSTALL": "iot_zezere_ignition",
|
||||
"POST_STATIC": "172.16.2.119 zezere001.test.openqa.fedoraproject.org",
|
||||
"ROOT_PASSWORD": "weakpassword",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%",
|
||||
"USER_LOGIN": "false",
|
||||
"WORKER_CLASS": "tap"
|
||||
}
|
||||
},
|
||||
"iot_zezere_server": {
|
||||
"profiles": {
|
||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
||||
},
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"CANNED": "",
|
||||
"HDD_1": "disk_f%CURRREL%_minimal_4_%ARCH%.qcow2",
|
||||
"NICTYPE": "tap",
|
||||
"PARALLEL_CANCEL_WHOLE_CLUSTER": "0",
|
||||
"POSTINSTALL": "_iot_zezere_server _setup_browser _iot_zezere_remote",
|
||||
"POST_STATIC": "172.16.2.118 zezere002.test.openqa.fedoraproject.org",
|
||||
"ROOT_PASSWORD": "weakpassword",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%",
|
||||
"TEST_TARGET": "NONE",
|
||||
"USER_LOGIN": "false",
|
||||
"WORKER_CLASS": "tap"
|
||||
}
|
||||
},
|
||||
"kwrite": {
|
||||
"profiles": {
|
||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42
|
||||
|
@ -1,62 +0,0 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use lockapi;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# set up an ssh key
|
||||
type_string "ssh-keygen\n";
|
||||
sleep 2;
|
||||
# confirm directory
|
||||
send_key "ret";
|
||||
sleep 2;
|
||||
# empty passphrase
|
||||
send_key "ret";
|
||||
sleep 2;
|
||||
# confirm empty passphrase
|
||||
send_key "ret";
|
||||
my $sshpub = script_output "cat /root/.ssh/id_ed25519.pub";
|
||||
# launch Firefox
|
||||
type_string "startx /usr/bin/firefox -width 1024 -height 768 http://172.16.2.118\n";
|
||||
# log in as admin
|
||||
assert_screen "zezere_login";
|
||||
type_string "admin";
|
||||
send_key "tab";
|
||||
type_string "weakpassword\n";
|
||||
# allow for UI to stabilize
|
||||
wait_still_screen 10;
|
||||
# add our ssh key
|
||||
assert_and_click "zezere_ssh_key";
|
||||
assert_and_click "zezere_ssh_key_contents";
|
||||
type_string "$sshpub";
|
||||
send_key "tab";
|
||||
send_key "ret";
|
||||
wait_still_screen 3;
|
||||
# claim the device
|
||||
assert_and_click "zezere_claim_unowned";
|
||||
assert_and_click "zezere_claim_button";
|
||||
# provision it
|
||||
assert_and_click "zezere_device_management";
|
||||
assert_and_click "zezere_submit_provision";
|
||||
assert_and_click "zezere_provision_menu";
|
||||
send_key_until_needlematch("zezere_provision_installed", "down", 3, 3);
|
||||
send_key "ret";
|
||||
assert_and_click "zezere_provision_schedule";
|
||||
# exit
|
||||
quit_firefox;
|
||||
# time before the provision request goes through is kinda hard to
|
||||
# predict, so we'll just try over and over for up to 10 minutes
|
||||
# and bail as soon as it works
|
||||
assert_script_run 'until ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no root@172.16.2.119 touch /tmp/zezerekeyfile; do sleep 10; done', 600;
|
||||
}
|
||||
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
@ -1,47 +0,0 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# deploy a zezere (Fedora IoT provisioning server) instance
|
||||
assert_script_run "dnf --enablerepo=updates-testing -y install zezere", 180;
|
||||
# write config file
|
||||
assert_script_run "printf '[global]\nsecret_key = SECRET_KEY\ndebug = yes\nallowed_hosts = localhost, localhost.localdomain, 172.16.2.118\nsecure_cookie = no\nauth_method = local\n\n[oidc.rp]\nsign_algo = RS256\n\n[database]\nengine = django.db.backends.sqlite3\nname = /var/local/zezere.sqlite3' > /etc/zezere.conf";
|
||||
# write systemd unit file
|
||||
assert_script_run "printf '[Unit]\nDescription=Zezere provisioning server\n\n[Service]\nExecStart=/usr/bin/zezere-manage runserver 172.16.2.118:80\n\n[Install]\nWantedBy=multi-user.target' > /etc/systemd/system/zezere.service";
|
||||
assert_script_run "systemctl daemon-reload";
|
||||
# open firewall port
|
||||
assert_script_run "firewall-cmd --add-service=http";
|
||||
# update DB schema
|
||||
assert_script_run "zezere-manage makemigrations";
|
||||
assert_script_run "zezere-manage migrate";
|
||||
# load DB fixtures
|
||||
assert_script_run "zezere-manage loaddata fedora_iot_runreqs";
|
||||
assert_script_run "zezere-manage loaddata fedora_installed";
|
||||
# create admin user
|
||||
assert_script_run 'zezere-manage createsuperuser --username admin --email zezere@test.openqa.fedoraproject.org --no-input';
|
||||
# set admin password (can't find a non-interactive way sadly)
|
||||
type_string "zezere-manage changepassword admin\n";
|
||||
wait_still_screen 5;
|
||||
type_string "weakpassword\n";
|
||||
wait_still_screen 5;
|
||||
type_string "weakpassword\n";
|
||||
wait_still_screen 5;
|
||||
# check DB exists
|
||||
assert_script_run "ls -l /var/local/zezere.sqlite3";
|
||||
# start server
|
||||
assert_script_run "systemctl start zezere.service";
|
||||
# check it seems to be running
|
||||
assert_script_run "curl http://172.16.2.118";
|
||||
}
|
||||
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
@ -1,19 +0,0 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# wait for the remote test to ssh in and create a file, that
|
||||
# tells us we're done
|
||||
assert_script_run "until test -f /tmp/zezerekeyfile; do sleep 1; done", 900;
|
||||
}
|
||||
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|