Skip to content

Commit

Permalink
Testing Glob patterns in incoming permissions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
druminski committed Jul 23, 2024
1 parent 4864cfd commit 69dac7c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class IncomingPermissionsPathMatchingTest {
- /api/**/description
- /*/login
- /**/health
- /path/{path1,path2}
clients: ["echo2"]
- path: "/path"
clients: ["echo2"]
Expand Down Expand Up @@ -172,6 +173,12 @@ class IncomingPermissionsPathMatchingTest {
echo2Envoy.egressOperations.callService(service = "echo", pathAndQuery = "/api/login").also {
assertThat(it).isOk()
}
echo2Envoy.egressOperations.callService(service = "echo", pathAndQuery = "/path/path1").also {
assertThat(it).isOk()
}
echo2Envoy.egressOperations.callService(service = "echo", pathAndQuery = "/path/path2").also {
assertThat(it).isOk()
}
echo2Envoy.egressOperations.callService(service = "echo", pathAndQuery = "/api/products/too/many/reviews").also {
assertThat(it).isForbidden()
}
Expand Down

0 comments on commit 69dac7c

Please sign in to comment.