Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
9ba9b661
Unverified
Commit
9ba9b661
authored
Oct 21, 2021
by
Fernando Verdugo
Committed by
GitHub
Oct 21, 2021
Browse files
fix(database): upgrade table (#1623)
issue #1603 Co-authored-by:
Francesc Guasch
<
frankie@telecos.upc.edu
>
parent
c3611e39
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/vm/20_base.t
View file @
9ba9b661
...
...
@@ -1812,6 +1812,27 @@ sub test_removed_leftover($vm) {
Test::Ravada::
_check_leftovers
();
}
sub
test_long_iso
($vm) {
my
$iso_file
=
'
/var/lib/libvirt/
'
.
('
a
'
x
1250
);
my
$req
;
eval
{
$req
=
Ravada::
Request
->
create_domain
(
name
=>
'
a
',
id_template
=>
1
,
iso_file
=>
$iso_file
,
id_owner
=>
user_admin
->
id
,
vm
=>
$vm
->
type
);
};
is
(
$@
,'');
if
(
$req
)
{
is
(
$req
->
args
('
iso_file
'),
$iso_file
);
my
$req2
=
Ravada::
Request
->
open
(
$req
->
id
);
is
(
$req2
->
args
('
iso_file
'),
$iso_file
);
}
}
sub
test_prepare_base_disk_missing
($vm) {
my
$domain
=
create_domain
(
$vm
);
$domain
->
add_volume
();
...
...
@@ -1864,7 +1885,7 @@ for my $db ( 'mysql', 'sqlite' ) {
if
(
$db
eq
'
mysql
')
{
init
('
/etc/ravada.conf
',
0
,
1
);
if
(
!
ping_backend
()
)
{
diag
("
no backend
");
diag
("
SKIPPED:
no backend
running
");
next
;
}
$
Test::Ravada::
BACKGROUND
=
1
;
...
...
@@ -1911,6 +1932,8 @@ for my $vm_name ( vm_names() ) {
}
flush_rules
()
if
!
$<
;
test_long_iso
(
$vm
);
test_prepare_base_disk_missing
(
$vm
);
test_prepare_base_volatile
(
$vm
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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