Commit baa8254e authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(test): make sure is still logged in

also removed checks for iptables not necessary
parent 8b0ba151
......@@ -2317,11 +2317,6 @@ sub _check_iptables() {
,"-A LIBVIRT_PRT -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535"
,"-A LIBVIRT_PRT -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p udp -j MASQUERADE --to-ports 1024-65535"
,"-A LIBVIRT_PRT -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE"
,"-A LIBVIRT_PRT -s 192.168.130.0/24 -d 224.0.0.0/24 -j RETURN"
,"-A LIBVIRT_PRT -s 192.168.130.0/24 -d 255.255.255.255/32 -j RETURN"
,"-A LIBVIRT_PRT -s 192.168.130.0/24 ! -d 192.168.130.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535"
,"-A LIBVIRT_PRT -s 192.168.130.0/24 ! -d 192.168.130.0/24 -p udp -j MASQUERADE --to-ports 1024-65535"
,"-A LIBVIRT_PRT -s 192.168.130.0/24 ! -d 192.168.130.0/24 -j MASQUERADE"
) {
my @found = grep /^$rule$/ , split (/\n/, $out);
die "$rule not found in @cmd \n$err\n" if !@found;
......
......@@ -653,6 +653,7 @@ sub test_new_machine_default($t, $vm_name) {
}
sub test_new_machine_advanced_options($t, $vm_name, $swap=undef ,$data=undef) {
mojo_check_login($t);
my $name = new_domain_name();
my $iso_name = 'Alpine%64 bits';
......@@ -713,6 +714,7 @@ sub test_new_machine_change_iso($t, $vm_name) {
my $name = new_domain_name();
mojo_check_login($t);
$t->post_ok('/new_machine.html' => form => {
backend => $vm_name
,id_iso => $id_iso
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment