From ffa7ca2447fb798f43d6508103dddd8827cb5b8c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 5 Jan 2018 13:38:09 -0800 Subject: [PATCH] Add a check that correct filesystem was used on Server installs This is currently broken, but openQA doesn't notice; we really should. We could also check the default in other cases, but I think that's less clear-cut, as it's kind of an anaconda design choice, it's not mandated in Fedora requirements anywhere. Signed-off-by: Adam Williamson --- templates | 34 ++++++++++++++++++++++++++++++ tests/server_filesystem_default.pm | 17 +++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/server_filesystem_default.pm diff --git a/templates b/templates index 90e40f14..f7ed1227 100755 --- a/templates +++ b/templates @@ -1524,6 +1524,17 @@ }, test_suite => { name => "install_kickstart_nfs" }, }, + { + machine => { name => "64bit" }, + prio => 20, + product => { + arch => "x86_64", + distri => "fedora", + flavor => "Server-dvd-iso", + version => "*", + }, + test_suite => { name => "server_filesystem_default" }, + }, { machine => { name => "64bit" }, prio => 20, @@ -2531,6 +2542,18 @@ }, test_suite => { name => "install_kickstart_nfs" }, }, + { + group_name => "Fedora PowerPC", + machine => { name => "ppc64le" }, + prio => 20, + product => { + arch => "ppc64le", + distri => "fedora", + flavor => "Server-dvd-iso", + version => "*", + }, + test_suite => { name => "server_filesystem_default" }, + }, { group_name => "Fedora PowerPC", machine => { name => "ppc64le" }, @@ -4251,6 +4274,17 @@ { key => "USER_LOGIN", value => "false" }, ], }, + { + name => "server_filesystem_default", + settings => [ + { key => "POSTINSTALL", value => "server_filesystem_default" }, + { key => "USER_LOGIN", value => "false" }, + { key => "ROOT_PASSWORD", value => "weakpassword" }, + { key => "START_AFTER_TEST", value => "install_default_upload" }, + { key => "BOOTFROM", value => "c" }, + { key => "HDD_1", value => "disk_%FLAVOR%_%MACHINE%.qcow2" }, + ], + }, { name => "server_firewall_default", settings => [ diff --git a/tests/server_filesystem_default.pm b/tests/server_filesystem_default.pm new file mode 100644 index 00000000..ac01cd53 --- /dev/null +++ b/tests/server_filesystem_default.pm @@ -0,0 +1,17 @@ +use base "installedtest"; +use strict; +use testapi; + +sub run { + my $self = shift; + # check / is xfs, as it should be on server + assert_script_run 'findmnt -M / -o FSTYPE | grep xfs'; +} + +sub test_flags { + return { fatal => 1 }; +} + +1; + +# vim: set sw=4 et: