File: livecd.feature

package info (click to toggle)
gnome-boxes 49.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,836 kB
  • sloc: python: 883; ansic: 802; sh: 487; xml: 327; makefile: 14
file content (164 lines) | stat: -rw-r--r-- 4,912 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Feature: LiceCD

  Background:
    * Make sure that gnome-boxes is running
    * Wait until overview is loaded

  @new_local_livecd_box_via_file
  Scenario: New local liveCD box via file
    * Create new box from file "Downloads/Core-5.3.iso"
    * Press "Create"
    * Wait for "sleep 3" end
    * Hit "Enter"
    * Wait for "sleep 5" end
    * Save IP for machine "Core-5"
    * Press "back" in "Core-5" vm
    Then Box "Core-5" "does" exist
    Then Ping "Core-5"

  @new_local_livecd_box_via_iso
  Scenario: New local liveCD box
    * Create new box from menu "Core-5"
    * Press "Create"
    * Wait for "sleep 3" end
    * Hit "Enter"
    * Wait for "sleep 5" end
    * Save IP for machine "Core-5"
    * Press "back" in "Core-5" vm
    Then Box "Core-5" "does" exist
    Then Ping "Core-5"

  @create_five_local_liveCD_boxes
  Scenario: Create five liveCD boxes
    * Create new box "Core-5"
    Then Ping "Core-5"
    * Create new box "Core-5 2" from "Core-5" menuitem
    Then Ping "Core-5 2"
    * Create new box "Core-5 3" from "Core-5" menuitem
    Then Ping "Core-5 3"
    * Create new box "Core-5 4" from "Core-5" menuitem
    Then Ping "Core-5 4"
    * Create new box "Core-5 5" from "Core-5" menuitem
    Then Ping "Core-5 5"

  @go_into_local_livecd_box
  Scenario: Go into local liveCD box
    * Create new box "Core-5"
    * Box "Core-5" "does" exist
    * Ping "Core-5"
    * Go into "Core-5" box
    * Wait for "sleep 2" end
    * Type text "sudo ifconfig eth0 down" and return
    * Wait for "sleep 5" end
    Then Cannot ping "Core-5"

  @delete_local_livecd_box
  Scenario: Delete local liveCD box
    * Create new box "Core-5"
    * Select "Core-5" box
    * Press "Delete"
    * Close warning
    * Wait for "sleep 2" end
    Then Box "Core-5" "does not" exist
    Then Cannot ping "Core-5"

  @delete_local_livecd_box_via_context_menu
  Scenario: Delete local liveCD box via context menu
    * Create new box "Core-5"
    * Launch "Delete" for "Core-5" box
    * Close warning
    * Wait for "sleep 2" end
    Then Box "Core-5" "does not" exist
    Then Cannot ping "Core-5"

  @undo_delete_local_livecd_box
  Scenario: Undo Delete of local liveCD box
    * Create new box "Core-5"
    When Box "Core-5" "does" exist
    When Ping "Core-5"
    * Select "Core-5" box
    * Press "Delete"
    * Press "Undo"
    Then Box "Core-5" "does" exist
    Then Ping "Core-5"

  @delete_five_local_livecd_boxes
  Scenario: Delete five local liveCD boxes
    * Create new box "Core-5"
    * Create new box "Core-5 2" from "Core-5" menuitem
    * Create new box "Core-5 3" from "Core-5" menuitem
    * Create new box "Core-5 4" from "Core-5" menuitem
    * Create new box "Core-5 5" from "Core-5" menuitem
    * Select "Core-5" box
    * Select "Core-5 2" box
    * Select "Core-5 3" box
    * Select "Core-5 4" box
    * Select "Core-5 5" box
    * Press "Delete"
    * Close warning
    * Wait for "sleep 2" end
    Then Box "Core-5" "does not" exist
    Then Cannot ping "Core-5"
    Then Box "Core-5 2" "does not" exist
    Then Cannot ping "Core-5 2"
    Then Box "Core-5 3" "does not" exist
    Then Cannot ping "Core-5 3"
    Then Box "Core-5 4" "does not" exist
    Then Cannot ping "Core-5 4"
    Then Box "Core-5 5" "does not" exist
    Then Cannot ping "Core-5 5"

  # https://bugzilla.gnome.org/show_bug.cgi?id=742392
  @poweroff_local_livecd_box
  Scenario: Power off local liveCD box
    * Create new box "Core-5"
    * Box "Core-5" "does" exist
    * Ping "Core-5"
    * Go into "Core-5" box
    * Wait for "sleep 1" end
    * Type text "sudo poweroff" and return
    * Wait for "sleep 20" end
    Then Box "Core-5" "does not" exist
    Then Cannot ping "Core-5"

  @pause_livecd_box
  Scenario: Pause liveCD box
    * Create new box "Core-5"
    When Ping "Core-5"
    * Select "Core-5" box
    * Press "Pause"
    * Wait for "sleep 8" end
    Then Cannot ping "Core-5"

  @resume_livecd_box
  Scenario: Resume liveCD box
    * Create new box "Core-5"
    * Select "Core-5" box
    * Press "Pause"
    * Wait for "sleep 2" end
    * Hit "Esc"
    * Go into "Core-5" box
    * Wait for "sleep 4" end
    Then Ping "Core-5"

  @force_shutdown_local_machine
  Scenario: Force off local liveCD box
    * Create new box "Core-5"
    * Launch "Properties" for "Core-5" box
    * Press "System"
    * Press "Force Shutdown"
    Then Box "Core-5" "does" exist
    Then Cannot ping "Core-5"

  @livecd_restart_persistence
  Scenario: LiveCD restart persistence
    * Initiate new box "Core-5" installation
    * Initiate new box "Core-5 2" installation from "Core-5" menuitem
    * Import machine "Core-5" from image "Downloads/Core-5.3.qcow2"
    * Import machine "Core-5" from image "Downloads/Core-5.3.vmdk"
    * Quit Boxes
    * Start Boxes
    Then Box "Core-5" "does" exist
    Then Box "Core-5 2" "does" exist
    Then Box "Core-5 3" "does" exist
    Then Box "Core-5 4" "does" exist