Skip to content

Commit

Permalink
Add Honeycomb endpoint support
Browse files Browse the repository at this point in the history
  • Loading branch information
ezkl committed May 6, 2020
1 parent d5b4788 commit 0796fc4
Show file tree
Hide file tree
Showing 9 changed files with 917 additions and 0 deletions.
95 changes: 95 additions & 0 deletions fastly/fixtures/honeycombs/cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb/test-honeycomb
method: DELETE
response:
body: '{"msg":"Record not found","detail":"Couldn''t find syslog ''{ deleted =\u003e
0000-00-00 00:00:00, name =\u003e test-honeycomb, service =\u003e 7i6HN3TK9wS159v2gPAZ8A,
version =\u003e 58 }''"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:08 GMT
Fastly-Ratelimit-Remaining:
- "989"
Fastly-Ratelimit-Reset:
- "1588633200"
Status:
- 404 Not Found
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-slwdc9037-CONTROL-SLWDC, cache-pao17449-PAO
X-Timer:
- S1588630388.209480,VS0,VE161
status: 404 Not Found
code: 404
duration: ""
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb/new-test-honeycomb
method: DELETE
response:
body: '{"msg":"Record not found","detail":"Couldn''t find syslog ''{ deleted =\u003e
0000-00-00 00:00:00, name =\u003e new-test-honeycomb, service =\u003e 7i6HN3TK9wS159v2gPAZ8A,
version =\u003e 58 }''"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:08 GMT
Fastly-Ratelimit-Remaining:
- "988"
Fastly-Ratelimit-Reset:
- "1588633200"
Status:
- 404 Not Found
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-slwdc9037-CONTROL-SLWDC, cache-pao17449-PAO
X-Timer:
- S1588630388.389832,VS0,VE170
status: 404 Not Found
code: 404
duration: ""
65 changes: 65 additions & 0 deletions fastly/fixtures/honeycombs/create.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
version: 1
interactions:
- request:
body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=58&dataset=testDataset&format=%25h+%25l+%25u+%25t+%22%25r%22+%25%3Es+%25b&format_version=2&name=test-honeycomb&placement=waf_debug&token=super-secure-token
form:
Service:
- 7i6HN3TK9wS159v2gPAZ8A
Version:
- "58"
dataset:
- testDataset
format:
- '%h %l %u %t "%r" %>s %b'
format_version:
- "2"
name:
- test-honeycomb
placement:
- waf_debug
token:
- super-secure-token
headers:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb
method: POST
response:
body: '{"dataset":"testDataset","format":"%h %l %u %t \"%r\" %\u003es %b","format_version":"2","name":"test-honeycomb","placement":"waf_debug","token":"super-secure-token","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"58","response_condition":"","updated_at":"2020-05-04T22:13:06Z","created_at":"2020-05-04T22:13:06Z","deleted_at":null}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:06 GMT
Fastly-Ratelimit-Remaining:
- "992"
Fastly-Ratelimit-Reset:
- "1588633200"
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-slwdc9037-CONTROL-SLWDC, cache-pao17449-PAO
X-Timer:
- S1588630386.310867,VS0,VE444
status: 200 OK
code: 200
duration: ""
47 changes: 47 additions & 0 deletions fastly/fixtures/honeycombs/delete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb/new-test-honeycomb
method: DELETE
response:
body: '{"status":"ok"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:08 GMT
Fastly-Ratelimit-Remaining:
- "990"
Fastly-Ratelimit-Reset:
- "1588633200"
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-pao17449-PAO
X-Timer:
- S1588630388.872246,VS0,VE320
status: 200 OK
code: 200
duration: ""
48 changes: 48 additions & 0 deletions fastly/fixtures/honeycombs/get.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb/test-honeycomb
method: GET
response:
body: '{"created_at":"2020-05-04T22:13:06Z","response_condition":"","updated_at":"2020-05-04T22:13:06Z","version":"58","token":"super-secure-token","format":"%h
%l %u %t \"%r\" %\u003es %b","format_version":"2","deleted_at":null,"dataset":"testDataset","name":"test-honeycomb","service_id":"7i6HN3TK9wS159v2gPAZ8A","placement":"waf_debug"}'
headers:
Accept-Ranges:
- bytes
- bytes
- bytes
Age:
- "0"
- "0"
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:07 GMT
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-pao17449-PAO
X-Timer:
- S1588630387.958697,VS0,VE176
status: 200 OK
code: 200
duration: ""
48 changes: 48 additions & 0 deletions fastly/fixtures/honeycombs/list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb
method: GET
response:
body: '[{"service_id":"7i6HN3TK9wS159v2gPAZ8A","dataset":"testDataset","response_condition":"","format_version":"2","format":"%h
%l %u %t \"%r\" %\u003es %b","placement":"waf_debug","updated_at":"2020-05-04T22:13:06Z","deleted_at":null,"version":"58","name":"test-honeycomb","token":"super-secure-token","created_at":"2020-05-04T22:13:06Z"}]'
headers:
Accept-Ranges:
- bytes
- bytes
- bytes
Age:
- "0"
- "0"
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:06 GMT
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-slwdc9037-CONTROL-SLWDC, cache-pao17449-PAO
X-Timer:
- S1588630387.774677,VS0,VE166
status: 200 OK
code: 200
duration: ""
62 changes: 62 additions & 0 deletions fastly/fixtures/honeycombs/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
version: 1
interactions:
- request:
body: Name=test-honeycomb&Service=7i6HN3TK9wS159v2gPAZ8A&Version=58&dataset=newDataset&name=new-test-honeycomb&token=new-token
form:
Name:
- test-honeycomb
Service:
- 7i6HN3TK9wS159v2gPAZ8A
Version:
- "58"
dataset:
- newDataset
name:
- new-test-honeycomb
token:
- new-token
headers:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/1.10.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/58/logging/honeycomb/test-honeycomb
method: PUT
response:
body: '{"version":"58","token":"new-token","format":"%h %l %u %t \"%r\" %\u003es
%b","format_version":"2","service_id":"7i6HN3TK9wS159v2gPAZ8A","placement":"waf_debug","deleted_at":null,"name":"new-test-honeycomb","dataset":"newDataset","created_at":"2020-05-04T22:13:06Z","updated_at":"2020-05-04T22:13:06Z","response_condition":""}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Mon, 04 May 2020 22:13:07 GMT
Fastly-Ratelimit-Remaining:
- "991"
Fastly-Ratelimit-Reset:
- "1588633200"
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-pao17449-PAO
X-Timer:
- S1588630387.155036,VS0,VE700
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit 0796fc4

Please sign in to comment.