Skip to content

Commit

Permalink
Merge pull request #167 from ezkl/ezkl/add-honeycomb
Browse files Browse the repository at this point in the history
Add Honeycomb endpoint support
  • Loading branch information
mccurdyc committed May 11, 2020
2 parents 03a860b + ea92e7e commit 1cdd19b
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/118/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 118 }''"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:23 GMT
Fastly-Ratelimit-Remaining:
- "944"
Fastly-Ratelimit-Reset:
- "1588939200"
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-slwdc9036-CONTROL-SLWDC, cache-pao17446-PAO
X-Timer:
- S1588937064.796330,VS0,VE193
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/118/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 118 }''"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:24 GMT
Fastly-Ratelimit-Remaining:
- "943"
Fastly-Ratelimit-Reset:
- "1588939200"
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-slwdc9036-CONTROL-SLWDC, cache-pao17446-PAO
X-Timer:
- S1588937064.004905,VS0,VE217
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=118&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:
- "118"
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/118/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":"118","deleted_at":null,"created_at":"2020-05-08T11:24:21Z","updated_at":"2020-05-08T11:24:21Z","response_condition":""}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:22 GMT
Fastly-Ratelimit-Remaining:
- "947"
Fastly-Ratelimit-Reset:
- "1588939200"
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-pao17446-PAO
X-Timer:
- S1588937061.446759,VS0,VE676
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/118/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:
- Fri, 08 May 2020 11:24:23 GMT
Fastly-Ratelimit-Remaining:
- "945"
Fastly-Ratelimit-Reset:
- "1588939200"
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-slwdc9036-CONTROL-SLWDC, cache-pao17446-PAO
X-Timer:
- S1588937063.441251,VS0,VE340
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/118/logging/honeycomb/test-honeycomb
method: GET
response:
body: '{"name":"test-honeycomb","placement":"waf_debug","deleted_at":null,"dataset":"testDataset","format":"%h
%l %u %t \"%r\" %\u003es %b","token":"super-secure-token","updated_at":"2020-05-08T11:24:21Z","response_condition":"","version":"118","service_id":"7i6HN3TK9wS159v2gPAZ8A","format_version":"2","created_at":"2020-05-08T11:24:21Z"}'
headers:
Accept-Ranges:
- bytes
- bytes
- bytes
Age:
- "0"
- "0"
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:22 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-pao17446-PAO
X-Timer:
- S1588937062.336920,VS0,VE432
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/118/logging/honeycomb
method: GET
response:
body: '[{"response_condition":"","service_id":"7i6HN3TK9wS159v2gPAZ8A","format_version":"2","version":"118","token":"super-secure-token","updated_at":"2020-05-08T11:24:21Z","created_at":"2020-05-08T11:24:21Z","format":"%h
%l %u %t \"%r\" %\u003es %b","dataset":"testDataset","deleted_at":null,"placement":"waf_debug","name":"test-honeycomb"}]'
headers:
Accept-Ranges:
- bytes
- bytes
- bytes
Age:
- "0"
- "0"
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:22 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-slwdc9036-CONTROL-SLWDC, cache-pao17446-PAO
X-Timer:
- S1588937062.139179,VS0,VE181
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=118&dataset=newDataset&name=new-test-honeycomb&token=new-token
form:
Name:
- test-honeycomb
Service:
- 7i6HN3TK9wS159v2gPAZ8A
Version:
- "118"
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/118/logging/honeycomb/test-honeycomb
method: PUT
response:
body: '{"deleted_at":null,"dataset":"newDataset","response_condition":"","version":"118","format":"%h
%l %u %t \"%r\" %\u003es %b","placement":"waf_debug","service_id":"7i6HN3TK9wS159v2gPAZ8A","updated_at":"2020-05-08T11:24:21Z","format_version":"2","created_at":"2020-05-08T11:24:21Z","name":"new-test-honeycomb","token":"new-token"}'
headers:
Accept-Ranges:
- bytes
- bytes
Cache-Control:
- no-cache
Content-Type:
- application/json
Date:
- Fri, 08 May 2020 11:24:23 GMT
Fastly-Ratelimit-Remaining:
- "946"
Fastly-Ratelimit-Reset:
- "1588939200"
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-pao17446-PAO
X-Timer:
- S1588937063.784266,VS0,VE641
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit 1cdd19b

Please sign in to comment.