Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure format_version for LE #50

Merged
merged 2 commits into from
Aug 9, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Tweak fixture to present correct format_version
By default, if format_version is not set, it's implicitly set to 1
(default) as per https://docs.fastly.com/api/logging#logging_logentries
  • Loading branch information
bart613 committed Aug 9, 2017
commit eba550baf72e350d8e371211d8f6d75dedb7a6a8
2 changes: 1 addition & 1 deletion fastly/fixtures/logentries/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interactions:
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/674/logging/logentries
method: POST
response:
body: '{"format":"format","name":"test-logentries","port":"1234","token":"abcd1234","use_tls":"1","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"674","placement":null,"format_version":"2","response_condition":"","public_key":null,"updated_at":"2017-07-20T01:15:03+00:00","deleted_at":null,"created_at":"2017-07-20T01:15:03+00:00"}'
body: '{"format":"format","name":"test-logentries","port":"1234","token":"abcd1234","use_tls":"1","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"674","placement":null,"format_version":"1","response_condition":"","public_key":null,"updated_at":"2017-07-20T01:15:03+00:00","deleted_at":null,"created_at":"2017-07-20T01:15:03+00:00"}'
headers:
Accept-Ranges:
- bytes
Expand Down
2 changes: 1 addition & 1 deletion fastly/fixtures/logentries/get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/674/logging/logentries/test-logentries
method: GET
response:
body: '{"placement":null,"format_version":"2","response_condition":"","public_key":null,"updated_at":"2017-07-20T01:15:03+00:00","name":"test-logentries","port":"1234","use_tls":"1","service_id":"7i6HN3TK9wS159v2gPAZ8A","token":"abcd1234","version":"674","deleted_at":null,"created_at":"2017-07-20T01:15:03+00:00","format":"format"}'
body: '{"placement":null,"format_version":"1","response_condition":"","public_key":null,"updated_at":"2017-07-20T01:15:03+00:00","name":"test-logentries","port":"1234","use_tls":"1","service_id":"7i6HN3TK9wS159v2gPAZ8A","token":"abcd1234","version":"674","deleted_at":null,"created_at":"2017-07-20T01:15:03+00:00","format":"format"}'
headers:
Accept-Ranges:
- bytes
Expand Down