-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docu * Tests * More tests * Implementation of reusable proxy blocks * Changelog * Reusable proxies in api-endpoints, too * DRY * Simplify tests * Reference the attribute in the error message * Check for string type Co-authored-by: Johannes Koch <53434855+johakoch@users.noreply.github.com> * No need to delete before throwing error. * Test non-string proxy reference * Test if a proxy reference does not exist * Test unique proxy labels * Fix merge error * Check for unique proxy labels only before merge * WS Co-authored-by: Johannes Koch <53434855+johakoch@users.noreply.github.com> Co-authored-by: Johannes Koch <53434855+johakoch@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
216 additions
and
11 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
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,48 @@ | ||
server "couper" { | ||
endpoint "/abcdef" { | ||
proxy = "test" | ||
response { | ||
status = 204 | ||
} | ||
} | ||
endpoint "/reuse" { | ||
proxy = "test" | ||
response { | ||
status = 204 | ||
} | ||
} | ||
|
||
endpoint "/default" { | ||
proxy = "defaultName" | ||
} | ||
|
||
api { | ||
endpoint "/api-abcdef" { | ||
proxy = "test" | ||
response { | ||
status = 204 | ||
} | ||
} | ||
endpoint "/api-reuse" { | ||
proxy = "test" | ||
response { | ||
status = 204 | ||
} | ||
} | ||
|
||
endpoint "/api-default" { | ||
proxy = "defaultName" | ||
} | ||
} | ||
} | ||
|
||
definitions { | ||
proxy "defaultName" { | ||
url = "${env.COUPER_TEST_BACKEND_ADDR}/anything" | ||
} | ||
|
||
proxy "test" { | ||
name = "abcdef" | ||
url = "${env.COUPER_TEST_BACKEND_ADDR}/anything" | ||
} | ||
} |
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,5 @@ | ||
server { | ||
endpoint "/" { | ||
proxy = 1 | ||
} | ||
} |
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,5 @@ | ||
server { | ||
endpoint "/" { | ||
proxy = "foo" | ||
} | ||
} |