| 1 | --- |
| 2 | version: 1 |
| 3 | rwmutex: {} |
| 4 | interactions: |
| 5 | - request: |
| 6 | body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=48&content=%0A%09+%23+testing+EdgeACL6+and+EdgeDictionary6%0A%09++declare+local+var.number6+STRING%3B%0A%09++set+var.number6+%3D+table.lookup%28demoDICTtest%2C+client.as.number%29%3B%0A%0A%09++if+%28var.number6+%3D%3D+%22true%22%29+%7B%0A%09++++set+req.http.securityruleid+%3D+%22num6-block%22%3B%0A%09+error+403+%22Access+Denied%22%3B%0A%09++%7D%0A%09&dynamic=1&name=testsnip5&priority=100&type=recv |
| 7 | form: |
| 8 | Service: |
| 9 | - 7i6HN3TK9wS159v2gPAZ8A |
| 10 | Version: |
| 11 | - "48" |
| 12 | content: |
| 13 | - "\n\t # testing EdgeACL6 and EdgeDictionary6\n\t declare local var.number6 |
| 14 | STRING;\n\t set var.number6 = table.lookup(demoDICTtest, client.as.number);\n\n\t |
| 15 | \ if (var.number6 == \"true\") {\n\t set req.http.securityruleid = \"num6-block\";\n\t |
| 16 | error 403 \"Access Denied\";\n\t }\n\t" |
| 17 | dynamic: |
| 18 | - "1" |
| 19 | name: |
| 20 | - testsnip5 |
| 21 | priority: |
| 22 | - "100" |
| 23 | type: |
| 24 | - recv |
| 25 | headers: |
| 26 | Content-Type: |
| 27 | - application/x-www-form-urlencoded |
| 28 | Fastly-Key: |
| 29 | - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 30 | User-Agent: |
| 31 | - FastlyGo/0.4.3.dev (+github.com/fastly/go-fastly; go1.12) |
| 32 | url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/48/snippet |
| 33 | method: POST |
| 34 | response: |
| 35 | body: '{"content":null,"dynamic":1,"name":"testsnip5","priority":"100","type":"recv","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"48","created_at":"2019-05-10T18:17:55Z","deleted_at":null,"updated_at":"2019-05-10T18:17:55Z","id":"4tZ3EnzeCIiKtsmQcJRs2X"}' |
| 36 | headers: |
| 37 | Accept-Ranges: |
| 38 | - bytes |
| 39 | Cache-Control: |
| 40 | - no-cache |
| 41 | Content-Type: |
| 42 | - application/json |
| 43 | Date: |
| 44 | - Fri, 10 May 2019 18:17:56 GMT |
| 45 | Fastly-Ratelimit-Remaining: |
| 46 | - "997" |
| 47 | Fastly-Ratelimit-Reset: |
| 48 | - "1557514800" |
| 49 | Status: |
| 50 | - 200 OK |
| 51 | Strict-Transport-Security: |
| 52 | - max-age=31536000 |
| 53 | Vary: |
| 54 | - Accept-Encoding |
| 55 | Via: |
| 56 | - 1.1 varnish |
| 57 | - 1.1 varnish |
| 58 | X-Cache: |
| 59 | - MISS, MISS |
| 60 | X-Cache-Hits: |
| 61 | - 0, 0 |
| 62 | X-Served-By: |
| 63 | - cache-control-slwdc9035-CONTROL-SLWDC, cache-lax8628-LAX |
| 64 | X-Timer: |
| 65 | - S1557512276.813285,VS0,VE203 |
| 66 | status: 200 OK |
| 67 | code: 200 |