This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ignoring objects having specified tag(s) when reading…
… from Kong
- Loading branch information
1 parent
f7e3a9b
commit 76c96ef
Showing
11 changed files
with
108 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"plugins": [ | ||
{ | ||
"tags": [ "kongverge-ignore" ], | ||
"name": "key-auth", | ||
"config": {} | ||
} | ||
], | ||
"consumers": [ | ||
{ | ||
"tags": [ "kongverge-ignore" ], | ||
"username": "ignored", | ||
"custom_id": "ignored_user", | ||
"id": "65c5e2d4-8a05-4c99-bea8-665a41b33ace", | ||
"plugins": [ | ||
{ | ||
"name": "request-termination", | ||
"config": { | ||
"status_code": 401, | ||
"content_type": "application/json; charset=utf-8", | ||
"body": "{ \"error\": \"Authentication required\" }" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
test/Kongverge.IntegrationTests/FolderIgnored/service.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"tags": [ "kongverge-ignore" ], | ||
"name": "service", | ||
"host": "www.service1.com", | ||
"port": 80, | ||
"path": "/resource", | ||
"protocol": "http", | ||
"retries": 1, | ||
"connect_timeout": 10000, | ||
"read_timeout": 10000, | ||
"write_timeout": 10000, | ||
"plugins": [ | ||
{ | ||
"name": "request-termination", | ||
"config": { | ||
"message": "request-terminated", | ||
"status_code": 403 | ||
} | ||
} | ||
], | ||
"routes": [ | ||
{ | ||
"paths": [ | ||
"/resource1" | ||
], | ||
"protocols": [ | ||
"http", | ||
"https" | ||
], | ||
"regex_priority": 40, | ||
"strip_path": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters