Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac committed Dec 5, 2024
1 parent 3669938 commit 2273715
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/integration/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 2273715

Please sign in to comment.