Skip to content

Commit 2f7007e

Browse files
authored
Merge pull request moby#5727 from crazy-max/test-skip-cdi-moby
test: skip cdi feature tests on moby
2 parents 6702365 + a24dc91 commit 2f7007e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

client/client_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10960,6 +10960,7 @@ func testCDI(t *testing.T, sb integration.Sandbox) {
1096010960
}
1096110961

1096210962
integration.SkipOnPlatform(t, "windows")
10963+
workers.CheckFeatureCompat(t, sb, workers.FeatureCDI)
1096310964
c, err := New(sb.Context(), sb.Address())
1096410965
require.NoError(t, err)
1096510966
defer c.Close()
@@ -11024,6 +11025,7 @@ func testCDIFirst(t *testing.T, sb integration.Sandbox) {
1102411025
}
1102511026

1102611027
integration.SkipOnPlatform(t, "windows")
11028+
workers.CheckFeatureCompat(t, sb, workers.FeatureCDI)
1102711029
c, err := New(sb.Context(), sb.Address())
1102811030
require.NoError(t, err)
1102911031
defer c.Close()
@@ -11088,6 +11090,7 @@ func testCDIWildcard(t *testing.T, sb integration.Sandbox) {
1108811090
}
1108911091

1109011092
integration.SkipOnPlatform(t, "windows")
11093+
workers.CheckFeatureCompat(t, sb, workers.FeatureCDI)
1109111094
c, err := New(sb.Context(), sb.Address())
1109211095
require.NoError(t, err)
1109311096
defer c.Close()
@@ -11142,6 +11145,7 @@ func testCDIClass(t *testing.T, sb integration.Sandbox) {
1114211145
}
1114311146

1114411147
integration.SkipOnPlatform(t, "windows")
11148+
workers.CheckFeatureCompat(t, sb, workers.FeatureCDI)
1114511149
c, err := New(sb.Context(), sb.Address())
1114611150
require.NoError(t, err)
1114711151
defer c.Close()

util/testutil/workers/dockerd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func InitDockerdWorker() {
4141
FeatureSBOM,
4242
FeatureSecurityMode,
4343
FeatureCNINetwork,
44+
FeatureCDI,
4445
},
4546
})
4647
integration.Register(&Moby{
@@ -51,6 +52,7 @@ func InitDockerdWorker() {
5152
FeatureSecurityMode,
5253
FeatureCNINetwork,
5354
FeatureContentCheck,
55+
FeatureCDI,
5456
},
5557
})
5658
}

util/testutil/workers/features.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const (
3131
FeatureSourceDateEpoch = "source_date_epoch"
3232
FeatureCNINetwork = "cni_network"
3333
FeatureContentCheck = "content_check"
34+
FeatureCDI = "cdi"
3435
)
3536

3637
var features = map[string]struct{}{
@@ -58,6 +59,7 @@ var features = map[string]struct{}{
5859
FeatureSourceDateEpoch: {},
5960
FeatureCNINetwork: {},
6061
FeatureContentCheck: {},
62+
FeatureCDI: {},
6163
}
6264

6365
func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) {

0 commit comments

Comments
 (0)