From 2aeccff740e8d8dd69121de53d8b66716d5659ed Mon Sep 17 00:00:00 2001 From: Giovanni Torres Date: Thu, 11 Jan 2018 10:42:32 -0500 Subject: [PATCH] Added Fedora 27 and the atomic variant --- kvm-install-vm | 12 ++++++++++++ tests/check_distributions.bats | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/kvm-install-vm b/kvm-install-vm index 3339d1a..ad08d86 100755 --- a/kvm-install-vm +++ b/kvm-install-vm @@ -252,6 +252,18 @@ function fetch_images () IMAGE_URL=https://download.fedoraproject.org/pub/alt/atomic/stable/Fedora-Atomic-26-20171003.0/CloudImages/x86_64/images LOGIN_USER=fedora ;; + fedora27) + QCOW=Fedora-Cloud-Base-27-1.6.x86_64.qcow2 + OS_VARIANT="fedora26" + IMAGE_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images + LOGIN_USER=fedora + ;; + fedora27-atomic) + QCOW=Fedora-Atomic-27-1.6.x86_64.qcow2 + OS_VARIANT="fedora26" + IMAGE_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images + LOGIN_USER=fedora + ;; ubuntu1604) QCOW=ubuntu-16.04-server-cloudimg-amd64-disk1.img OS_VARIANT="ubuntu16.04" diff --git a/tests/check_distributions.bats b/tests/check_distributions.bats index c60a2fa..df4dc84 100644 --- a/tests/check_distributions.bats +++ b/tests/check_distributions.bats @@ -40,6 +40,22 @@ function remove_test_vm () remove_test_vm fedora26 } +@test "Install VM (Fedora 27) - $VMNAME-fedora27" { + create_test_vm fedora27 +} + +@test "Install VM (Fedora 27 Atomic) - $VMNAME-fedora27-atomic" { + create_test_vm fedora27-atomic +} + +@test "Delete VM (Fedora 27 Atomic) - $VMNAME-fedora27-atomic" { + remove_test_vm fedora27-atomic +} + +@test "Delete VM (Fedora 27) - $VMNAME-fedora27" { + remove_test_vm fedora27 +} + @test "Install VM (Ubuntu 16.04) - $VMNAME-ubuntu1604" { create_test_vm ubuntu1604 }