forked fromalphagov/fabric-scripts
- Notifications
You must be signed in to change notification settings - Fork0
Commit26ec51c
committed
Look for '200 Purged' in cache.purge output
If the command succeeds we should see output like:```[cache-3.router] out: HTTP/1.1 200 Purged[cache-3.router] out:[cache-3.router] out: Server: Varnish[cache-3.router] out:[cache-3.router] out: Content-Type: text/html; charset=utf-8[cache-3.router] out:[cache-3.router] out: Retry-After: 5[cache-3.router] out:[cache-3.router] out: Content-Length: 380[cache-3.router] out:[cache-3.router] out: Accept-Ranges: bytes[cache-3.router] out:[cache-3.router] out: Date: Fri, 08 May 2015 13:51:59 GMT[cache-3.router] out:[cache-3.router] out: X-Varnish: 1941001298[cache-3.router] out:[cache-3.router] out: Age: 0[cache-3.router] out:[cache-3.router] out: Via: 1.1 varnish[cache-3.router] out:[cache-3.router] out: Connection: close[cache-3.router] out:[cache-3.router] out: X-Cache: MISS[cache-3.router] out:[cache-3.router] out:[cache-3.router] out:[cache-3.router] out:```This is very verbose when running the command across multiple cachenodes.This commit `grep`s for `200 Purged`, which has the following benefits:- It makes the output smaller- It will exit non-0 if it can't find any matching lines, which means the command will fail and notify us if the response doesn't match expectations1 parentb0827f3 commit26ec51c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments
Comments
(0)