Commit 1b6eb84d authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(test): check is active and enabled node

parent 8a646545
......@@ -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);
......
......@@ -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);
......
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