Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
f6423c1a
Commit
f6423c1a
authored
Feb 08, 2022
by
Francesc Guasch
Browse files
refactor(test): login again if timed out
parent
ef3c2cb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
t/mojo/10_login.t
View file @
f6423c1a
...
...
@@ -599,6 +599,7 @@ sub test_new_machine_empty($t, $vm_name) {
for
my
$iso_name
(
'
Empty%32
',
'
Empty%64
')
{
my
$name
=
new_domain_name
();
mojo_check_login
(
$t
);
$t
->
post_ok
('
/new_machine.html
'
=>
form
=>
{
backend
=>
$vm_name
,
id_iso
=>
search_id_iso
(
$iso_name
)
...
...
@@ -747,6 +748,7 @@ sub test_new_machine_change_iso($t, $vm_name) {
sub
test_create_base
($t, $vm_name, $name) {
my
$iso_name
=
'
Alpine%
';
_download_iso
(
$iso_name
);
mojo_check_login
(
$t
);
$t
->
post_ok
('
/new_machine.html
'
=>
form
=>
{
backend
=>
$vm_name
,
id_iso
=>
search_id_iso
(
$iso_name
)
...
...
t/mojo/30_settings.t
View file @
f6423c1a
...
...
@@ -255,6 +255,7 @@ sub test_missing_routes() {
next
if
$href
=~
/anonymous/
;
my
$href2
=
_fill_href
(
$href
);
mojo_check_login
(
$t
);
$t
->
get_ok
(
$href2
,
"
file:
$file
href='
$href
'
");
like
(
$t
->
tx
->
res
->
code
(),
qr/200|302|40\d+|500/
)
or
die
$t
->
tx
->
res
->
to_string
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment