-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #777 from sboardwell/add-optional-proxy-bypass
Add optional selective cache refresh option
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
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
39 changes: 39 additions & 0 deletions
39
charts/artifact-caching-proxy/tests/proxy_cache_bypass_test.yaml
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,39 @@ | ||
suite: Tests using proxyBypass | ||
templates: | ||
- nginx-proxy-configmap.yaml | ||
tests: | ||
- it: Should include proxy_cache_bypass | ||
template: nginx-proxy-configmap.yaml | ||
set: | ||
proxy: | ||
proxyBypass: | ||
enabled: true | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: ConfigMap | ||
- matchRegex: | ||
path: data["vhost-proxy.conf"] | ||
pattern: proxy_cache_bypass | ||
- matchRegex: | ||
path: data["vhost-proxy.conf"] | ||
pattern: set \$bypass 0; | ||
|
||
- it: Should NOT include proxy_cache_bypass | ||
template: nginx-proxy-configmap.yaml | ||
set: | ||
proxy: | ||
proxyBypass: | ||
enabled: false | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: ConfigMap | ||
- notMatchRegex: | ||
path: data["vhost-proxy.conf"] | ||
pattern: proxy_cache_bypass | ||
- notMatchRegex: | ||
path: data["vhost-proxy.conf"] | ||
pattern: set \$bypass 0; |
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