File: create.yaml

package info (click to toggle)
golang-github-sethvargo-go-fastly 1.2.1%2Bgit20190805.5c6c8bd-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,584 kB
  • sloc: makefile: 71
file content (70 lines) | stat: -rw-r--r-- 2,609 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
version: 1
rwmutex: {}
interactions:
- request:
    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
    form:
      Service:
      - 7i6HN3TK9wS159v2gPAZ8A
      Version:
      - "48"
      content:
      - "\n\t# testing EdgeACL2 and EdgeDictionary2\n\t declare local var.number2
        STRING;\n\t set var.number2 = table.lookup(demoDICTtest, client.as.number);\n\n\t
        if (var.number2 == \"true\") {\n\t   set req.http.securityruleid = \"num2-block\";\n\t
        error 403 \"Access Denied\";\n\t  }\n    "
      dynamic:
      - "0"
      name:
      - testsnip0
      priority:
      - "100"
      type:
      - recv
    headers:
      Content-Type:
      - application/x-www-form-urlencoded
      Fastly-Key:
      - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      User-Agent:
      - FastlyGo/0.4.3.dev (+github.com/fastly/go-fastly; go1.12)
    url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/48/snippet
    method: POST
  response:
    body: '{"content":"\n\t# testing EdgeACL2 and EdgeDictionary2\n\t declare local
      var.number2 STRING;\n\t set var.number2 = table.lookup(demoDICTtest, client.as.number);\n\n\t
      if (var.number2 == \"true\") {\n\t   set req.http.securityruleid = \"num2-block\";\n\t
      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"}'
    headers:
      Accept-Ranges:
      - bytes
      Cache-Control:
      - no-cache
      Content-Type:
      - application/json
      Date:
      - Fri, 10 May 2019 18:17:55 GMT
      Fastly-Ratelimit-Remaining:
      - "998"
      Fastly-Ratelimit-Reset:
      - "1557514800"
      Status:
      - 200 OK
      Strict-Transport-Security:
      - max-age=31536000
      Vary:
      - Accept-Encoding
      Via:
      - 1.1 varnish
      - 1.1 varnish
      X-Cache:
      - MISS, MISS
      X-Cache-Hits:
      - 0, 0
      X-Served-By:
      - cache-control-slwdc9035-CONTROL-SLWDC, cache-lax8628-LAX
      X-Timer:
      - S1557512275.257185,VS0,VE342
    status: 200 OK
    code: 200