mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-17 04:03:07 +00:00
14b21866f2
This adds a pair of tests, one which does almost all the work from the test case, the other just a client test to check that we can connect to an HTTP server running in a container on the host. We also have to bump the _console_wait_login timeout on this path a bit as we're booting a disk image that was installed with DHCP working, but we change the network setup so DHCP does not work any more, and the system spends quite some time trying to bring the network up on boot before eventually giving up and proceeding. Signed-off-by: Adam Williamson <awilliam@redhat.com>
31 lines
614 B
Perl
31 lines
614 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use lockapi;
|
|
use mmapi;
|
|
use tapnet;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
bypass_1691487 unless (get_var("DESKTOP"));
|
|
$self->root_console(tty=>3);
|
|
# wait for server to be set up
|
|
mutex_lock "podman_server_ready";
|
|
mutex_unlock "podman_server_ready";
|
|
# connect to server then tell server we're done
|
|
my $ret = script_run "curl http://10.0.2.114";
|
|
mutex_create "podman_connect_done";
|
|
# die if connection failed
|
|
die "connection failed!" if ($ret);
|
|
}
|
|
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|