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
cc5f18b5
Commit
cc5f18b5
authored
Apr 02, 2020
by
Francesc Guasch
Browse files
refactor(test): is_enabled is just enabled now
parent
6d646923
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/nodes/10_basic.t
View file @
cc5f18b5
...
...
@@ -342,7 +342,7 @@ sub test_removed_base_file($vm, $node) {
is
(
$base
->
base_in_vm
(
$node
->
id
),
1
);
is
(
scalar
(
$base
->
list_vms
),
2
)
or
exit
;
my
$node2
=
Ravada::
VM
->
open
(
$node
->
id
);
is
(
$node2
->
is_
enabled
,
1
);
is
(
$node2
->
enabled
,
1
);
for
my
$clone_data
(
$base
->
clones
)
{
my
$clone
=
Ravada::
Domain
->
open
(
$clone_data
->
{
id
});
$clone
->
remove
(
user_admin
);
...
...
@@ -406,7 +406,7 @@ sub test_removed_base_file_and_swap_remote($vm, $node) {
wait_request
(
debug
=>
0
);
is
(
$base
->
base_in_vm
(
$node
->
id
),
1
);
my
$node2
=
Ravada::
VM
->
open
(
$node
->
id
);
is
(
$node2
->
is_
enabled
,
1
);
is
(
$node2
->
enabled
,
1
);
for
my
$clone_data
(
$base
->
clones
)
{
my
$clone
=
Ravada::
Domain
->
open
(
$clone_data
->
{
id
});
$clone
->
remove
(
user_admin
);
...
...
@@ -835,7 +835,7 @@ sub test_base_unset($vm, $node) {
$base
->
set_base_vm
(
id_vm
=>
$node
->
id
,
value
=>
0
,
user
=>
user_admin
);
$clone
->
start
(
user_admin
);
is
(
$clone
->
_vm
->
id
,
$vm
->
id
)
;
is
(
$clone
->
_vm
->
name
,
$vm
->
name
)
or
exit
;
_remove_domain
(
$base
);
}
...
...
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