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



commit 3621a3c1de0849c9888ef5d2d87bc6eda4a821e4
Author: Vladimir Benes <benesv email cz>
Date:   Wed Jul 29 08:53:15 2015 +0200

    tests: Add "Express install Fedora 21" test
    
    Add test which downloads Fedora 21 1.3 GB 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=750701

 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 e2be381..39e806d 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
+    * express installation of Fedora 20/21
 * Environment file
   * everything for setting/cleaning up the environment
 * Steps
diff --git a/tests/environment.py b/tests/environment.py
index 91068a8..8da3dff 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -203,6 +203,8 @@ def after_tag(context, tag):
     if 'express_install' in tag:
         if 'express_install_fedora_20' in 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)
 
         # 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 c4babb6..8b4b49b 100644
--- a/tests/express-install.feature
+++ b/tests/express-install.feature
@@ -21,3 +21,22 @@ Feature: Express install
     Then Press "back" in "Fedora 20" vm
     Then Ping "Fedora 20"
     Then Verify "test" user with "secretpasswordnumber1" password in "Fedora 20"
+
+  @express_install_fedora_21
+  Scenario: Express install Fedora 21
+    * Create new box from url 
"http://mirrors.nic.cz/pub/fedora/linux/releases/21/Server/x86_64/iso/Fedora-Server-netinst-x86_64-21.iso";
+    * Hit "Tab"
+    * Hit "Tab"
+    * Type "test"
+    * Press "Add Password"
+    * Type "secretpasswordnumber1"
+    * Press "Continue"
+    * Press "Create"
+    Then Installation of "Fedora 21" is finished in "30" minutes
+    * Wait for "sleep 60" end
+    Then Box "Fedora 21" "does" exist
+    Then Go into "Fedora 21" box
+    * Save IP for machine "Fedora 21"
+    Then Press "back" in "Fedora 21" vm
+    Then Ping "Fedora 21"
+    Then Verify "test" user with "secretpasswordnumber1" password in "Fedora 21"


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