[gnome-boxes] tests: Add "Express install Fedora 22" test



commit 3ed5b152d6aa7c359f3da2dccda921212d7c4749
Author: Vladimir Benes <benesv email cz>
Date:   Wed Jul 29 08:58:53 2015 +0200

    tests: Add "Express install Fedora 22" test
    
    Add test which downloads Fedora 22 Workstation netinstall ISO and
    express installs Fedora with it. Test checks if user account was
    successfully added and it's password set, using ssh after
    installation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753017

 tests/README                  |    2 +-
 tests/environment.py          |    2 ++
 tests/express-install.feature |   19 +++++++++++++++++++
 3 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/tests/README b/tests/README
index 39e806d..fc217e4 100644
--- a/tests/README
+++ b/tests/README
@@ -56,7 +56,7 @@ Structure
     * connect to vnc box
     * restart persistence
   * express-install.feature
-    * express installation of Fedora 20/21
+    * express installation of Fedora 20/21/22
 * Environment file
   * everything for setting/cleaning up the environment
 * Steps
diff --git a/tests/environment.py b/tests/environment.py
index 8da3dff..73d05d0 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -205,6 +205,8 @@ def after_tag(context, tag):
             call('rm -rf ~/Downloads/Fedora-20*', shell=True)
         if 'express_install_fedora_21' in tag:
             call('rm -rf ~/Downloads/Fedora-Server-netinst-x86_64-21.iso', shell=True)
+        if 'express_install_fedora_22' in tag:
+            call('rm -rf ~/Downloads/Fedora-Workstation-netinst-x86_64-22.iso', shell=True)
 
         # need to remove cache file as otherwise prefilled values may be in use
         call('rm -rf ~/.cache/gnome-boxes/unattended', shell=True)
diff --git a/tests/express-install.feature b/tests/express-install.feature
index 8b4b49b..7e50882 100644
--- a/tests/express-install.feature
+++ b/tests/express-install.feature
@@ -40,3 +40,22 @@ Feature: Express install
     Then Press "back" in "Fedora 21" vm
     Then Ping "Fedora 21"
     Then Verify "test" user with "secretpasswordnumber1" password in "Fedora 21"
+
+  @express_install_fedora_22
+  Scenario: Express install Fedora 22
+    * Create new box from url 
"http://mirrors.nic.cz/pub/fedora/linux/releases/22/Workstation/x86_64/iso/Fedora-Workstation-netinst-x86_64-22.iso";
+    * Hit "Tab"
+    * Hit "Tab"
+    * Type "test"
+    * Press "Add Password"
+    * Type "secretpasswordnumber1"
+    * Press "Continue"
+    * Press "Create"
+    Then Installation of "Fedora 22 Workstation" is finished in "30" minutes
+    * Wait for "sleep 60" end
+    Then Box "Fedora 22 Workstation" "does" exist
+    Then Go into "Fedora 22 Workstation" box
+    * Save IP for machine "Fedora 22 Workstation"
+    Then Press "back" in "Fedora 22 Workstation" vm
+    Then Ping "Fedora 22 Workstation"
+    Then Verify "test" user with "secretpasswordnumber1" password in "Fedora 22 Workstation"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]