File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 17
17
uses : actions/checkout@v2
18
18
- name : Run Windows Integration Tests
19
19
run : |
20
+ # required for running Volume and Disk tests
21
+ Install-WindowsFeature -name Hyper-V-PowerShell
22
+
20
23
$env:CSI_PROXY_GH_ACTIONS="TRUE"
21
- go test -v -race ./integrationtests/...
24
+ go test --timeout 20m - v -race ./integrationtests/...
22
25
unit_tests :
23
26
strategy :
24
27
matrix :
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ func TestDisk(t *testing.T) {
78
78
})
79
79
80
80
t .Run ("Get/SetDiskState" , func (t * testing.T ) {
81
- skipTestOnCondition (t , isRunningOnGhActions ())
82
81
83
82
client , err := disk .New (diskapi .New ())
84
83
require .Nil (t , err )
@@ -143,7 +142,6 @@ func TestDisk(t *testing.T) {
143
142
})
144
143
145
144
t .Run ("PartitionDisk" , func (t * testing.T ) {
146
- skipTestOnCondition (t , isRunningOnGhActions ())
147
145
148
146
var err error
149
147
client , err := disk .New (diskapi .New ())
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ func TestVolume(t *testing.T) {
21
21
negativeVolumeTests (t )
22
22
})
23
23
24
- // TODO: These tests will fail on Github Actions because Hyper-V is disabled
25
- // see https://github.com/actions/virtual-environments/pull/2525
26
-
27
24
// these tests should be considered frozen from the API point of view
28
25
volumeClient , err := volume .New (volumeapi .New ())
29
26
require .Nil (t , err )
@@ -32,12 +29,10 @@ func TestVolume(t *testing.T) {
32
29
require .Nil (t , err )
33
30
34
31
t .Run ("MountVolume" , func (t * testing.T ) {
35
- skipTestOnCondition (t , isRunningOnGhActions ())
36
32
mountVolumeTests (diskClient , volumeClient , t )
37
33
})
38
34
39
35
t .Run ("GetClosestVolumeFromTargetPath" , func (t * testing.T ) {
40
- skipTestOnCondition (t , isRunningOnGhActions ())
41
36
getClosestVolumeFromTargetPathTests (diskClient , volumeClient , t )
42
37
})
43
38
}
You can’t perform that action at this time.
0 commit comments