Skip to content

Commit 5102c5a

Browse files
committed
integration: add FeatureMergeDiff compat
Signed-off-by: CrazyMax <[email protected]>
1 parent 19969b9 commit 5102c5a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

client/client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5817,6 +5817,7 @@ func testProxyEnv(t *testing.T, sb integration.Sandbox) {
58175817
}
58185818

58195819
func testMergeOp(t *testing.T, sb integration.Sandbox) {
5820+
integration.CheckFeatureCompat(t, sb, integration.FeatureMergeDiff)
58205821
requiresLinux(t)
58215822

58225823
c, err := New(sb.Context(), sb.Address())
@@ -5929,7 +5930,7 @@ func testMergeOpCacheMax(t *testing.T, sb integration.Sandbox) {
59295930

59305931
func testMergeOpCache(t *testing.T, sb integration.Sandbox, mode string) {
59315932
t.Helper()
5932-
integration.CheckFeatureCompat(t, sb, integration.FeatureDirectPush)
5933+
integration.CheckFeatureCompat(t, sb, integration.FeatureDirectPush, integration.FeatureMergeDiff)
59335934
requiresLinux(t)
59345935

59355936
cdAddress := sb.ContainerdAddress()

client/mergediff_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,7 @@ func (tc verifyContents) Name() string {
11871187
}
11881188

11891189
func (tc verifyContents) Run(t *testing.T, sb integration.Sandbox) {
1190+
integration.CheckFeatureCompat(t, sb, integration.FeatureMergeDiff)
11901191
if tc.skipOnRootless && sb.Rootless() {
11911192
t.Skip("rootless")
11921193
}

util/testutil/integration/sandbox.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ const (
297297
FeatureFrontendTargets = "frontend_targets"
298298
FeatureImageExporter = "image_exporter"
299299
FeatureInfo = "info"
300+
FeatureMergeDiff = "merge_diff"
300301
FeatureMultiCacheExport = "multi_cache_export"
301302
FeatureMultiPlatform = "multi_platform"
302303
FeatureOCIExporter = "oci_exporter"
@@ -322,6 +323,7 @@ var features = map[string]struct{}{
322323
FeatureFrontendTargets: {},
323324
FeatureImageExporter: {},
324325
FeatureInfo: {},
326+
FeatureMergeDiff: {},
325327
FeatureMultiCacheExport: {},
326328
FeatureMultiPlatform: {},
327329
FeatureOCIExporter: {},

0 commit comments

Comments
 (0)