Skip to content

Commit

Permalink
Remove customplugin-auth test, not on 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Nov 6, 2023
1 parent 59cdad0 commit 3848ccd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions coprocess/python/coprocess_python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,6 @@ func TestPythonBundles(t *testing.T) {
spec.EnableCoProcessAuth = true
spec.CustomMiddlewareBundle = authCheckBundle
spec.VersionData.NotVersioned = true
}, func(spec *gateway.APISpec) {
spec.Proxy.ListenPath = "/test-api-with-customplugin-auth-enabled/"
spec.UseKeylessAccess = false
spec.CustomPluginAuthEnabled = true
spec.CustomMiddlewareBundle = authCheckBundle
spec.VersionData.NotVersioned = true
})

validAuth := map[string]string{"Authorization": validToken}
Expand All @@ -261,13 +255,6 @@ func TestPythonBundles(t *testing.T) {
{Path: "/test-api/", Code: http.StatusOK, Headers: validAuth},
{Path: "/test-api/", Code: http.StatusForbidden, Headers: invalidAuth},
{Path: "/test-api/", Code: http.StatusForbidden, Headers: validAuth},

// Delete sessions so that next set of tests works afresh
{Method: http.MethodDelete, Path: "/tyk/keys/" + validToken, AdminAuth: true, Code: http.StatusOK, BodyMatch: `"action":"deleted"`},

{Path: "/test-api-with-customplugin-auth-enabled/", Code: http.StatusOK, Headers: validAuth},
{Path: "/test-api-with-customplugin-auth-enabled/", Code: http.StatusForbidden, Headers: invalidAuth},
{Path: "/test-api-with-customplugin-auth-enabled/", Code: http.StatusForbidden, Headers: validAuth},
}...)
})

Expand Down

0 comments on commit 3848ccd

Please sign in to comment.