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
5dceb7db
Commit
5dceb7db
authored
Sep 13, 2016
by
Francesc Guasch
Browse files
create both objects with same config and connection
parent
570d6e8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
t/front/10_load.t
View file @
5dceb7db
...
...
@@ -9,9 +9,13 @@ use_ok('Ravada::Front');
my
$test
=
Test::SQL::
Data
->
new
(
config
=>
'
t/etc/ravada.conf
');
my
$RVD_BACK
=
Ravada
->
new
(
config
=>
'
t/etc/ravada.conf
'
);
my
$RVD_FRONT
=
Ravada::
Front
->
new
(
connector
=>
$test
->
connector
,
config
=>
'
t/etc/ravada.conf
'
my
@rvd_args
=
(
config
=>
'
t/etc/ravada.conf
'
,
connector
=>
$test
->
connector
);
my
$RVD_BACK
=
Ravada
->
new
(
@rvd_args
);
my
$RVD_FRONT
=
Ravada::
Front
->
new
(
@rvd_args
,
backend
=>
$RVD_BACK
);
...
...
t/front/20_create_domain.t
View file @
5dceb7db
...
...
@@ -44,5 +44,7 @@ for my $backend ('kvm','lxc') {
ok
(
$req
,
"
Request
$name
not created
");
$RVD
->
wait_request
(
$req
);
ok
(
$req
->
status
eq
'
done
',"
Request for create
$backend
domain
"
.
$req
->
status
);
}
done_testing
();
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