From 22737157a4b74c04cf4e6b33b0e032860309d4de Mon Sep 17 00:00:00 2001 From: Antoine Jacquemin Date: Thu, 5 Dec 2024 11:41:37 +0100 Subject: [PATCH] add tests --- tests/integration/validate_test.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/integration/validate_test.go b/tests/integration/validate_test.go index 95a65c472..c1c257000 100644 --- a/tests/integration/validate_test.go +++ b/tests/integration/validate_test.go @@ -149,11 +149,6 @@ func Test_Validate_File(t *testing.T) { stateFile: "testdata/validate/rbac-resources.yaml", additionalArgs: []string{"--rbac-resources-only"}, }, - { - name: "file validate with --online-entities-list", - stateFile: "testdata/validate/kong3x.yaml", - additionalArgs: []string{"--online-entities-list=Services,Routes,Plugins"}, - }, } for _, tc := range tests { @@ -239,6 +234,16 @@ func Test_Validate_Gateway_EE(t *testing.T) { stateFile: "testdata/validate/kong-ee.yaml", additionalArgs: []string{"--workspace=default"}, }, + { + name: "validate format version 3.0 with --online-entities-list", + stateFile: "testdata/validate/kong-ee.yaml", + additionalArgs: []string{"--online-entities-list=Services,Routes,Plugins"}, + }, + { + name: "validate with konnect and --online-entities-list", + stateFile: "testdata/validate/konnect.yaml", + additionalArgs: []string{"--online-entities-list=Services,Routes,Plugins"}, + }, // TODO: Add a rbac flag test, once the behaviour is fixed }