Skip to content

Commit 9fc09a1

Browse files
committed
tests: dual testing for konnect
1 parent d1b03d5 commit 9fc09a1

File tree

4 files changed

+169
-0
lines changed

4 files changed

+169
-0
lines changed

tests/integration/apply_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ func Test_Apply_KeysAndKeySets(t *testing.T) {
251251
// test scope:
252252
// - konnect
253253
func Test_Apply_KeysAndKeySets_Konnect(t *testing.T) {
254+
runDualTestWithSkipDefaults(t, "Test_Apply_KeysAndKeySets_Konnect", testApplyKeysAndKeySetsKonnectImpl)
255+
}
256+
257+
func testApplyKeysAndKeySetsKonnectImpl(t *testing.T) {
254258
setDefaultKonnectControlPlane(t)
255259
runWhenKonnect(t)
256260
setup(t)
@@ -333,6 +337,10 @@ func Test_Apply_KeysAndKeySets_Konnect(t *testing.T) {
333337
// test scope:
334338
// - konnect
335339
func Test_Apply_NestedEntities_Konnect(t *testing.T) {
340+
runDualTestWithSkipDefaults(t, "Test_Apply_NestedEntities_Konnect", testApplyNestedEntitiesKonnectImpl)
341+
}
342+
343+
func testApplyNestedEntitiesKonnectImpl(t *testing.T) {
336344
setDefaultKonnectControlPlane(t)
337345
runWhenKonnect(t)
338346
setup(t)
@@ -384,6 +392,10 @@ func Test_Apply_NestedEntities_Konnect(t *testing.T) {
384392
//
385393
// - konnect
386394
func Test_Apply_BasicAuth_SkipHash_Konnect(t *testing.T) {
395+
runDualTestWithSkipDefaults(t, "Test_Apply_BasicAuth_SkipHash_Konnect", testApplyBasicAuthSkipHashKonnectImpl)
396+
}
397+
398+
func testApplyBasicAuthSkipHashKonnectImpl(t *testing.T) {
387399
setDefaultKonnectControlPlane(t)
388400
runWhenKonnect(t)
389401
setup(t)

tests/integration/diff_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,10 @@ func Test_Diff_NoDiffCompressedTarget(t *testing.T) {
903903
}
904904

905905
func Test_Diff_Consumers_Default_Lookup_Tag(t *testing.T) {
906+
runDualTestWithSkipDefaults(t, "Test_Diff_Consumers_Default_Lookup_Tag", testDiffConsumersDefaultLookupTagImpl)
907+
}
908+
909+
func testDiffConsumersDefaultLookupTagImpl(t *testing.T) {
906910
runWhenEnterpriseOrKonnect(t, ">=2.8.0")
907911
setup(t)
908912

0 commit comments

Comments
 (0)