Unverified Commit 9ba9b661 authored by Fernando Verdugo's avatar Fernando Verdugo Committed by GitHub
Browse files

fix(database): upgrade table (#1623)



issue #1603
Co-authored-by: default avatarFrancesc Guasch <frankie@telecos.upc.edu>
parent c3611e39
......@@ -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);
......
Markdown is supported
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