Skip to content

Commit 4aec63b

Browse files
committed
e2e: Remove libvirt and virsh specific tests
1 parent a974c2f commit 4aec63b

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

test/e2e/features/config.feature

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ Feature: Test configuration settings
8686
| skip-check-root-user | true | false |
8787
| skip-check-virt-enabled | true | false |
8888

89-
# the following properties not suit for user notwork
90-
#| skip-check-crc-network | true | false |
91-
#| skip-check-crc-network-active | true | false |
92-
#| skip-check-network-manager-installed | true | false |
93-
#| skip-check-network-manager-running | true | false |
9489

9590
@windows
9691
Examples:
@@ -113,35 +108,6 @@ Feature: Test configuration settings
113108
Then starting CRC with default bundle fails
114109
And stderr should contain "Preflight checks failed during `crc start`, please try to run `crc setup` first in case you haven't done so yet"
115110

116-
@linux
117-
Scenario: Check network setup and destroy it, then check again
118-
When removing file "crc.json" from CRC home folder succeeds
119-
And executing single crc setup command succeeds
120-
And executing "sudo virsh net-list --name" succeeds
121-
Then stdout contains "default"
122-
123-
@linux @system_network
124-
Scenario: Running `crc setup` with checks enabled restores destroyed network
125-
When setting config property "skip-check-crc-network" to value "false" succeeds
126-
And setting config property "skip-check-crc-network-active" to value "false" succeeds
127-
Then executing single crc setup command succeeds
128-
And executing "sudo virsh net-list --name" succeeds
129-
And stdout contains "crc"
130-
131-
@linux @system_network
132-
Scenario: Running `crc start` without `crc setup` and with checks disabled fails when network destroyed
133-
# Destroy network again
134-
When executing "sudo virsh net-undefine crc && sudo virsh net-destroy crc" succeeds
135-
And executing "sudo virsh net-list --name" succeeds
136-
Then stdout should not contain "crc"
137-
# Disable checks
138-
When setting config property "skip-check-crc-network" to value "true" succeeds
139-
And setting config property "skip-check-crc-network-active" to value "true" succeeds
140-
141-
# Start CRC
142-
Then starting CRC with default bundle fails
143-
And stderr contains "Network not found: no network with matching name 'crc'"
144-
145111
@linux
146112
Scenario: Clean-up
147113
# Remove the config file

test/e2e/testsuite/testsuite.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@ func InitializeScenario(s *godog.ScenarioContext) {
217217
fmt.Println(err)
218218
os.Exit(1)
219219
}
220-
err = util.ExecuteCommandWithRetry(10, "1s", "virsh --readonly -c qemu:///system capabilities", "contains", "<capabilities>")
221-
if err != nil {
222-
fmt.Println(err)
223-
os.Exit(1)
224-
}
225220
}
226221

227222
if tag.Name == "@system_network" {

0 commit comments

Comments
 (0)