| 1 | --- |
| 2 | version: 1 |
| 3 | rwmutex: {} |
| 4 | interactions: |
| 5 | - request: |
| 6 | body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=48&content=%0A%09%23+testing+EdgeACL2+and+EdgeDictionary2%0A%09+declare+local+var.number2+STRING%3B%0A%09+set+var.number2+%3D+table.lookup%28demoDICTtest%2C+client.as.number%29%3B%0A%0A%09+if+%28var.number2+%3D%3D+%22true%22%29+%7B%0A%09+++set+req.http.securityruleid+%3D+%22num2-block%22%3B%0A%09+error+403+%22Access+Denied%22%3B%0A%09++%7D%0A++++&dynamic=0&name=testsnip0&priority=100&type=recv |
| 7 | form: |
| 8 | Service: |
| 9 | - 7i6HN3TK9wS159v2gPAZ8A |
| 10 | Version: |
| 11 | - "48" |
| 12 | content: |
| 13 | - "\n\t# testing EdgeACL2 and EdgeDictionary2\n\t declare local var.number2 |
| 14 | STRING;\n\t set var.number2 = table.lookup(demoDICTtest, client.as.number);\n\n\t |
| 15 | if (var.number2 == \"true\") {\n\t set req.http.securityruleid = \"num2-block\";\n\t |
| 16 | error 403 \"Access Denied\";\n\t }\n " |
| 17 | dynamic: |
| 18 | - "0" |
| 19 | name: |
| 20 | - testsnip0 |
| 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":"\n\t# testing EdgeACL2 and EdgeDictionary2\n\t declare local |
| 36 | var.number2 STRING;\n\t set var.number2 = table.lookup(demoDICTtest, client.as.number);\n\n\t |
| 37 | if (var.number2 == \"true\") {\n\t set req.http.securityruleid = \"num2-block\";\n\t |
| 38 | error 403 \"Access Denied\";\n\t }\n ","dynamic":0,"name":"testsnip0","priority":"100","type":"recv","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"48","updated_at":"2019-05-10T18:17:55Z","created_at":"2019-05-10T18:17:55Z","deleted_at":null,"id":"0PJ48WhuJVqxpqIAldWQ4E"}' |
| 39 | headers: |
| 40 | Accept-Ranges: |
| 41 | - bytes |
| 42 | Cache-Control: |
| 43 | - no-cache |
| 44 | Content-Type: |
| 45 | - application/json |
| 46 | Date: |
| 47 | - Fri, 10 May 2019 18:17:55 GMT |
| 48 | Fastly-Ratelimit-Remaining: |
| 49 | - "998" |
| 50 | Fastly-Ratelimit-Reset: |
| 51 | - "1557514800" |
| 52 | Status: |
| 53 | - 200 OK |
| 54 | Strict-Transport-Security: |
| 55 | - max-age=31536000 |
| 56 | Vary: |
| 57 | - Accept-Encoding |
| 58 | Via: |
| 59 | - 1.1 varnish |
| 60 | - 1.1 varnish |
| 61 | X-Cache: |
| 62 | - MISS, MISS |
| 63 | X-Cache-Hits: |
| 64 | - 0, 0 |
| 65 | X-Served-By: |
| 66 | - cache-control-slwdc9035-CONTROL-SLWDC, cache-lax8628-LAX |
| 67 | X-Timer: |
| 68 | - S1557512275.257185,VS0,VE342 |
| 69 | status: 200 OK |
| 70 | code: 200 |