Upgrade tests: Run FreeIPA webUI and password change modules

Summary:
This just adds the FreeIPA web UI and password change
test modules to the FreeIPA upgrade test (client end). It's
useful to check out these features too. We don't need to
separate these into separate jobs, as we're not trying to
fill out different matrix checkboxes here, we just want to
know whether everything works.

Test Plan:
Run the test, see that the modules work properly.
I was actually expecting this to fail given the issues with
the upgrade on the server end, but it seems to pass.

Reviewers: jsedlak, jskladan

Reviewed By: jsedlak

Subscribers: tflink

Differential Revision: https://phab.qa.fedoraproject.org/D1207
This commit is contained in:
Adam Williamson 2017-06-09 12:16:28 -07:00
parent 25b910135b
commit a29875a2ff
2 changed files with 7 additions and 2 deletions

View File

@ -2245,14 +2245,14 @@
], ],
}, },
{ {
name => "upgrade_realmd_join_sssd", name => "upgrade_realmd_client",
settings => [ settings => [
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "HDD_1", value => "disk_f%CURRREL%_server_3_x86_64.img" }, { key => "HDD_1", value => "disk_f%CURRREL%_server_3_x86_64.img" },
{ key => "UPGRADE", value => "1" }, { key => "UPGRADE", value => "1" },
{ key => "TEST_TARGET", value => "COMPOSE" }, { key => "TEST_TARGET", value => "COMPOSE" },
{ key => "PREUPGRADE", value => "realmd_join_sssd" }, { key => "PREUPGRADE", value => "realmd_join_sssd" },
{ key => "POSTINSTALL", value => "freeipa_client" }, { key => "POSTINSTALL", value => "freeipa_webui freeipa_password_change freeipa_client" },
{ key => "PARALLEL_WITH", value => "upgrade_server_domain_controller" }, { key => "PARALLEL_WITH", value => "upgrade_server_domain_controller" },
{ key => "USER_LOGIN", value => "false" }, { key => "USER_LOGIN", value => "false" },
{ key => "GRUB_POSTINSTALL", value => "net.ifnames=0 biosdevname=0" }, { key => "GRUB_POSTINSTALL", value => "net.ifnames=0 biosdevname=0" },

View File

@ -6,6 +6,11 @@ use freeipa;
sub run { sub run {
my $self = shift; my $self = shift;
# On the upgrade path, we don't have firefox / X installed yet
if (get_var("UPGRADE")) {
assert_script_run 'dnf -y groupinstall "base-x"', 300;
assert_script_run 'dnf -y install firefox', 120;
}
# we're restarting firefox (instead of using the same one from # we're restarting firefox (instead of using the same one from
# realmd_join_cockpit) so Firefox's trusted CA store refreshes and # realmd_join_cockpit) so Firefox's trusted CA store refreshes and
# it trusts the web server cert # it trusts the web server cert