File tree Expand file tree Collapse file tree 7 files changed +6
-29
lines changed Expand file tree Collapse file tree 7 files changed +6
-29
lines changed Original file line number Diff line number Diff line change 20
20
go build -v -a -o ./bin/csi-proxy-api-gen.exe ./cmd/csi-proxy-api-gen
21
21
- name : Run Windows Integration Tests
22
22
run : |
23
+ # required for running Volume and Disk tests
24
+ Install-WindowsFeature -name Hyper-V-PowerShell
25
+
23
26
# start the CSI Proxy before running tests on windows
24
27
Start-Job -Name CSIProxy -ScriptBlock {
25
28
.\bin\csi-proxy.exe
28
31
Write-Output "getting named pipes"
29
32
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
30
33
$env:CSI_PROXY_GH_ACTIONS="TRUE"
31
- go test -v -race ./integrationtests/...
34
+ go test -timeout 20m - v -race ./integrationtests/...
32
35
unit_tests :
33
36
strategy :
34
37
matrix :
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ func v1DiskTests(t *testing.T) {
77
77
})
78
78
79
79
t .Run ("Get/SetDiskState" , func (t * testing.T ) {
80
- skipTestOnCondition (t , isRunningOnGhActions ())
81
-
82
80
client , err := diskv1client .NewClient ()
83
81
require .NoError (t , err )
84
82
@@ -144,8 +142,6 @@ func v1DiskTests(t *testing.T) {
144
142
})
145
143
146
144
t .Run ("PartitionDisk" , func (t * testing.T ) {
147
- skipTestOnCondition (t , isRunningOnGhActions ())
148
-
149
145
var err error
150
146
client , err := diskv1client .NewClient ()
151
147
require .NoError (t , err )
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ func v1alpha1DiskTests(t *testing.T) {
34
34
})
35
35
36
36
t .Run ("Rescan" , func (t * testing.T ) {
37
- skipTestOnCondition (t , isRunningOnGhActions ())
38
-
39
37
client , err := diskv1alpha1client .NewClient ()
40
38
require .NoError (t , err )
41
39
@@ -47,8 +45,6 @@ func v1alpha1DiskTests(t *testing.T) {
47
45
})
48
46
49
47
t .Run ("PartitionDisk" , func (t * testing.T ) {
50
- skipTestOnCondition (t , isRunningOnGhActions ())
51
-
52
48
var err error
53
49
client , err := diskv1alpha1client .NewClient ()
54
50
require .NoError (t , err )
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ func v1beta1DiskTests(t *testing.T) {
57
57
})
58
58
59
59
t .Run ("Get/SetDiskState" , func (t * testing.T ) {
60
- skipTestOnCondition (t , isRunningOnGhActions ())
61
-
62
60
client , err := diskv1beta1client .NewClient ()
63
61
require .NoError (t , err )
64
62
@@ -86,8 +84,6 @@ func v1beta1DiskTests(t *testing.T) {
86
84
})
87
85
88
86
t .Run ("PartitionDisk" , func (t * testing.T ) {
89
- skipTestOnCondition (t , isRunningOnGhActions ())
90
-
91
87
var err error
92
88
client , err := diskv1beta1client .NewClient ()
93
89
require .NoError (t , err )
Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ func v1beta2DiskTests(t *testing.T) {
58
58
})
59
59
60
60
t .Run ("Get/SetDiskState" , func (t * testing.T ) {
61
- skipTestOnCondition (t , isRunningOnGhActions ())
62
-
63
61
client , err := diskv1beta2client .NewClient ()
64
62
require .NoError (t , err )
65
63
@@ -127,8 +125,6 @@ func v1beta2DiskTests(t *testing.T) {
127
125
})
128
126
129
127
t .Run ("PartitionDisk" , func (t * testing.T ) {
130
- skipTestOnCondition (t , isRunningOnGhActions ())
131
-
132
128
var err error
133
129
client , err := diskv1beta2client .NewClient ()
134
130
require .NoError (t , err )
Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ func v1beta3DiskTests(t *testing.T) {
77
77
})
78
78
79
79
t .Run ("Get/SetDiskState" , func (t * testing.T ) {
80
- skipTestOnCondition (t , isRunningOnGhActions ())
81
-
82
80
client , err := diskv1beta3client .NewClient ()
83
81
require .NoError (t , err )
84
82
@@ -144,8 +142,6 @@ func v1beta3DiskTests(t *testing.T) {
144
142
})
145
143
146
144
t .Run ("PartitionDisk" , func (t * testing.T ) {
147
- skipTestOnCondition (t , isRunningOnGhActions ())
148
-
149
145
var err error
150
146
client , err := diskv1beta3client .NewClient ()
151
147
require .NoError (t , err )
Original file line number Diff line number Diff line change @@ -148,32 +148,26 @@ func TestVolumeAPIs(t *testing.T) {
148
148
negativeVolumeTests (t )
149
149
})
150
150
151
- // TODO: These tests will fail on Github Actions because Hyper-V is disabled
152
- // see https://github.com/actions/virtual-environments/pull/2525
151
+ // Github Actions WS 2022 supports hyper-v
152
+ // must install management tools manually
153
153
154
154
// these tests should be considered frozen from the API point of view
155
155
t .Run ("v1alpha1Tests" , func (t * testing.T ) {
156
- skipTestOnCondition (t , isRunningOnGhActions ())
157
156
v1alpha1VolumeTests (t )
158
157
})
159
158
t .Run ("v1beta1Tests" , func (t * testing.T ) {
160
- skipTestOnCondition (t , isRunningOnGhActions ())
161
159
v1beta1VolumeTests (t )
162
160
})
163
161
t .Run ("v1beta2Tests" , func (t * testing.T ) {
164
- skipTestOnCondition (t , isRunningOnGhActions ())
165
162
v1beta2VolumeTests (t )
166
163
})
167
164
t .Run ("v1beta3Tests" , func (t * testing.T ) {
168
- skipTestOnCondition (t , isRunningOnGhActions ())
169
165
v1beta3VolumeTests (t )
170
166
})
171
167
t .Run ("v1Tests" , func (t * testing.T ) {
172
- skipTestOnCondition (t , isRunningOnGhActions ())
173
168
v1VolumeTests (t )
174
169
})
175
170
t .Run ("v2alpha1Tests" , func (t * testing.T ) {
176
- skipTestOnCondition (t , isRunningOnGhActions ())
177
171
v2alpha1VolumeTests (t )
178
172
})
179
173
}
You can’t perform that action at this time.
0 commit comments