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
1b6eb84d
Commit
1b6eb84d
authored
May 16, 2019
by
Francesc Guasch
Browse files
refactor(test): check is active and enabled node
parent
8a646545
Changes
2
Show whitespace changes
Inline
Side-by-side
t/kvm/n20_nodes_hibernate.t
View file @
1b6eb84d
...
...
@@ -24,6 +24,8 @@ sub test_node_down($node, $action, $action_name) {
);
start_node
(
$node
);
is
(
$node
->
is_active
,
1
)
or
exit
;
is
(
$node
->
is_enabled
,
1
)
or
exit
;
my
$domain
=
create_domain
(
$node
->
type
);
$domain
->
prepare_base
(
user_admin
);
...
...
@@ -34,8 +36,9 @@ sub test_node_down($node, $action, $action_name) {
,
name
=>
new_domain_name
);
$clone
->
migrate
(
$node
);
is
(
$clone
->
is_local
,
0
);
$clone
->
start
(
user
_admin
);
$clone
->
start
(
user
=>
user_admin
,
id_vm
=>
$node
->
id
);
is
(
$clone
->
is_local
,
0
);
$action
->
(
$clone
);
...
...
t/lib/Test/Ravada.pm
View file @
1b6eb84d
...
...
@@ -975,6 +975,7 @@ sub start_node($node) {
eval
{
$node
->
run_command
("
hwclock
","
--hctosys
")
};
is
(
$@
,'',"
Expecting no error setting clock on
"
.
$node
->
name
.
"
"
.
(
$@
or
''));
$node
->
is_active
(
1
);
$node
->
is_enabled
(
1
);
for
(
1
..
60
)
{
my
$node2
=
Ravada::
VM
->
open
(
id
=>
$node
->
id
);
last
if
$node2
->
is_active
(
1
);
...
...
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