[gnome-boxes] tests: Add scenario for system broker import



commit 9f9293d733350733dd05a2221801404233f43460
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Feb 2 19:47:30 2015 +0000

    tests: Add scenario for system broker import

 tests/steps/system-broker.py |    7 +++++++
 tests/system-broker.feature  |   12 ++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/steps/system-broker.py b/tests/steps/system-broker.py
index 4965547..f2cefa4 100644
--- a/tests/steps/system-broker.py
+++ b/tests/steps/system-broker.py
@@ -10,6 +10,13 @@ def create_box_on_system_broker(context):
         * Wait for "sleep 10" end
         """)
 
+ step('Import Core-5.3 box on system broker')
+def import_box_on_system_broker(context):
+    context.execute_steps("""
+        * Wait for "virt-install -q -r 128 --name Core-5.3 --import --disk /tmp/Core-5.3.qcow2 --os-type 
linux --accelerate --connect qemu:///system --wait 0" end
+        * Wait for "sleep 10" end
+        """)
+
 @step('Connect to system broker')
 def connect_to_filled_system_broker(context):
     context.execute_steps("""
diff --git a/tests/system-broker.feature b/tests/system-broker.feature
index 73263d3..8312419 100644
--- a/tests/system-broker.feature
+++ b/tests/system-broker.feature
@@ -89,3 +89,15 @@ Feature: System Broker
     * Quit Boxes
     * Start Boxes
     Then Box "Core-5.3" "does" exist
+
+  @import_box_from_system_broker
+  Scenario: Import box from system broker
+    * Import Core-5.3 box on system broker
+    * Quit Boxes
+    * Start Boxes
+    * Create new box from menu "Import 'Core-5.3' from system broker"
+    * Press "Create"
+    Then Box "Core-5.3" "does" exist
+    Then Go into "Core-5.3" box
+    Then Press "back" in "Core-5.3" vm
+    Then Box "Core-5.3" "does" exist


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