You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.8 KiB

#!/usr/bin/env bats
VMNAME=batstestvm
function create_test_vm ()
{
local -r var="$1"
run kvm-install-vm create -t ${var} ${VMNAME}-${var}
[ "$status" -eq 0 ]
}
function remove_test_vm ()
{
local -r var="$1"
run kvm-install-vm remove ${VMNAME}-${var}
[ "$status" -eq 0 ]
}
@test "Install VM (Amazon Linux 2) - $VMNAME-amazon2" {
create_test_vm amazon2
}
@test "Delete VM (Amazon Linux 2) - $VMNAME-amazon2" {
remove_test_vm amazon2
}
@test "Install VM (CentOS 7 Atomic) - $VMNAME-centos7-atomic" {
create_test_vm centos7-atomic
}
@test "Delete VM (CentOS 7 Atomic) - $VMNAME-centos7-atomic" {
remove_test_vm centos7-atomic
}
@test "Install VM (Fedora 29) - $VMNAME-fedora29" {
create_test_vm fedora27
}
@test "Delete VM (Fedora 29) - $VMNAME-fedora29" {
remove_test_vm fedora27
}
@test "Install VM (Fedora 29 Atomic) - $VMNAME-fedora29-atomic" {
create_test_vm fedora27-atomic
}
@test "Delete VM (Fedora 29 Atomic) - $VMNAME-fedora29-atomic" {
remove_test_vm fedora27-atomic
}
@test "Install VM (Fedora 30) - $VMNAME-fedora30" {
create_test_vm fedora28
}
@test "Delete VM (Fedora 30) - $VMNAME-fedora30" {
remove_test_vm fedora28
}
@test "Install VM (Fedora 31) - $VMNAME-fedora31" {
create_test_vm fedora31
}
@test "Delete VM (Fedora 31) - $VMNAME-fedora31" {
remove_test_vm fedora31
}
@test "Install VM (Ubuntu 16.04) - $VMNAME-ubuntu1604" {
create_test_vm ubuntu1604
}
@test "Delete VM (Ubuntu 16.04) - $VMNAME-ubuntu1604" {
remove_test_vm ubuntu1604
}
@test "Install VM (Ubuntu 18.04) - $VMNAME-ubuntu1804" {
create_test_vm ubuntu1804
}
@test "Delete VM (Ubuntu 18.04) - $VMNAME-ubuntu1804" {
remove_test_vm ubuntu1804
}
@test "Install VM (Debian 9) - $VMNAME-debian9" {
create_test_vm debian9
}
@test "Delete VM (Debian 9) - $VMNAME-debian9" {
remove_test_vm debian9
}