diff --git a/README.md b/README.md index f3c7eb2..6b7387d 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,22 @@ group = client.group('some-ref', field: :external_reference) # Get a list of zones within a group zones = group.zones +# Get pagination details for the groups +zones.pagination.current_page +zones.pagination.total +zones.pagination.per_page +zones.pagination.total_pages + # Get a zone by its ID zone = client.zone(123) # Get a zone by its external reference zone = client.zone('some-ref', field: :external_reference) -# Get all the records for a zone +# Get all the records for a zone (paginated) zone.records +zone.records(page: 2) +zone.records(per_page: 50) # Get specific type of records for a zone zone.records(type: 'A') @@ -45,6 +53,9 @@ group = client.create_group(name: 'My example group', external_reference: 'some- # Return an array of nameservers assigned to a group group.nameservers +# Get all tagged records for a group +group.tagged_records(['tag1']) + # Create a new zone zone = group.create_zone('example.com') @@ -56,4 +67,7 @@ record.delete # Update a record record.update(content: { ip_address: '185.22.208.5'} ) + +# Get all records with any of the given tags +client.tagged_records(['tag1']) ``` diff --git a/lib/dennis/client.rb b/lib/dennis/client.rb index c5da45c..455f130 100644 --- a/lib/dennis/client.rb +++ b/lib/dennis/client.rb @@ -45,6 +45,10 @@ def record(id, field: :id) Record.find_by(self, field, id) end + def tagged_records(tags, group: nil) + Record.all_by_tag(self, tags, group: group) + end + def nameservers Nameserver.all(self) end diff --git a/lib/dennis/group.rb b/lib/dennis/group.rb index 9556af3..e594086 100644 --- a/lib/dennis/group.rb +++ b/lib/dennis/group.rb @@ -8,9 +8,13 @@ class Group class << self - def all(client) - groups = client.api.perform(:get, 'groups') - groups.hash['groups'].map { |hash| new(client, hash) } + def all(client, page: nil, per_page: nil) + request = client.api.create_request(:get, 'groups') + request.arguments[:page] = page if page + request.arguments[:per_page] = per_page if per_page + PaginatedArray.create(request.perform.hash, 'groups') do |hash| + new(client, hash) + end end def find_by(client, field, value) @@ -82,6 +86,10 @@ def zones Zone.all_for_group(@client, { id: id }) end + def tagged_records(tags) + Record.all_by_tag(@client, tags, group: { id: id }) + end + def update(properties) req = @client.api.create_request(:patch, 'groups/:group') req.arguments['group'] = { id: id } diff --git a/lib/dennis/paginated_array.rb b/lib/dennis/paginated_array.rb new file mode 100644 index 0000000..b66c321 --- /dev/null +++ b/lib/dennis/paginated_array.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +require 'dennis/pagination' + +module Dennis + class PaginatedArray < Array + + attr_accessor :pagination + + class << self + + def create(result, key, &block) + result_hash = result[key] + array = new(result_hash.map(&block)) + array.pagination = Pagination.new(result['pagination']) + array + end + + end + + end +end diff --git a/lib/dennis/pagination.rb b/lib/dennis/pagination.rb new file mode 100644 index 0000000..2a8c03a --- /dev/null +++ b/lib/dennis/pagination.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +module Dennis + class Pagination + + def initialize(hash) + @hash = hash + end + + def current_page + @hash['current_page'] + end + + def total_pages + @hash['total_pages'] + end + + def total + @hash['total'] + end + + def per_page + @hash['per_page'] + end + + def large_set? + @hash['large_set'] + end + + end +end diff --git a/lib/dennis/record.rb b/lib/dennis/record.rb index 15ac0f2..b88aa80 100644 --- a/lib/dennis/record.rb +++ b/lib/dennis/record.rb @@ -9,14 +9,18 @@ class Record class << self - def all(client, zone, type: nil, name: nil, query: nil, tags: nil) + def all(client, zone, type: nil, name: nil, query: nil, tags: nil, page: nil, per_page: nil) request = client.api.create_request(:get, 'zones/:zone/records') request.arguments[:zone] = zone request.arguments[:name] = name if name request.arguments[:type] = type if type request.arguments[:query] = query if query request.arguments[:tags] = tags if tags - request.perform.hash['records'].map { |hash| new(client, hash) } + request.arguments[:page] = page if page + request.arguments[:per_page] = per_page if per_page + PaginatedArray.create(request.perform.hash, 'records') do |hash| + new(client, hash) + end end def all_by_tag(client, tags, group: nil) diff --git a/lib/dennis/zone.rb b/lib/dennis/zone.rb index 5c17693..f35719a 100644 --- a/lib/dennis/zone.rb +++ b/lib/dennis/zone.rb @@ -3,25 +3,34 @@ require 'dennis/validation_error' require 'dennis/group_not_found_error' require 'dennis/record' +require 'dennis/paginated_array' module Dennis class Zone class << self - def all(client, query: nil, view: nil) + def all(client, query: nil, view: nil, page: nil, per_page: nil) request = client.api.create_request(:get, 'zones') request.arguments[:query] = query if query request.arguments[:view] = view if view - request.perform.hash['zones'].map { |hash| new(client, hash) } + request.arguments[:page] = page if page + request.arguments[:per_page] = per_page if per_page + PaginatedArray.create(request.perform.hash, 'zones') do |hash| + new(client, hash) + end end - def all_for_group(client, group, query: nil, view: nil) + def all_for_group(client, group, query: nil, view: nil, page: nil, per_page: nil) request = client.api.create_request(:get, 'groups/:group/zones') request.arguments[:group] = group request.arguments[:query] = query if query request.arguments[:view] = view if view - request.perform.hash['zones'].map { |hash| new(client, hash) } + request.arguments[:page] = page if page + request.arguments[:per_page] = per_page if per_page + PaginatedArray.create(request.perform.hash, 'zones') do |hash| + new(client, hash) + end end def find_by(client, field, value) diff --git a/spec/fixtures/vcr_cassettes/client.yml b/spec/fixtures/vcr_cassettes/client.yml index e76abff..e869cb7 100644 --- a/spec/fixtures/vcr_cassettes/client.yml +++ b/spec/fixtures/vcr_cassettes/client.yml @@ -33,11 +33,11 @@ http_interactions: Server: - Caddy X-Request-Id: - - 696c0b07-ea58-45c3-9d4a-e781f9316fd2 + - 05b151cf-24c7-4bff-8194-e2d8b92f0b48 X-Runtime: - - '0.068041' + - '0.073054' Date: - - Thu, 15 Apr 2021 09:39:57 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 string: '{"schema_version":1,"host":"dennis.dev.adam.ac","namespace":"/api/v1","api":"CoreAPI/Base","objects":[{"type":"api","value":{"id":"CoreAPI/Base","name":"Dennis @@ -119,5 +119,5 @@ http_interactions: record","description":null,"http_status":200,"authenticator":null,"argument_set":{"id":"CoreAPI/Endpoints/Records/DeleteEndpoint/BaseArgumentSet","name":null,"description":null,"arguments":[{"name":"record","description":null,"type":"CoreAPI/ArgumentSets/RecordLookupSet","required":false,"array":false,"default":null}]},"fields":[{"id":"CoreAPI/Endpoints/Records/DeleteEndpoint/RecordField","name":"record","description":null,"type":"CoreAPI/Objects/Record","null":false,"array":false,"spec":{"all":true,"spec":null}}],"potential_errors":["CoreAPI/Errors/DeletionRestrictedError","CoreAPI/Endpoints/Records/DeleteEndpoint/ManagedRecordsCannotBeDeleted"],"scopes":[]}},{"type":"argument_set","value":{"id":"CoreAPI/Endpoints/Records/DeleteEndpoint/BaseArgumentSet","name":null,"description":null,"arguments":[{"name":"record","description":null,"type":"CoreAPI/ArgumentSets/RecordLookupSet","required":false,"array":false,"default":null}]}},{"type":"error","value":{"id":"CoreAPI/Endpoints/Records/DeleteEndpoint/ManagedRecordsCannotBeDeleted","name":null,"description":null,"code":"managed_records_cannot_be_deleted","http_status":409,"fields":[]}},{"type":"endpoint","value":{"id":"CoreAPI/Endpoints/RecordTypes/ListEndpoint","name":"Available record types","description":"Lists all the record types that are available along with any additional data needed for them.","http_status":200,"authenticator":null,"argument_set":{"id":"CoreAPI/Endpoints/RecordTypes/ListEndpoint/BaseArgumentSet","name":null,"description":null,"arguments":[]},"fields":[{"id":"CoreAPI/Endpoints/RecordTypes/ListEndpoint/RecordTypesField","name":"record_types","description":null,"type":"CoreAPI/Objects/RecordType","null":false,"array":true,"spec":{"all":true,"spec":null}}],"potential_errors":[],"scopes":[]}},{"type":"argument_set","value":{"id":"CoreAPI/Endpoints/RecordTypes/ListEndpoint/BaseArgumentSet","name":null,"description":null,"arguments":[]}},{"type":"object","value":{"id":"CoreAPI/Objects/RecordType","name":null,"description":null,"fields":[{"id":"CoreAPI/Objects/RecordType/NameField","name":"name","description":null,"type":"Rapid/Scalars/String","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordType/RequiresPriorityField","name":"requires_priority","description":null,"type":"Rapid/Scalars/Boolean","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordType/ManagedOnlyField","name":"managed_only","description":null,"type":"Rapid/Scalars/Boolean","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordType/ContentAttributesField","name":"content_attributes","description":null,"type":"CoreAPI/Objects/RecordContentAttribute","null":false,"array":true,"spec":{"all":true,"spec":null}}]}},{"type":"object","value":{"id":"CoreAPI/Objects/RecordContentAttribute","name":null,"description":null,"fields":[{"id":"CoreAPI/Objects/RecordContentAttribute/NameField","name":"name","description":null,"type":"Rapid/Scalars/String","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordContentAttribute/LabelField","name":"label","description":null,"type":"Rapid/Scalars/String","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordContentAttribute/TypeField","name":"type","description":null,"type":"CoreAPI/Enums/RecordContentAttributeTypeEnum","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordContentAttribute/OptionsField","name":"options","description":null,"type":"CoreAPI/Objects/RecordContentAttributeOption","null":true,"array":true,"spec":{"all":true,"spec":null}}]}},{"type":"enum","value":{"id":"CoreAPI/Enums/RecordContentAttributeTypeEnum","name":null,"description":null,"values":[{"name":"text","description":null},{"name":"long_text","description":null},{"name":"options","description":null}]}},{"type":"object","value":{"id":"CoreAPI/Objects/RecordContentAttributeOption","name":null,"description":null,"fields":[{"id":"CoreAPI/Objects/RecordContentAttributeOption/LabelField","name":"label","description":null,"type":"Rapid/Scalars/String","null":false,"array":false,"spec":{"all":true,"spec":null}},{"id":"CoreAPI/Objects/RecordContentAttributeOption/ValueField","name":"value","description":null,"type":"Rapid/Scalars/String","null":false,"array":false,"spec":{"all":true,"spec":null}}]}}]}' - recorded_at: Thu, 15 Apr 2021 09:39:57 GMT + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-all-page.yml b/spec/fixtures/vcr_cassettes/group-all-page.yml new file mode 100644 index 0000000..848655c --- /dev/null +++ b/spec/fixtures/vcr_cassettes/group-all-page.yml @@ -0,0 +1,49 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/groups?_arguments=%7B%22page%22:2,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '801' + Content-Type: + - application/json + Etag: + - W/"c45d1a5e60b28ac4af8ec93bf0b3007c" + Server: + - Caddy + X-Request-Id: + - dbb1b615-e0b9-4404-9f1c-7f523910270d + X-Runtime: + - '0.011637' + Date: + - Thu, 15 Apr 2021 10:02:56 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":2,"total_pages":2,"total":4,"per_page":2,"large_set":false},"groups":[{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},{"id":4,"name":"Strawberries + Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":4,"name":"ruth.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]}]}' + recorded_at: Thu, 15 Apr 2021 10:02:56 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-all-per-page.yml b/spec/fixtures/vcr_cassettes/group-all-per-page.yml new file mode 100644 index 0000000..afd5912 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/group-all-per-page.yml @@ -0,0 +1,49 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/groups?_arguments=%7B%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '798' + Content-Type: + - application/json + Etag: + - W/"650ceba5b290b65ccfcc7dc90e2efbe2" + Server: + - Caddy + X-Request-Id: + - e592653d-3b02-4476-88ef-0006d6444fd9 + X-Runtime: + - '0.011614' + Date: + - Thu, 15 Apr 2021 10:02:56 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":1,"total_pages":2,"total":4,"per_page":2,"large_set":false},"groups":[{"id":2,"name":"Another + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},{"id":5,"name":"Apple + Group","external_reference":"apples","created_at":1618480646,"updated_at":1618480646,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]}]}' + recorded_at: Thu, 15 Apr 2021 10:02:56 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-all.yml b/spec/fixtures/vcr_cassettes/group-all.yml index 6e83c01..94b0a71 100644 --- a/spec/fixtures/vcr_cassettes/group-all.yml +++ b/spec/fixtures/vcr_cassettes/group-all.yml @@ -27,24 +27,25 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '1263' + - '1491' Content-Type: - application/json Etag: - - W/"0520d874935035fde27d4fab4f745cab" + - W/"2e046d166d9c72e7d865012ec334f922" Server: - Caddy X-Request-Id: - - 7e9fdf41-dbf7-40cd-9e54-f1f958c588ff + - 39d2012e-54fc-4ec1-9140-b32de530160b X-Runtime: - - '0.015884' + - '0.035641' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 - string: '{"groups":[{"id":2,"name":"Another Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},{"id":1,"name":"Example - Group","external_reference":null,"created_at":1617358343,"updated_at":1617358343,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},{"id":3,"name":"Pear - Group","external_reference":null,"created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":1,"name":"simon.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},{"id":4,"name":"Strawberries - Group","external_reference":null,"created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}]}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":4,"per_page":30,"large_set":false},"groups":[{"id":2,"name":"Another + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},{"id":1,"name":"Example + Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]},{"id":3,"name":"Pear + Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":5,"name":"laura.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},{"id":4,"name":"Strawberries + Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":4,"name":"ruth.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}]}' + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-create-validation-error.yml b/spec/fixtures/vcr_cassettes/group-create-validation-error.yml index b53c68e..a093505 100644 --- a/spec/fixtures/vcr_cassettes/group-create-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/group-create-validation-error.yml @@ -37,15 +37,15 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - f489a8d8-362c-46ce-94f8-f02f10a2d78a + - 3afa7fee-8fc0-459d-a74f-d36a7b0bcad0 X-Runtime: - - '0.009503' + - '0.008242' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-create.yml b/spec/fixtures/vcr_cassettes/group-create.yml index e5b8615..1762ff3 100644 --- a/spec/fixtures/vcr_cassettes/group-create.yml +++ b/spec/fixtures/vcr_cassettes/group-create.yml @@ -29,21 +29,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '322' + - '357' Content-Type: - application/json Etag: - - W/"9c6bcd58a94e1f275cbde1300131628e" + - W/"b8f66e94cd2b1fad8c9cd871935f9b7f" Server: - Caddy X-Request-Id: - - 5e9534a5-d707-4c61-a484-59388ea6b422 + - 16d2457b-e4ee-418b-969e-266c3f0fdcba X-Runtime: - - '0.022099' + - '0.037126' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":5,"name":"Apple Group","external_reference":"apples","created_at":1617358359,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":5,"name":"Apple Group","external_reference":"apples","created_at":1618480646,"updated_at":1618480646,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-delete-verify.yml b/spec/fixtures/vcr_cassettes/group-delete-verify.yml index 55dc5a1..cb4effa 100644 --- a/spec/fixtures/vcr_cassettes/group-delete-verify.yml +++ b/spec/fixtures/vcr_cassettes/group-delete-verify.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - ceb306ca-c456-4517-90e6-8f0853d072d3 + - ded4effa-7d8e-4898-b15a-00f98e85a303 X-Runtime: - - '0.008635' + - '0.005313' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"group_not_found","description":"No group could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-delete.yml b/spec/fixtures/vcr_cassettes/group-delete.yml index a7011ca..e1158c1 100644 --- a/spec/fixtures/vcr_cassettes/group-delete.yml +++ b/spec/fixtures/vcr_cassettes/group-delete.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '318' + - '351' Content-Type: - application/json Etag: - - W/"ba0ee9934c61506aee3e8280eb7680e4" + - W/"76f870fc4f1cea2318c3fe59ab507319" Server: - Caddy X-Request-Id: - - 11b14879-ac12-4043-98a9-291ac83abe4d + - 40f2ad1d-73af-4b91-aa30-1673c5a57b7d X-Runtime: - - '0.008317' + - '0.007341' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":3,"name":"Pear Group","external_reference":null,"created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":1,"name":"simon.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":3,"name":"Pear Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":5,"name":"laura.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: delete uri: https://dennis.dev.adam.ac/api/v1/groups/:group @@ -77,17 +77,17 @@ http_interactions: Content-Type: - application/json Etag: - - W/"f8d5f7c96eb0e8b7dd9352442b371beb" + - W/"6e24683fa33c3695dc1f838bfe3b4355" Server: - Caddy X-Request-Id: - - f962b2a4-f87d-414e-82b5-43f65fbfd76d + - b67326c1-147d-4d05-ab6e-b63169a1d923 X-Runtime: - - '0.017455' + - '0.015953' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":3,"name":"Pear Group","external_reference":null,"created_at":1617358344,"updated_at":1617358344,"nameservers":[]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":3,"name":"Pear Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-find-by-ext-ref.yml b/spec/fixtures/vcr_cassettes/group-find-by-ext-ref.yml index 24fe47c..979e87f 100644 --- a/spec/fixtures/vcr_cassettes/group-find-by-ext-ref.yml +++ b/spec/fixtures/vcr_cassettes/group-find-by-ext-ref.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '324' + - '360' Content-Type: - application/json Etag: - - W/"80713631aa07eac6cf21cf3e866400a4" + - W/"20944d85d4c2a7ac2a70fd299052859c" Server: - Caddy X-Request-Id: - - 1887dd74-6911-4181-abe2-30caa756764a + - 3a6fe986-e903-4013-9806-784b90cd95e0 X-Runtime: - - '0.008814' + - '0.008117' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 - string: '{"group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-find-by-id-missing.yml b/spec/fixtures/vcr_cassettes/group-find-by-id-missing.yml index ba007ed..88e5fb5 100644 --- a/spec/fixtures/vcr_cassettes/group-find-by-id-missing.yml +++ b/spec/fixtures/vcr_cassettes/group-find-by-id-missing.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - d84f8c6d-e11b-4110-be55-9f7db661ec9e + - 3130034d-701a-4738-8eb7-7efc894a32cf X-Runtime: - - '0.007650' + - '0.006366' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 string: '{"error":{"code":"group_not_found","description":"No group could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-find-by-id.yml b/spec/fixtures/vcr_cassettes/group-find-by-id.yml index 0c696be..3493f45 100644 --- a/spec/fixtures/vcr_cassettes/group-find-by-id.yml +++ b/spec/fixtures/vcr_cassettes/group-find-by-id.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '324' + - '360' Content-Type: - application/json Etag: - - W/"80713631aa07eac6cf21cf3e866400a4" + - W/"20944d85d4c2a7ac2a70fd299052859c" Server: - Caddy X-Request-Id: - - d4cc2480-29e9-456b-a64f-8a20ee396e92 + - 4affe493-8b95-4954-8782-a231c4fef25e X-Runtime: - - '0.015019' + - '0.008906' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 - string: '{"group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-find-by-invalid-column.yml b/spec/fixtures/vcr_cassettes/group-find-by-invalid-column.yml index e2385a4..d45890d 100644 --- a/spec/fixtures/vcr_cassettes/group-find-by-invalid-column.yml +++ b/spec/fixtures/vcr_cassettes/group-find-by-invalid-column.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 0b92a981-a458-4bf3-b473-985bb001a610 + - 8e7b1135-0a29-44be-8e61-13d03b9797cb X-Runtime: - - '0.005246' + - '0.004807' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:25 GMT body: encoding: UTF-8 string: '{"error":{"code":"invalid_argument","description":"The ''group'' argument is invalid","detail":{"path":["group"],"index":null,"issue":"missing_lookup_value","issue_description":"A value for a lookup argument set has not been provided but at least one value is required.","errors":[],"argument":{"id":"CoreAPI/Endpoints/Groups/InfoEndpoint/BaseArgumentSet/GroupArgument","name":"group","description":null}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:25 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-update-after-update-complete.yml b/spec/fixtures/vcr_cassettes/group-update-after-update-complete.yml index 3caa4e0..21bc605 100644 --- a/spec/fixtures/vcr_cassettes/group-update-after-update-complete.yml +++ b/spec/fixtures/vcr_cassettes/group-update-after-update-complete.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '326' + - '361' Content-Type: - application/json Etag: - - W/"d733fff950b3f2fb9fd8776ece2ca18c" + - W/"e390458bedaa2faf6bda04042d67dcac" Server: - Caddy X-Request-Id: - - d21b5098-48a7-4b4d-9424-b583fcbe6fc3 + - a053527d-7683-49aa-a4e9-8b2df5b3113f X-Runtime: - - '0.009310' + - '0.008733' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-update-with-validation-error.yml b/spec/fixtures/vcr_cassettes/group-update-with-validation-error.yml index b515434..0962e54 100644 --- a/spec/fixtures/vcr_cassettes/group-update-with-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/group-update-with-validation-error.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '326' + - '361' Content-Type: - application/json Etag: - - W/"d733fff950b3f2fb9fd8776ece2ca18c" + - W/"e390458bedaa2faf6bda04042d67dcac" Server: - Caddy X-Request-Id: - - 18b68e60-0062-48e4-ad5c-e43f84dc276d + - 00f13b83-221c-4c42-acf2-af2f73063078 X-Runtime: - - '0.008976' + - '0.009429' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/groups/:group @@ -81,15 +81,15 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 6c53ea06-c0c1-4b84-a10c-659aea5944db + - b1919232-ce91-41f9-a93f-9b2d5387bf32 X-Runtime: - - '0.011918' + - '0.009965' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/group-update.yml b/spec/fixtures/vcr_cassettes/group-update.yml index c3f06b8..273a448 100644 --- a/spec/fixtures/vcr_cassettes/group-update.yml +++ b/spec/fixtures/vcr_cassettes/group-update.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '320' + - '355' Content-Type: - application/json Etag: - - W/"44eca81ac79f480ee7e18e436530dfd9" + - W/"c36366a67c24f0e456ffc8ea57fa510a" Server: - Caddy X-Request-Id: - - 2e2e9580-da0c-41cb-9065-a286a30293a9 + - 6e288d9f-e412-40af-b96b-a3607781d455 X-Runtime: - - '0.008676' + - '0.007944' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":1,"name":"Example Group","external_reference":null,"created_at":1617358343,"updated_at":1617358343,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":1,"name":"Example Group","external_reference":null,"created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/groups/:group @@ -73,21 +73,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '326' + - '361' Content-Type: - application/json Etag: - - W/"d733fff950b3f2fb9fd8776ece2ca18c" + - W/"e390458bedaa2faf6bda04042d67dcac" Server: - Caddy X-Request-Id: - - f78c4d3f-a099-4e6c-9290-8925d6de67be + - 5ecc8047-5eaf-49d5-84b5-deefee5eee8f X-Runtime: - - '0.014835' + - '0.014145' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-all.yml b/spec/fixtures/vcr_cassettes/nameserver-all.yml index 57ea485..b5c0f1d 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-all.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-all.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '584' + - '686' Content-Type: - application/json Etag: - - W/"9fd844105e957052cb56c54a98e4170c" + - W/"ed20c9f3f9a205fe36957c669e63e2d4" Server: - Caddy X-Request-Id: - - 7d074180-f17c-46a9-a724-60f5cbe7b470 + - bb4774ff-e13e-45f7-ad54-952224aa184e X-Runtime: - - '0.007580' + - '0.006624' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameservers":[{"id":2,"name":"alex.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":6,"name":"kelly.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":1,"name":"simon.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameservers":[{"id":2,"name":"alex.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":3,"name":"dave.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":5,"name":"laura.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":4,"name":"ruth.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-create-for-delete.yml b/spec/fixtures/vcr_cassettes/nameserver-create-for-delete.yml index 2e7e557..115f582 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-create-for-delete.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-create-for-delete.yml @@ -29,21 +29,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '113' + - '130' Content-Type: - application/json Etag: - - W/"44fcf0aa235b58022b1e4b153ae51880" + - W/"263f9787ad64c153e5cc09ff2e050276" Server: - Caddy X-Request-Id: - - 7e8ddf79-1cd4-440f-87e8-b887de191f32 + - 4c902519-3a61-4d4f-8c23-13ca13091a5d X-Runtime: - - '0.009532' + - '0.008477' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"created_at":1617358360,"updated_at":1617358360}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"available":true,"created_at":1618480646,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-create-validation-error.yml b/spec/fixtures/vcr_cassettes/nameserver-create-validation-error.yml index bb0ae9e..125b0c4 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-create-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-create-validation-error.yml @@ -37,16 +37,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 988f3118-bdfe-483e-be95-a2b2bf20c030 + - f22afa09-5eb8-4fbd-8ed6-bbbf668d235f X-Runtime: - - '0.008590' + - '0.007583' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name can''t be blank"},{"attribute":"server","type":"blank","message":"Server can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-create.yml b/spec/fixtures/vcr_cassettes/nameserver-create.yml index 1890e73..67c5c0d 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-create.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-create.yml @@ -29,21 +29,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '107' + - '124' Content-Type: - application/json Etag: - - W/"89a75cc958f79e4ab653d3ae0e7e20f7" + - W/"5308fe178bea51913d921ecc1bdc3cd0" Server: - Caddy X-Request-Id: - - 14fdfb9f-4db1-4ac3-8f36-4a667e790c90 + - 3e176683-2357-41cb-9745-497a9dcde3ce X-Runtime: - - '0.012002' + - '0.010487' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":7,"name":"jim.example.com","server":1,"created_at":1617358359,"updated_at":1617358359}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":7,"name":"jim.example.com","server":1,"available":true,"created_at":1618480646,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-delete-verify.yml b/spec/fixtures/vcr_cassettes/nameserver-delete-verify.yml index e8a8d4c..393d883 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-delete-verify.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-delete-verify.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 10c2c3b2-560f-4c54-82bd-ae8294edb488 + - 3d3d5a3d-8f41-4812-84d3-b56714c38a5b X-Runtime: - - '0.006601' + - '0.005537' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"nameserver_not_found","description":"No nameserver could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-delete.yml b/spec/fixtures/vcr_cassettes/nameserver-delete.yml index c204bfc..f9fea8e 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-delete.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-delete.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '113' + - '130' Content-Type: - application/json Etag: - - W/"44fcf0aa235b58022b1e4b153ae51880" + - W/"263f9787ad64c153e5cc09ff2e050276" Server: - Caddy X-Request-Id: - - 15de6201-180c-4f72-9352-e294494f54f1 + - 81dff407-8c58-4588-958f-239b637d46f9 X-Runtime: - - '0.010215' + - '0.005685' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"created_at":1617358360,"updated_at":1617358360}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"available":true,"created_at":1618480646,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: delete uri: https://dennis.dev.adam.ac/api/v1/nameservers/:nameserver @@ -73,21 +73,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '113' + - '130' Content-Type: - application/json Etag: - - W/"44fcf0aa235b58022b1e4b153ae51880" + - W/"263f9787ad64c153e5cc09ff2e050276" Server: - Caddy X-Request-Id: - - 21b2f45e-be03-4b88-8d84-5d9beb49d973 + - b179b448-0241-482e-8efd-a76af36f123b X-Runtime: - - '0.011112' + - '0.010237' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"created_at":1617358360,"updated_at":1617358360}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"nameserver":{"id":8,"name":"delete-me.example.com","server":2,"available":true,"created_at":1618480646,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-find-by-id-missing.yml b/spec/fixtures/vcr_cassettes/nameserver-find-by-id-missing.yml index f5cd556..ec1f606 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-find-by-id-missing.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-find-by-id-missing.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 76043132-fdc2-444e-aa6b-9b091532e485 + - 1fffffae-ae97-4962-8125-58f607d6f58a X-Runtime: - - '0.006132' + - '0.005964' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"nameserver_not_found","description":"No nameserver could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-find-by-id.yml b/spec/fixtures/vcr_cassettes/nameserver-find-by-id.yml index 49abb5f..07bff2b 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-find-by-id.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-find-by-id.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '108' + - '125' Content-Type: - application/json Etag: - - W/"ed24b48102b5d8eca8b857e954c1c40d" + - W/"dddc05e21c8f7e2c40cf2985db50436e" Server: - Caddy X-Request-Id: - - 314feaa8-885a-4c2c-b42c-9c12d85c5b55 + - 9563dec2-f4a6-425b-a871-4b80c6b5212c X-Runtime: - - '0.008155' + - '0.006362' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":2,"name":"alex.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":2,"name":"alex.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-find-by-invalid-column.yml b/spec/fixtures/vcr_cassettes/nameserver-find-by-invalid-column.yml index 9af8cce..15ec3e3 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-find-by-invalid-column.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-find-by-invalid-column.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 91ec84e7-1cec-42e2-bbc5-4c91b261db42 + - f4906e29-2806-4771-a65b-cfe66cb2366f X-Runtime: - - '0.005939' + - '0.005887' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"invalid_argument","description":"The ''nameserver'' argument is invalid","detail":{"path":["nameserver"],"index":null,"issue":"missing_lookup_value","issue_description":"A value for a lookup argument set has not been provided but at least one value is required.","errors":[],"argument":{"id":"CoreAPI/Endpoints/Nameservers/InfoEndpoint/BaseArgumentSet/NameserverArgument","name":"nameserver","description":null}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-update-after-update-complete.yml b/spec/fixtures/vcr_cassettes/nameserver-update-after-update-complete.yml index 38856d0..d23d31c 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-update-after-update-complete.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-update-after-update-complete.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '108' + - '125' Content-Type: - application/json Etag: - - W/"2a3a939ad5933d7e3cf0e25059912c0d" + - W/"2216d3a21691a284e24d2647d7c6dfa2" Server: - Caddy X-Request-Id: - - 43952805-c945-4fe8-be70-ba724fb7d429 + - add49be8-c994-4eee-81fc-97e8b70dd119 X-Runtime: - - '0.005932' + - '0.012752' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"created_at":1617358343,"updated_at":1617358359}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-update-with-validation-error.yml b/spec/fixtures/vcr_cassettes/nameserver-update-with-validation-error.yml index 9f5115e..ffe16e7 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-update-with-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-update-with-validation-error.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '108' + - '125' Content-Type: - application/json Etag: - - W/"2a3a939ad5933d7e3cf0e25059912c0d" + - W/"2216d3a21691a284e24d2647d7c6dfa2" Server: - Caddy X-Request-Id: - - 7584a92b-46f6-4488-9465-851375423d23 + - 5e053428-7040-47ee-914d-b7b0dfc57ec3 X-Runtime: - - '0.009972' + - '0.006450' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"created_at":1617358343,"updated_at":1617358359}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/nameservers/:nameserver @@ -81,15 +81,15 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - e0b257c2-ba4e-44da-a87e-92a8456a63c7 + - 982ee9d9-1f1a-4fa6-ae5a-cfdea3d1397f X-Runtime: - - '0.011853' + - '0.006982' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/nameserver-update.yml b/spec/fixtures/vcr_cassettes/nameserver-update.yml index e205167..680941a 100644 --- a/spec/fixtures/vcr_cassettes/nameserver-update.yml +++ b/spec/fixtures/vcr_cassettes/nameserver-update.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '109' + - '126' Content-Type: - application/json Etag: - - W/"334b861eb1c1b396338885cf10a060b2" + - W/"49ac8bde29f855192f063e752eb8af69" Server: - Caddy X-Request-Id: - - bb6a89d3-c378-4814-9dc8-e4936f05c6b0 + - de0a6351-8c0b-428a-abf7-a443ca4b79d1 X-Runtime: - - '0.007007' + - '0.005818' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":1,"name":"simon.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":1,"name":"simon.example.com","server":1,"available":true,"created_at":1618480640,"updated_at":1618480640}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/nameservers/:nameserver @@ -73,21 +73,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '108' + - '125' Content-Type: - application/json Etag: - - W/"2a3a939ad5933d7e3cf0e25059912c0d" + - W/"2216d3a21691a284e24d2647d7c6dfa2" Server: - Caddy X-Request-Id: - - 0da0a281-8ffc-4358-9117-9af97e7fe830 + - 77b717f3-bf65-466c-b111-6a3dcb356644 X-Runtime: - - '0.009537' + - '0.009589' Date: - - Fri, 02 Apr 2021 10:12:39 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"created_at":1617358343,"updated_at":1617358359}}' - recorded_at: Fri, 02 Apr 2021 10:12:39 GMT + string: '{"nameserver":{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-by-tag.yml b/spec/fixtures/vcr_cassettes/record-all-by-tag.yml index 997ba43..7d96d10 100644 --- a/spec/fixtures/vcr_cassettes/record-all-by-tag.yml +++ b/spec/fixtures/vcr_cassettes/record-all-by-tag.yml @@ -31,17 +31,17 @@ http_interactions: Content-Type: - application/json Etag: - - W/"21ede170a308d9a8bad0ea2e9f019bb2" + - W/"c77cc81f71a2d0adda8fdda6cb03844c" Server: - Caddy X-Request-Id: - - 79e13ded-a211-4a40-b546-89be004f0522 + - e636cf8a-3698-43d8-b40e-cec715cc09b0 X-Runtime: - - '0.030853' + - '0.021347' Date: - - Thu, 15 Apr 2021 09:42:30 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":20,"name":null,"external_reference":null,"type":"A","full_name":"bananas.com","ttl":null,"priority":null,"managed":false,"created_at":1618479738,"updated_at":1618479738,"tags":["tag2"],"content":{"A":{"ip_address":"185.22.211.55"}},"zone":{"id":2,"name":"bananas.com","verified":false}},{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618479738,"updated_at":1618479738,"tags":["tag1","tag2"],"content":{"A":{"ip_address":"185.22.211.61"}},"zone":{"id":1,"name":"example.com","verified":true}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618479738,"updated_at":1618479738,"tags":["tag2"],"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}},"zone":{"id":1,"name":"example.com","verified":true}}]}' - recorded_at: Thu, 15 Apr 2021 09:42:30 GMT + string: '{"records":[{"id":20,"name":null,"external_reference":null,"type":"A","full_name":"bananas.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":["tag2"],"content":{"A":{"ip_address":"185.22.211.55"}},"zone":{"id":2,"name":"bananas.com","verified":false}},{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":["tag1","tag2"],"content":{"A":{"ip_address":"185.22.211.61"}},"zone":{"id":1,"name":"example.com","verified":true}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":["tag2"],"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}},"zone":{"id":1,"name":"example.com","verified":true}}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-page.yml b/spec/fixtures/vcr_cassettes/record-all-page.yml new file mode 100644 index 0000000..a588198 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/record-all-page.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/zones/:zone/records?_arguments=%7B%22zone%22:%7B%22id%22:1%7D,%22page%22:2,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '573' + Content-Type: + - application/json + Etag: + - W/"469cf8ee591cbcbeaf68cf90bae63a58" + Server: + - Caddy + X-Request-Id: + - fb53f0be-f073-4baf-a9f6-c721e5de0ba0 + X-Runtime: + - '0.010552' + Date: + - Thu, 15 Apr 2021 10:03:46 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":2,"total_pages":9,"total":17,"per_page":2,"large_set":false},"records":[{"id":14,"name":null,"external_reference":null,"type":"CAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CAA":{"flag":"0","tag":"issue","value":"letsencrypt.com"}}},{"id":10,"name":null,"external_reference":null,"type":"MX","full_name":"example.com","ttl":null,"priority":10,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"MX":{"hostname":"post.atech.io"}}}]}' + recorded_at: Thu, 15 Apr 2021 10:03:46 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-per-page.yml b/spec/fixtures/vcr_cassettes/record-all-per-page.yml new file mode 100644 index 0000000..12dc57b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/record-all-per-page.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/zones/:zone/records?_arguments=%7B%22zone%22:%7B%22id%22:1%7D,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '556' + Content-Type: + - application/json + Etag: + - W/"4930b3df5ca698ca01999f712c43e868" + Server: + - Caddy + X-Request-Id: + - 4a7062d7-6359-4170-9251-403538a6d180 + X-Runtime: + - '0.009985' + Date: + - Thu, 15 Apr 2021 10:03:46 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":1,"total_pages":9,"total":17,"per_page":2,"large_set":false},"records":[{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"A":{"ip_address":"185.22.211.61"}}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}}}]}' + recorded_at: Thu, 15 Apr 2021 10:03:46 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-with-name-and-type.yml b/spec/fixtures/vcr_cassettes/record-all-with-name-and-type.yml index 249b89b..b117cfb 100644 --- a/spec/fixtures/vcr_cassettes/record-all-with-name-and-type.yml +++ b/spec/fixtures/vcr_cassettes/record-all-with-name-and-type.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '474' + - '564' Content-Type: - application/json Etag: - - W/"5b9fa208e32d55ed03867571e8d4e8cf" + - W/"51354492ab60b54b523362e6ad4c6a56" Server: - Caddy X-Request-Id: - - a52a2aa1-c69c-49eb-b3c2-467a53043799 + - d2b195ef-afc4-4fe8-b7db-c37a932624ca X-Runtime: - - '0.008855' + - '0.008033' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"k=rsa; + string: '{"pagination":{"current_page":1,"total_pages":1,"total":1,"per_page":30,"large_set":false},"records":[{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"TXT":{"content":"k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}}}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-with-name.yml b/spec/fixtures/vcr_cassettes/record-all-with-name.yml index 11b6832..1e70112 100644 --- a/spec/fixtures/vcr_cassettes/record-all-with-name.yml +++ b/spec/fixtures/vcr_cassettes/record-all-with-name.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '256' + - '346' Content-Type: - application/json Etag: - - W/"2b59c6e5f8bb827581c65fc68f3ed2dd" + - W/"12f431962b80ce8ebd9001954c9dcb78" Server: - Caddy X-Request-Id: - - 4c3168d9-dff5-4288-beaa-a48ea1de93c0 + - b4eb64a9-c3d3-408c-bb7f-947c945ccb77 X-Runtime: - - '0.009297' + - '0.007728' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":9,"name":"helpdesk","external_reference":null,"type":"ALIAS","full_name":"helpdesk.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"ALIAS":{"hostname":"sirportly.com"}}}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":1,"per_page":30,"large_set":false},"records":[{"id":9,"name":"helpdesk","external_reference":null,"type":"ALIAS","full_name":"helpdesk.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"ALIAS":{"hostname":"sirportly.com"}}}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-with-query.yml b/spec/fixtures/vcr_cassettes/record-all-with-query.yml index b1f0d4f..3df070a 100644 --- a/spec/fixtures/vcr_cassettes/record-all-with-query.yml +++ b/spec/fixtures/vcr_cassettes/record-all-with-query.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '474' + - '564' Content-Type: - application/json Etag: - - W/"5b9fa208e32d55ed03867571e8d4e8cf" + - W/"51354492ab60b54b523362e6ad4c6a56" Server: - Caddy X-Request-Id: - - 8d5bf5ef-b693-43d8-a4cf-5753b1a3b85b + - c7bf1593-21ca-4880-a1d6-c4b8f315227d X-Runtime: - - '0.009053' + - '0.008078' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"k=rsa; + string: '{"pagination":{"current_page":1,"total_pages":1,"total":1,"per_page":30,"large_set":false},"records":[{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"TXT":{"content":"k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}}}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-with-tags.yml b/spec/fixtures/vcr_cassettes/record-all-with-tags.yml index f806002..7883c1a 100644 --- a/spec/fixtures/vcr_cassettes/record-all-with-tags.yml +++ b/spec/fixtures/vcr_cassettes/record-all-with-tags.yml @@ -31,17 +31,17 @@ http_interactions: Content-Type: - application/json Etag: - - W/"b63a42c1977e62b87d02fb081fc20342" + - W/"04007e0fd2c14ef9e2a1cc82b9d9f791" Server: - Caddy X-Request-Id: - - 240e5875-1eaf-4197-9484-95a93ac7ce17 + - e7267a50-d82e-405e-812d-9166a6263ce4 X-Runtime: - - '0.078382' + - '0.009825' Date: - - Thu, 15 Apr 2021 09:34:47 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"pagination":{"current_page":1,"total_pages":1,"total":2,"per_page":30,"large_set":false},"records":[{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618478436,"updated_at":1618478436,"content":{"A":{"ip_address":"185.22.211.61"}}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618478436,"updated_at":1618478436,"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}}}]}' - recorded_at: Thu, 15 Apr 2021 09:34:47 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":2,"per_page":30,"large_set":false},"records":[{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"A":{"ip_address":"185.22.211.61"}}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}}}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all-with-type.yml b/spec/fixtures/vcr_cassettes/record-all-with-type.yml index ba310ca..ffe0efe 100644 --- a/spec/fixtures/vcr_cassettes/record-all-with-type.yml +++ b/spec/fixtures/vcr_cassettes/record-all-with-type.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '898' + - '988' Content-Type: - application/json Etag: - - W/"be8ddd1c94a72ddec38c8b2f1e7536cf" + - W/"de13b08cf89a047d503c8f73e38c1be2" Server: - Caddy X-Request-Id: - - 3235ebb5-b254-4668-a95f-099b42a2fdcb + - a53ba221-cd21-411d-9673-ac514561bd5a X-Runtime: - - '0.009160' + - '0.008232' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":4,"name":"_1c102aaebd0fad7b110d902d2f3682d4","external_reference":null,"type":"CNAME","full_name":"_1c102aaebd0fad7b110d902d2f3682d4.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"9DEF881C1969EA572754FAD3258B9C57.B44F379D67E6BBC684DD3A22CCEA1E11.tf3Uy5q5AZ5AFz595yD5.comodoca.com"}}},{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}},{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"example.com"}}}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":3,"per_page":30,"large_set":false},"records":[{"id":4,"name":"_1c102aaebd0fad7b110d902d2f3682d4","external_reference":null,"type":"CNAME","full_name":"_1c102aaebd0fad7b110d902d2f3682d4.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"9DEF881C1969EA572754FAD3258B9C57.B44F379D67E6BBC684DD3A22CCEA1E11.tf3Uy5q5AZ5AFz595yD5.comodoca.com"}}},{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}},{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"example.com"}}}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-all.yml b/spec/fixtures/vcr_cassettes/record-all.yml index 79c3732..f723ca9 100644 --- a/spec/fixtures/vcr_cassettes/record-all.yml +++ b/spec/fixtures/vcr_cassettes/record-all.yml @@ -27,24 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '4342' + - '4434' Content-Type: - application/json Etag: - - W/"4b4e820feaa6c0a574e99381699b8fdf" + - W/"e1d59b3d85ffaeb61a0245d5ca7d8a62" Server: - Caddy X-Request-Id: - - 972bb0dd-b740-48cc-b742-85c20102a1ad + - 9a2ce611-cb9c-45b6-b18b-438e3229867e X-Runtime: - - '0.015803' + - '0.013632' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"records":[{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"A":{"ip_address":"185.22.211.61"}}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}}},{"id":14,"name":null,"external_reference":null,"type":"CAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CAA":{"flag":"0","tag":"issue","value":"letsencrypt.com"}}},{"id":10,"name":null,"external_reference":null,"type":"MX","full_name":"example.com","ttl":null,"priority":10,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"MX":{"hostname":"post.atech.io"}}},{"id":2,"name":null,"external_reference":null,"type":"NS","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1617358343,"updated_at":1617358343,"content":{"NS":{"hostname":"dave.example.com"}}},{"id":1,"name":null,"external_reference":null,"type":"NS","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1617358343,"updated_at":1617358343,"content":{"NS":{"hostname":"laura.example.com"}}},{"id":3,"name":null,"external_reference":null,"type":"SOA","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1617358343,"updated_at":1617358343,"content":{"SOA":{}}},{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"a098b812c2423e663f946e981aaacc0e66520a38"}}},{"id":4,"name":"_1c102aaebd0fad7b110d902d2f3682d4","external_reference":null,"type":"CNAME","full_name":"_1c102aaebd0fad7b110d902d2f3682d4.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"9DEF881C1969EA572754FAD3258B9C57.B44F379D67E6BBC684DD3A22CCEA1E11.tf3Uy5q5AZ5AFz595yD5.comodoca.com"}}},{"id":5,"name":"_dmarc","external_reference":null,"type":"TXT","full_name":"_dmarc.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"v=DMARC1; + string: '{"pagination":{"current_page":1,"total_pages":1,"total":16,"per_page":30,"large_set":false},"records":[{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"A":{"ip_address":"185.22.211.61"}}},{"id":7,"name":null,"external_reference":null,"type":"AAAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"AAAA":{"ip_address":"2a00:67a0:a:1::1"}}},{"id":14,"name":null,"external_reference":null,"type":"CAA","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CAA":{"flag":"0","tag":"issue","value":"letsencrypt.com"}}},{"id":10,"name":null,"external_reference":null,"type":"MX","full_name":"example.com","ttl":null,"priority":10,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"MX":{"hostname":"post.atech.io"}}},{"id":1,"name":null,"external_reference":null,"type":"NS","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1618480640,"updated_at":1618480640,"content":{"NS":{"hostname":"kelly.example.com"}}},{"id":2,"name":null,"external_reference":null,"type":"NS","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1618480640,"updated_at":1618480640,"content":{"NS":{"hostname":"simon.example.com"}}},{"id":3,"name":null,"external_reference":null,"type":"SOA","full_name":"example.com","ttl":null,"priority":null,"managed":true,"created_at":1618480640,"updated_at":1618480640,"content":{"SOA":{}}},{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"a098b812c2423e663f946e981aaacc0e66520a38"}}},{"id":4,"name":"_1c102aaebd0fad7b110d902d2f3682d4","external_reference":null,"type":"CNAME","full_name":"_1c102aaebd0fad7b110d902d2f3682d4.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"9DEF881C1969EA572754FAD3258B9C57.B44F379D67E6BBC684DD3A22CCEA1E11.tf3Uy5q5AZ5AFz595yD5.comodoca.com"}}},{"id":5,"name":"_dmarc","external_reference":null,"type":"TXT","full_name":"_dmarc.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"TXT":{"content":"v=DMARC1; p=none; pct=100; rua=mailto:re+yf0qih6zxzd@dmarc.postmarkapp.com; sp=none; - aspf=r;"}}},{"id":15,"name":"_sip._udp","external_reference":null,"type":"SRV","full_name":"_sip._udp.example.com","ttl":null,"priority":10,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"SRV":{"weight":"10","port":"5060","target":"sip.example.com"}}},{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"k=rsa; - p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}}},{"id":9,"name":"helpdesk","external_reference":null,"type":"ALIAS","full_name":"helpdesk.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"ALIAS":{"hostname":"sirportly.com"}}},{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}},{"id":13,"name":"support","external_reference":null,"type":"TXT","full_name":"support.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"google-site-verification=aH5JAy0bfGYlRJ-wqWOCoMQccdExg5cv614AZm6GrAo"}}},{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"example.com"}}}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + aspf=r;"}}},{"id":15,"name":"_sip._udp","external_reference":null,"type":"SRV","full_name":"_sip._udp.example.com","ttl":null,"priority":10,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"SRV":{"weight":"10","port":"5060","target":"sip.example.com"}}},{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"TXT":{"content":"k=rsa; + p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}}},{"id":9,"name":"helpdesk","external_reference":null,"type":"ALIAS","full_name":"helpdesk.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"ALIAS":{"hostname":"sirportly.com"}}},{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}},{"id":13,"name":"support","external_reference":null,"type":"TXT","full_name":"support.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"TXT":{"content":"google-site-verification=aH5JAy0bfGYlRJ-wqWOCoMQccdExg5cv614AZm6GrAo"}}},{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"content":{"CNAME":{"hostname":"example.com"}}}]}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-missing-zone.yml b/spec/fixtures/vcr_cassettes/record-create-missing-zone.yml index 8f56f2f..90e0af5 100644 --- a/spec/fixtures/vcr_cassettes/record-create-missing-zone.yml +++ b/spec/fixtures/vcr_cassettes/record-create-missing-zone.yml @@ -37,14 +37,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - a096e402-31da-43fb-b2fa-893de9619135 + - 2eba948c-8d5a-4bf1-87bf-003934bedde9 X-Runtime: - - '0.008229' + - '0.005518' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"zone_not_found","description":"No zone could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-or-update-create-verify.yml b/spec/fixtures/vcr_cassettes/record-create-or-update-create-verify.yml index 9b79c0b..c1c2515 100644 --- a/spec/fixtures/vcr_cassettes/record-create-or-update-create-verify.yml +++ b/spec/fixtures/vcr_cassettes/record-create-or-update-create-verify.yml @@ -27,21 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"f6a95f3f99009f0fed13804acf44cecc" + - W/"ee8dc4fbd6974993d64620542ecb4859" Server: - Caddy X-Request-Id: - - 1cac891f-3fa6-4e0f-9d3b-3e1154c77fe5 + - 62a74192-fbe5-41dc-a816-84b6e4a2674a X-Runtime: - - '0.006844' + - '0.013860' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"1.1.1.1"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"1.1.1.1"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-or-update-create.yml b/spec/fixtures/vcr_cassettes/record-create-or-update-create.yml index 3268245..9f5dc42 100644 --- a/spec/fixtures/vcr_cassettes/record-create-or-update-create.yml +++ b/spec/fixtures/vcr_cassettes/record-create-or-update-create.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 3c73bcf1-9fb0-4e13-b754-9243e10fc155 + - 65c179e6-0489-4bb6-88ed-2f08601a7db4 X-Runtime: - - '0.008332' + - '0.005618' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"record_not_found","description":"No record could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: get uri: https://dennis.dev.adam.ac/api/v1/records/:record?_arguments=%7B%22record%22:%7B%22external_reference%22:%22cou-1%22%7D%7D @@ -80,16 +80,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - e8ae7eee-3875-44cf-8681-7dc12c2bf710 + - d84f69b2-3397-413a-9a95-13a1e1e80d7c X-Runtime: - - '0.008079' + - '0.004803' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"record_not_found","description":"No record could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: post uri: https://dennis.dev.adam.ac/api/v1/records @@ -119,21 +119,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"f6a95f3f99009f0fed13804acf44cecc" + - W/"ee8dc4fbd6974993d64620542ecb4859" Server: - Caddy X-Request-Id: - - 0cb7462e-125b-4bb1-84e6-9ad393bb51e3 + - 1ddc83d7-8047-4caf-8ff3-20bb47b8863a X-Runtime: - - '0.023232' + - '0.025963' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"1.1.1.1"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"1.1.1.1"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-or-update-update-verify.yml b/spec/fixtures/vcr_cassettes/record-create-or-update-update-verify.yml index 4a1ba47..61f5e16 100644 --- a/spec/fixtures/vcr_cassettes/record-create-or-update-update-verify.yml +++ b/spec/fixtures/vcr_cassettes/record-create-or-update-update-verify.yml @@ -27,21 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"81ced27e6ad3e6348430957e9cd1db62" + - W/"756f6d32d8a5edef5944c166106d53f6" Server: - Caddy X-Request-Id: - - ad2f2526-d34e-46ce-94f5-61178221a779 + - cee0fe50-93b2-4e6b-889a-fb8de3630193 X-Runtime: - - '0.007194' + - '0.015093' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"2.2.2.2"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"2.2.2.2"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-or-update-update.yml b/spec/fixtures/vcr_cassettes/record-create-or-update-update.yml index 9da2f15..1e6fcdf 100644 --- a/spec/fixtures/vcr_cassettes/record-create-or-update-update.yml +++ b/spec/fixtures/vcr_cassettes/record-create-or-update-update.yml @@ -27,23 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"f6a95f3f99009f0fed13804acf44cecc" + - W/"ee8dc4fbd6974993d64620542ecb4859" Server: - Caddy X-Request-Id: - - 8ad4a010-5197-472e-b8c8-86fdb7305f5d + - 1d0fbfa8-2189-439d-8193-00ef550d1742 X-Runtime: - - '0.007161' + - '0.014636' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"1.1.1.1"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"1.1.1.1"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: get uri: https://dennis.dev.adam.ac/api/v1/records/:record?_arguments=%7B%22record%22:%7B%22external_reference%22:%22cou-1%22%7D%7D @@ -71,23 +72,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"f6a95f3f99009f0fed13804acf44cecc" + - W/"ee8dc4fbd6974993d64620542ecb4859" Server: - Caddy X-Request-Id: - - ea2cf65b-0a7b-4fe0-bb70-3a9b4586d6ef + - 8f7eec7f-5599-429e-a8aa-8c2ba1241b9e X-Runtime: - - '0.007501' + - '0.013591' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"1.1.1.1"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"1.1.1.1"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/records/:record @@ -117,21 +119,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '239' + - '940' Content-Type: - application/json Etag: - - W/"81ced27e6ad3e6348430957e9cd1db62" + - W/"756f6d32d8a5edef5944c166106d53f6" Server: - Caddy X-Request-Id: - - f1ee9f4c-0d6f-40e4-a2e2-ca86c597a161 + - 3ebe2305-dabd-434e-b4b9-1c224d46781a X-Runtime: - - '0.022565' + - '0.027794' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"2.2.2.2"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":43,"name":"cou-1","external_reference":"cou-1","type":"A","full_name":"cou-1.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"2.2.2.2"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create-validation-error.yml b/spec/fixtures/vcr_cassettes/record-create-validation-error.yml index a9ee110..8b1abf3 100644 --- a/spec/fixtures/vcr_cassettes/record-create-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/record-create-validation-error.yml @@ -37,15 +37,15 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - aa672c78-ccd6-41b0-95ca-60d21fdfec1b + - e0711745-f7b2-444d-ac2a-29192846629b X-Runtime: - - '0.012077' + - '0.008002' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"type","type":"blank","message":"Type can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-create.yml b/spec/fixtures/vcr_cassettes/record-create.yml index a3719af..ac3ed18 100644 --- a/spec/fixtures/vcr_cassettes/record-create.yml +++ b/spec/fixtures/vcr_cassettes/record-create.yml @@ -29,21 +29,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '243' + - '944' Content-Type: - application/json Etag: - - W/"c4237d5f99ba1dc91d1b95622dbb1c3e" + - W/"8d555d7da8cb349fbb86f842f3f885de" Server: - Caddy X-Request-Id: - - 1e9d3961-8e86-4a5d-9ad5-b9bc6a3f4b17 + - 1553a7c4-2e07-47d1-83e8-8e1409740c27 X-Runtime: - - '0.027906' + - '0.028962' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":42,"name":"test1234","external_reference":null,"type":"A","full_name":"test1234.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358360,"updated_at":1617358360,"content":{"A":{"ip_address":"10.5.5.5"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":42,"name":"test1234","external_reference":null,"type":"A","full_name":"test1234.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480646,"updated_at":1618480646,"tags":[],"content":{"A":{"ip_address":"10.5.5.5"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-delete-verify.yml b/spec/fixtures/vcr_cassettes/record-delete-verify.yml index aee3de4..2f0d7a4 100644 --- a/spec/fixtures/vcr_cassettes/record-delete-verify.yml +++ b/spec/fixtures/vcr_cassettes/record-delete-verify.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 5fcadf4b-3bbc-4e29-ae38-c6ebcdec8297 + - dc8ea451-670d-4e13-9fc4-9aa0e479d90e X-Runtime: - - '0.007169' + - '0.005794' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"record_not_found","description":"No record could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-delete.yml b/spec/fixtures/vcr_cassettes/record-delete.yml index 6510e8b..4cb4dcc 100644 --- a/spec/fixtures/vcr_cassettes/record-delete.yml +++ b/spec/fixtures/vcr_cassettes/record-delete.yml @@ -27,23 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '270' + - '971' Content-Type: - application/json Etag: - - W/"2b5938024d42c2c3da0e938f58cd37c6" + - W/"5f36bfc718d31e929b39c545428804f7" Server: - Caddy X-Request-Id: - - ec7161a4-9f6b-4308-8e9f-f9d8d128ec40 + - d3e89c44-573b-4d20-9bb1-54f4522fd209 X-Runtime: - - '0.008629' + - '0.014570' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":[],"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: delete uri: https://dennis.dev.adam.ac/api/v1/records/:record @@ -73,21 +74,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '270' + - '971' Content-Type: - application/json Etag: - - W/"2b5938024d42c2c3da0e938f58cd37c6" + - W/"5f36bfc718d31e929b39c545428804f7" Server: - Caddy X-Request-Id: - - dd419b59-6f0b-488c-841c-7f9d2295e1f8 + - 91898b5d-d828-415f-b844-5097a4be5b6e X-Runtime: - - '0.023742' + - '0.026122' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":12,"name":"staging","external_reference":null,"type":"CNAME","full_name":"staging.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":[],"content":{"CNAME":{"hostname":"codebase-staging.infra.atech.io"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-find-by-ext-ref.yml b/spec/fixtures/vcr_cassettes/record-find-by-ext-ref.yml index c69bc95..685a110 100644 --- a/spec/fixtures/vcr_cassettes/record-find-by-ext-ref.yml +++ b/spec/fixtures/vcr_cassettes/record-find-by-ext-ref.yml @@ -27,21 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '256' + - '957' Content-Type: - application/json Etag: - - W/"c07536477128c31558033edbc2fab3ef" + - W/"668a621e7791d41a96fb106bbe98da16" Server: - Caddy X-Request-Id: - - ae230fdc-6c7d-48b4-94fa-dcfa5d7b999b + - bf55dbb0-85cf-4165-b9a0-8d953bad836f X-Runtime: - - '0.020978' + - '0.014839' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"CNAME":{"hostname":"example.com"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":8,"name":"www","external_reference":"www-cname-example","type":"CNAME","full_name":"www.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":[],"content":{"CNAME":{"hostname":"example.com"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-find-by-id-missing.yml b/spec/fixtures/vcr_cassettes/record-find-by-id-missing.yml index 1f88925..0db57ac 100644 --- a/spec/fixtures/vcr_cassettes/record-find-by-id-missing.yml +++ b/spec/fixtures/vcr_cassettes/record-find-by-id-missing.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - c4b205ae-a0de-4497-8e0b-ebb38ec2f243 + - dec6b1d5-844b-4d8b-9d4a-2034f487991e X-Runtime: - - '0.006973' + - '0.005770' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"record_not_found","description":"No record could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-find-by-id.yml b/spec/fixtures/vcr_cassettes/record-find-by-id.yml index 16118fd..8a7c7fb 100644 --- a/spec/fixtures/vcr_cassettes/record-find-by-id.yml +++ b/spec/fixtures/vcr_cassettes/record-find-by-id.yml @@ -27,21 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '232' + - '946' Content-Type: - application/json Etag: - - W/"b3f28f9f2ef8f14a460af9235a6add6e" + - W/"28ab10479fbe4c5d846af83ee6c4851b" Server: - Caddy X-Request-Id: - - ba339884-9e86-430d-91f3-ac46278d6601 + - 69f6bf16-f848-4648-b8b3-f6bb0dbecb66 X-Runtime: - - '0.010787' + - '0.014769' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 - string: '{"record":{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"A":{"ip_address":"185.22.211.61"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":6,"name":null,"external_reference":null,"type":"A","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":["tag1","tag2"],"content":{"A":{"ip_address":"185.22.211.61"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-find-by-invalid-column.yml b/spec/fixtures/vcr_cassettes/record-find-by-invalid-column.yml index e1d6b56..c2af711 100644 --- a/spec/fixtures/vcr_cassettes/record-find-by-invalid-column.yml +++ b/spec/fixtures/vcr_cassettes/record-find-by-invalid-column.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 57a0ab37-0a78-4bc6-9290-e024cd4d0eea + - a76283b3-59ef-40b1-90ca-d42d886d7e79 X-Runtime: - - '0.007518' + - '0.004727' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:26 GMT body: encoding: UTF-8 string: '{"error":{"code":"invalid_argument","description":"The ''record'' argument is invalid","detail":{"path":["record"],"index":null,"issue":"missing_lookup_value","issue_description":"A value for a lookup argument set has not been provided but at least one value is required.","errors":[],"argument":{"id":"CoreAPI/Endpoints/Records/InfoEndpoint/BaseArgumentSet/RecordArgument","name":"record","description":null}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:26 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-update-after-update-complete.yml b/spec/fixtures/vcr_cassettes/record-update-after-update-complete.yml index 6d51ffb..ecddcfa 100644 --- a/spec/fixtures/vcr_cassettes/record-update-after-update-complete.yml +++ b/spec/fixtures/vcr_cassettes/record-update-after-update-complete.yml @@ -27,22 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '275' + - '976' Content-Type: - application/json Etag: - - W/"93993b747de414bf357f5b494cad1573" + - W/"b883123251fa60cb93958df39d86a24f" Server: - Caddy X-Request-Id: - - f4479112-6f14-4493-8db1-66130f91f1fc + - a2a4f22b-94a6-4db5-98f6-3be2ad551b75 X-Runtime: - - '0.010101' + - '0.014208' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358360,"content":{"TXT":{"content":"new - txt value"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480647,"tags":[],"content":{"TXT":{"content":"new + txt value"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-update-specific-content-attrs.yml b/spec/fixtures/vcr_cassettes/record-update-specific-content-attrs.yml index 190f57b..4ca9063 100644 --- a/spec/fixtures/vcr_cassettes/record-update-specific-content-attrs.yml +++ b/spec/fixtures/vcr_cassettes/record-update-specific-content-attrs.yml @@ -27,23 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '308' + - '1009' Content-Type: - application/json Etag: - - W/"61b457ed66b6e547cd8f09bfe3fb73b5" + - W/"c75326f64b3235ac951bb8270c32126b" Server: - Caddy X-Request-Id: - - e29dede3-3f02-49ff-b23e-d258eee4176b + - 36bc7830-e4de-4a69-9969-d01a3f703d9a X-Runtime: - - '0.007588' + - '0.013785' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"a098b812c2423e663f946e981aaacc0e66520a38"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":[],"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"a098b812c2423e663f946e981aaacc0e66520a38"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/records/:record @@ -73,21 +74,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '278' + - '979' Content-Type: - application/json Etag: - - W/"60584220bfc70d8432cd329166336889" + - W/"e6b8a3236ed5c60b3f8eba22eac65215" Server: - Caddy X-Request-Id: - - d169ebb3-0ee5-464e-86ca-66b39086d2f5 + - 9df7039f-a896-4ce1-bac4-c33789c27caa X-Runtime: - - '0.022336' + - '0.025844' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358360,"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"abcdef1234"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":16,"name":null,"external_reference":null,"type":"SSHFP","full_name":"example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480647,"tags":[],"content":{"SSHFP":{"algorithm":"1","fingerprint_type":"2","fingerprint":"abcdef1234"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-update-with-validation-error.yml b/spec/fixtures/vcr_cassettes/record-update-with-validation-error.yml index 0588f1d..a3c85ff 100644 --- a/spec/fixtures/vcr_cassettes/record-update-with-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/record-update-with-validation-error.yml @@ -27,24 +27,25 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '275' + - '976' Content-Type: - application/json Etag: - - W/"93993b747de414bf357f5b494cad1573" + - W/"b883123251fa60cb93958df39d86a24f" Server: - Caddy X-Request-Id: - - 34679d87-f65a-48d9-ac1d-2f87c0a6cc26 + - 6993e624-fd54-4cf7-a577-11397b077366 X-Runtime: - - '0.006661' + - '0.014200' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358360,"content":{"TXT":{"content":"new - txt value"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480647,"tags":[],"content":{"TXT":{"content":"new + txt value"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/records/:record @@ -82,15 +83,15 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 889c273a-74c7-4876-8f51-e647ddf737d4 + - 21197ef8-a85e-44a3-ac56-b264f036f5c3 X-Runtime: - - '0.011141' + - '0.010362' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"content.ip_address","type":"invalid_ipv4_address","message":"A: IPv4 address is not a valid IPv4 address"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/record-update.yml b/spec/fixtures/vcr_cassettes/record-update.yml index 19af047..bb3597b 100644 --- a/spec/fixtures/vcr_cassettes/record-update.yml +++ b/spec/fixtures/vcr_cassettes/record-update.yml @@ -27,24 +27,25 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '471' + - '1172' Content-Type: - application/json Etag: - - W/"cd8b72c604a672f2cca83ea7075a7e7b" + - W/"ec5e6d03251f4869e1c70f0597114cc4" Server: - Caddy X-Request-Id: - - a700ed94-4caf-459f-9922-91f5f1ea6277 + - 387ab356-b56f-4352-a703-2530c11dc56c X-Runtime: - - '0.007455' + - '0.017102' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358343,"content":{"TXT":{"content":"k=rsa; - p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":11,"name":"cm._domainkey","external_reference":null,"type":"TXT","full_name":"cm._domainkey.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480640,"tags":[],"content":{"TXT":{"content":"k=rsa; + p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsJyYnv48KsqIS/yLiU1YGjpo+KPTkKAtJEq7RW7dMEM8IzOx96Qa3S0NYDMPr9QJOJoAomLl51YFe5Xu3WlR5f8uNjH/7UujGL9RpT+Gaa23W85qhrWuQpZnBqFczLdxf3R/OP4Sm5KisVvCP+gain4h0yxFFM4UZT4893bl6QwIDAQAB"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480646,"serial":1618480646,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/records/:record @@ -75,22 +76,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '275' + - '976' Content-Type: - application/json Etag: - - W/"93993b747de414bf357f5b494cad1573" + - W/"b883123251fa60cb93958df39d86a24f" Server: - Caddy X-Request-Id: - - 6206f199-2c55-4bc2-a3ae-42dbd504e54f + - b3772799-7f45-418a-a4ff-c066e17227ab X-Runtime: - - '0.020704' + - '0.030660' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1617358343,"updated_at":1617358360,"content":{"TXT":{"content":"new - txt value"}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"record":{"id":11,"name":"cm._domainkey.renamed","external_reference":null,"type":"TXT","full_name":"cm._domainkey.renamed.example.com","ttl":null,"priority":null,"managed":false,"created_at":1618480640,"updated_at":1618480647,"tags":[],"content":{"TXT":{"content":"new + txt value"}},"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-for-group-page.yml b/spec/fixtures/vcr_cassettes/zone-all-for-group-page.yml new file mode 100644 index 0000000..14cc7a2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/zone-all-for-group-page.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/groups/:group/zones?_arguments=%7B%22group%22:%7B%22id%22:1%7D,%22page%22:2,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '758' + Content-Type: + - application/json + Etag: + - W/"4d3c802ca9ae962e71056b80089b57da" + Server: + - Caddy + X-Request-Id: + - fb52ece0-213c-4f42-8949-874f70067cbf + X-Runtime: + - '0.011178' + Date: + - Thu, 15 Apr 2021 10:07:07 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":2,"total_pages":2,"total":4,"per_page":2,"large_set":false},"zones":[{"id":1,"name":"example.com","created_at":1618480640,"updated_at":1618480650,"serial":1618480650,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":1618480650,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":7,"name":"potatos.com","created_at":1618480647,"updated_at":1618480950,"serial":1618480950,"default_ttl":3600,"external_reference":null,"verified":false,"nameservers_verified_at":null,"nameservers_checked_at":1618480950,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 10:07:07 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-for-group-per-page.yml b/spec/fixtures/vcr_cassettes/zone-all-for-group-per-page.yml new file mode 100644 index 0000000..56fa6a2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/zone-all-for-group-per-page.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/groups/:group/zones?_arguments=%7B%22group%22:%7B%22id%22:1%7D,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '764' + Content-Type: + - application/json + Etag: + - W/"dc970cf899f92d9a21dbb442564aca7f" + Server: + - Caddy + X-Request-Id: + - aa65f945-aefe-4490-8c5e-506343dd5b9c + X-Runtime: + - '0.016550' + Date: + - Thu, 15 Apr 2021 10:07:07 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":1,"total_pages":2,"total":4,"per_page":2,"large_set":false},"zones":[{"id":2,"name":"bananas.com","created_at":1618480640,"updated_at":1618480950,"serial":1618480950,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":1618480950,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":8,"name":"cou2.com","created_at":1618480647,"updated_at":1618480950,"serial":1618480950,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":1618480950,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 10:07:07 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-for-group-with-query.yml b/spec/fixtures/vcr_cassettes/zone-all-for-group-with-query.yml index 0cc99cc..8863757 100644 --- a/spec/fixtures/vcr_cassettes/zone-all-for-group-with-query.yml +++ b/spec/fixtures/vcr_cassettes/zone-all-for-group-with-query.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '336' + - '426' Content-Type: - application/json Etag: - - W/"e55e28cc9c6b21ea91177d015c26d5d6" + - W/"fd51a750aa15a3bdc29ee5e6d40a0144" Server: - Caddy X-Request-Id: - - 074576fa-1cdb-4ca2-8ecc-9d335cf16fd5 + - d8067f86-d7e1-4247-b14d-5d617a84818d X-Runtime: - - '0.008258' + - '0.007608' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zones":[{"id":1,"name":"example.com","created_at":1617358343,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358343,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":1,"per_page":30,"large_set":false},"zones":[{"id":1,"name":"example.com","created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-for-group.yml b/spec/fixtures/vcr_cassettes/zone-all-for-group.yml index e5a5e6a..1013bbe 100644 --- a/spec/fixtures/vcr_cassettes/zone-all-for-group.yml +++ b/spec/fixtures/vcr_cassettes/zone-all-for-group.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '983' + - '1073' Content-Type: - application/json Etag: - - W/"d4c4668b9028151838b7828d520d9bc2" + - W/"6d042324c6e0c7d6c7cf49a328eafcba" Server: - Caddy X-Request-Id: - - 465d1c8b-e6f1-4793-8c43-1994d5375e39 + - 2c947cc1-5861-4bf4-a230-954f082d7165 X-Runtime: - - '0.009306' + - '0.008146' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zones":[{"id":2,"name":"bananas.com","created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":1,"name":"example.com","created_at":1617358343,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358343,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":7,"name":"potatos.com","created_at":1617358360,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}]}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":3,"per_page":30,"large_set":false},"zones":[{"id":2,"name":"bananas.com","created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":1,"name":"example.com","created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":7,"name":"potatos.com","created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-page.yml b/spec/fixtures/vcr_cassettes/zone-all-page.yml new file mode 100644 index 0000000..d1c58f6 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/zone-all-page.yml @@ -0,0 +1,49 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/zones?_arguments=%7B%22page%22:2,%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '843' + Content-Type: + - application/json + Etag: + - W/"741bd48fec03a1af16893683ed8eb8a2" + Server: + - Caddy + X-Request-Id: + - 76f0e0b1-0c4b-4e78-860a-5d74c0e9edc0 + X-Runtime: + - '0.010174' + Date: + - Thu, 15 Apr 2021 10:02:30 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":2,"total_pages":4,"total":7,"per_page":2,"large_set":false},"zones":[{"id":8,"name":"cou2.com","group":{"id":1,"name":"Renamed + Group"},"created_at":1618480647,"updated_at":1618480950,"serial":1618480950,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":1618480950,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group"},"created_at":1618480640,"updated_at":1618480650,"serial":1618480650,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":1618480650,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 10:02:30 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-per-page.yml b/spec/fixtures/vcr_cassettes/zone-all-per-page.yml new file mode 100644 index 0000000..de8c311 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/zone-all-per-page.yml @@ -0,0 +1,49 @@ +--- +http_interactions: +- request: + method: get + uri: https://dennis.dev.adam.ac/api/v1/zones?_arguments=%7B%22per_page%22:2%7D + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + Authorization: + - Bearer test + response: + status: + code: 200 + message: OK + headers: + Access-Control-Allow-Methods: + - "*" + Access-Control-Allow-Origin: + - "*" + Cache-Control: + - max-age=0, private, must-revalidate + Content-Length: + - '843' + Content-Type: + - application/json + Etag: + - W/"ee10db66f565e0f6b4573b7d3c4223d9" + Server: + - Caddy + X-Request-Id: + - 343f6961-ea93-498d-94c6-46456d70897a + X-Runtime: + - '0.023815' + Date: + - Thu, 15 Apr 2021 10:02:06 GMT + body: + encoding: UTF-8 + string: '{"pagination":{"current_page":1,"total_pages":4,"total":7,"per_page":2,"large_set":false},"zones":[{"id":3,"name":"another.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480650,"serial":1618480650,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":1618480650,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":2,"name":"bananas.com","group":{"id":1,"name":"Renamed + Group"},"created_at":1618480640,"updated_at":1618480650,"serial":1618480650,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":1618480650,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 10:02:06 GMT +recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all-with-query.yml b/spec/fixtures/vcr_cassettes/zone-all-with-query.yml index 84e7e30..078202f 100644 --- a/spec/fixtures/vcr_cassettes/zone-all-with-query.yml +++ b/spec/fixtures/vcr_cassettes/zone-all-with-query.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '374' + - '464' Content-Type: - application/json Etag: - - W/"e50f809a7974f08db7aac0709bd7fb2e" + - W/"dedd610f1bba5b78803488b69a9e098f" Server: - Caddy X-Request-Id: - - 8232c726-922f-44d8-8ca1-56694f69fedc + - 4afbfd25-2de8-4883-b2f2-b4d4ce7b2a14 X-Runtime: - - '0.009238' + - '0.010021' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zones":[{"id":4,"name":"pears.com","group":{"id":2,"name":"Another - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":1,"per_page":30,"large_set":false},"zones":[{"id":4,"name":"pears.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-all.yml b/spec/fixtures/vcr_cassettes/zone-all.yml index be5db9a..4bbe955 100644 --- a/spec/fixtures/vcr_cassettes/zone-all.yml +++ b/spec/fixtures/vcr_cassettes/zone-all.yml @@ -27,27 +27,27 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '2201' + - '2291' Content-Type: - application/json Etag: - - W/"93715f439d82699666be6d4e486c345c" + - W/"01e99bbe3e2a30f69170a2f2ea236c1c" Server: - Caddy X-Request-Id: - - e36595c5-8cd6-484b-ba66-ff2bdb51f51b + - 062ef74c-2136-46c2-b794-8b96d9d17d9e X-Runtime: - - '0.011594' + - '0.013447' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zones":[{"id":3,"name":"another.com","group":{"id":2,"name":"Another - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":2,"name":"bananas.com","group":{"id":1,"name":"Renamed - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed - Group"},"created_at":1617358343,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358343,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":4,"name":"pears.com","group":{"id":2,"name":"Another - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":6,"name":"red.com","group":{"id":2,"name":"Another - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":5,"name":"strawberries.com","group":{"id":2,"name":"Another - Group"},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + string: '{"pagination":{"current_page":1,"total_pages":1,"total":6,"per_page":30,"large_set":false},"zones":[{"id":3,"name":"another.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":2,"name":"bananas.com","group":{"id":1,"name":"Renamed + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false},{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed + Group"},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":4,"name":"pears.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":6,"name":"red.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false},{"id":5,"name":"strawberries.com","group":{"id":2,"name":"Another + Group"},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}]}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-missing-group.yml b/spec/fixtures/vcr_cassettes/zone-create-missing-group.yml index 288e298..037e2d1 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-missing-group.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-missing-group.yml @@ -37,14 +37,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 9773ee2b-14fe-4897-933f-29e447d1d95f + - 1c8afad0-9c41-4b33-be60-6f183bc39cec X-Runtime: - - '0.007147' + - '0.005492' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"group_not_found","description":"No group could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-or-update-create-verify.yml b/spec/fixtures/vcr_cassettes/zone-create-or-update-create-verify.yml index 33c45a6..df11fd0 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-or-update-create-verify.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-or-update-create-verify.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"aaf6ffaa4fce463c2e37bc15bf439051" + - W/"689bf5c79ef2f09b63d0ed78d3f498e8" Server: - Caddy X-Request-Id: - - b04f4698-5add-4c2e-9ab6-9655a000c520 + - cad4191f-ed02-415f-99fa-de394c715ce3 X-Runtime: - - '0.011196' + - '0.008382' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-or-update-create.yml b/spec/fixtures/vcr_cassettes/zone-create-or-update-create.yml index 14e025f..0f25d4d 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-or-update-create.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-or-update-create.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 18127fef-2dda-4b6a-9427-bb500a973150 + - 4f66ada5-eb1f-41b4-95f8-ab54ddd729ee X-Runtime: - - '0.006752' + - '0.005425' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"zone_not_found","description":"No zone could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: get uri: https://dennis.dev.adam.ac/api/v1/zones/:zone?_arguments=%7B%22zone%22:%7B%22external_reference%22:%22cou-zone-1%22%7D%7D @@ -80,16 +80,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - e95b70aa-01cb-4f63-bec0-3fb4e6b96b88 + - 29b05477-6339-4ed7-beaf-e73e783615d0 X-Runtime: - - '0.008055' + - '0.004856' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"zone_not_found","description":"No zone could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: post uri: https://dennis.dev.adam.ac/api/v1/zones @@ -119,21 +119,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"aaf6ffaa4fce463c2e37bc15bf439051" + - W/"689bf5c79ef2f09b63d0ed78d3f498e8" Server: - Caddy X-Request-Id: - - 3319ecdb-4cf3-4d00-8327-a4b72c531836 + - 8cb98b05-9886-4b7b-a517-38c938fe3627 X-Runtime: - - '0.040473' + - '0.041320' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-or-update-update-verify.yml b/spec/fixtures/vcr_cassettes/zone-create-or-update-update-verify.yml index 435092d..4f039f7 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-or-update-update-verify.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-or-update-update-verify.yml @@ -27,21 +27,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"253710c35f6880c36856f088342ccc1e" + - W/"5951cb97f5f21a1eb7d7ea19664b4616" Server: - Caddy X-Request-Id: - - 471e9845-8934-4f0e-9a57-c7bf5e7ae8da + - 0f28c3f1-b8b0-4c10-9739-dc773fb19e59 X-Runtime: - - '0.011439' + - '0.009887' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou2.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou2.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-or-update-update.yml b/spec/fixtures/vcr_cassettes/zone-create-or-update-update.yml index 1c61e34..54a83cd 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-or-update-update.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-or-update-update.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"aaf6ffaa4fce463c2e37bc15bf439051" + - W/"689bf5c79ef2f09b63d0ed78d3f498e8" Server: - Caddy X-Request-Id: - - 943e5538-8c99-4654-a8a1-a264ce5c0dde + - 7fc01aa7-835b-4ce7-91ec-d0dc4735cbc8 X-Runtime: - - '0.009684' + - '0.014679' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: get uri: https://dennis.dev.adam.ac/api/v1/zones/:zone?_arguments=%7B%22zone%22:%7B%22external_reference%22:%22cou-zone-1%22%7D%7D @@ -71,23 +71,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"aaf6ffaa4fce463c2e37bc15bf439051" + - W/"689bf5c79ef2f09b63d0ed78d3f498e8" Server: - Caddy X-Request-Id: - - de4fce23-8ada-4271-a616-dd4835a41e8b + - 15292dae-3fca-4e31-8371-da6890394472 X-Runtime: - - '0.008679' + - '0.009797' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou1.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/zones/:zone @@ -117,21 +117,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"253710c35f6880c36856f088342ccc1e" + - W/"5951cb97f5f21a1eb7d7ea19664b4616" Server: - Caddy X-Request-Id: - - 97452971-b42d-4a92-97c4-9d9d5785af25 + - 6b48bb5f-27b0-47a3-81f7-7f38a6f8db9f X-Runtime: - - '0.035862' + - '0.037532' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":8,"name":"cou2.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358361,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":8,"name":"cou2.com","group":{"id":1,"name":"Renamed Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"cou-zone-1","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create-validation-error.yml b/spec/fixtures/vcr_cassettes/zone-create-validation-error.yml index 6efce7b..ec88b70 100644 --- a/spec/fixtures/vcr_cassettes/zone-create-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/zone-create-validation-error.yml @@ -29,7 +29,7 @@ http_interactions: Cache-Control: - no-cache Content-Length: - - '194' + - '290' Content-Type: - application/json Server: @@ -37,15 +37,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - c0273e03-6eb9-487a-a21a-a86968163e94 + - 2fcfc8bb-78bb-4416-9843-bc92ae177036 X-Runtime: - - '0.012602' + - '0.011672' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name - can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + can''t be blank"},{"attribute":"name","type":"too_short","message":"Name is + too short (minimum is 4 characters)"}]}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-create.yml b/spec/fixtures/vcr_cassettes/zone-create.yml index 73611d9..28fbec1 100644 --- a/spec/fixtures/vcr_cassettes/zone-create.yml +++ b/spec/fixtures/vcr_cassettes/zone-create.yml @@ -29,22 +29,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '654' + - '688' Content-Type: - application/json Etag: - - W/"97fa822e9f43f23c68a60287ec4ec19c" + - W/"ddccf82a773952a62636e35e3f0759b8" Server: - Caddy X-Request-Id: - - a55035a3-3db1-4c47-97de-18afa06af3dc + - bdda611e-290a-4e94-b9b9-f825b20fb6f4 X-Runtime: - - '0.051106' + - '0.044662' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":7,"name":"potatos.com","group":{"id":1,"name":"Renamed - Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358360,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480647,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-delete-verify.yml b/spec/fixtures/vcr_cassettes/zone-delete-verify.yml index 02287a9..9db8431 100644 --- a/spec/fixtures/vcr_cassettes/zone-delete-verify.yml +++ b/spec/fixtures/vcr_cassettes/zone-delete-verify.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 0fd0cb24-66d7-45f0-9f27-a38381d92320 + - 7015de6e-90c3-4125-878f-16f8394698be X-Runtime: - - '0.006730' + - '0.005858' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"zone_not_found","description":"No zone could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-delete.yml b/spec/fixtures/vcr_cassettes/zone-delete.yml index 553000f..8188af2 100644 --- a/spec/fixtures/vcr_cassettes/zone-delete.yml +++ b/spec/fixtures/vcr_cassettes/zone-delete.yml @@ -27,23 +27,23 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '652' + - '687' Content-Type: - application/json Etag: - - W/"746d226c1548f19e3a3eb5b5bf2fbd66" + - W/"06fafc25a0ecd277d234619ebba0cb73" Server: - Caddy X-Request-Id: - - ba71ae5b-dfc7-49c8-ad41-a58c34f48cda + - 940cff3d-f1c9-4517-9e37-b0f95056614d X-Runtime: - - '0.010497' + - '0.009400' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":6,"name":"red.com","group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":6,"name":"red.com","group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: delete uri: https://dennis.dev.adam.ac/api/v1/zones/:zone @@ -73,21 +73,21 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '652' + - '687' Content-Type: - application/json Etag: - - W/"6b1ac6f70e2bcb484e7f856cc314371b" + - W/"4aebbe4ddec35666761bcc8bb63cd072" Server: - Caddy X-Request-Id: - - d031f841-d04f-4b42-b08a-cb3fcf3c1fd3 + - 0cdeb1a8-1ca3-42af-9436-bfe78067c01f X-Runtime: - - '0.025053' + - '0.038328' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 - string: '{"zone":{"id":6,"name":"red.com","group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + string: '{"zone":{"id":6,"name":"red.com","group":{"id":2,"name":"Another Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-find-by-ext-ref.yml b/spec/fixtures/vcr_cassettes/zone-find-by-ext-ref.yml index e80ccba..e466114 100644 --- a/spec/fixtures/vcr_cassettes/zone-find-by-ext-ref.yml +++ b/spec/fixtures/vcr_cassettes/zone-find-by-ext-ref.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"5838b1b13e77d2b25399b0b4e4e3cd20" + - W/"b0d4ed5e6bc8999f2a1d1811bd4ac67f" Server: - Caddy X-Request-Id: - - 8b82d699-773d-4d54-85aa-2cf9d1fabdbb + - 92875e8c-05b3-4aec-87aa-6d0be0b77eec X-Runtime: - - '0.010845' + - '0.011430' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":2,"name":"bananas.com","group":{"id":1,"name":"Renamed - Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-find-by-id-missing.yml b/spec/fixtures/vcr_cassettes/zone-find-by-id-missing.yml index 63c0aaa..97c4eb9 100644 --- a/spec/fixtures/vcr_cassettes/zone-find-by-id-missing.yml +++ b/spec/fixtures/vcr_cassettes/zone-find-by-id-missing.yml @@ -35,14 +35,14 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - cce84ac2-825c-4a05-943c-54f846f63453 + - f86b19c9-b0f5-47f5-a3e4-2ab4fe80f530 X-Runtime: - - '0.007027' + - '0.006220' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"zone_not_found","description":"No zone could be found using the given arguments","detail":{}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-find-by-id.yml b/spec/fixtures/vcr_cassettes/zone-find-by-id.yml index c40029b..6734804 100644 --- a/spec/fixtures/vcr_cassettes/zone-find-by-id.yml +++ b/spec/fixtures/vcr_cassettes/zone-find-by-id.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '658' + - '692' Content-Type: - application/json Etag: - - W/"035cbb5b8384a4fd884259afac9a2463" + - W/"81a57758daa1e0f624f99cf4ef36c49f" Server: - Caddy X-Request-Id: - - 7fd3e7da-bd7c-49c2-a351-bab24ff9390f + - 9aa328e0-6d9c-4715-a07c-37cad39f851f X-Runtime: - - '0.012554' + - '0.010469' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed - Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358343,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358343,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-find-by-invalid-column.yml b/spec/fixtures/vcr_cassettes/zone-find-by-invalid-column.yml index 0321f45..b4b16fb 100644 --- a/spec/fixtures/vcr_cassettes/zone-find-by-invalid-column.yml +++ b/spec/fixtures/vcr_cassettes/zone-find-by-invalid-column.yml @@ -35,16 +35,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - 85470e0d-9215-4fdc-b150-c38685baf244 + - bfcbb570-eca7-4387-aa96-c19c92a00fc0 X-Runtime: - - '0.006279' + - '0.005251' Date: - - Fri, 02 Apr 2021 10:12:40 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"invalid_argument","description":"The ''zone'' argument is invalid","detail":{"path":["zone"],"index":null,"issue":"missing_lookup_value","issue_description":"A value for a lookup argument set has not been provided but at least one value is required.","errors":[],"argument":{"id":"CoreAPI/Endpoints/Zones/InfoEndpoint/BaseArgumentSet/ZoneArgument","name":"zone","description":null}}}}' - recorded_at: Fri, 02 Apr 2021 10:12:40 GMT + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-not-verified-nameservers.yml b/spec/fixtures/vcr_cassettes/zone-not-verified-nameservers.yml index 3db3402..867ba8b 100644 --- a/spec/fixtures/vcr_cassettes/zone-not-verified-nameservers.yml +++ b/spec/fixtures/vcr_cassettes/zone-not-verified-nameservers.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '659' + - '693' Content-Type: - application/json Etag: - - W/"5838b1b13e77d2b25399b0b4e4e3cd20" + - W/"b0d4ed5e6bc8999f2a1d1811bd4ac67f" Server: - Caddy X-Request-Id: - - e8193e8a-b2be-4cae-bf78-dc5848fc180d + - a391efe5-0855-4d74-a66c-730052a308db X-Runtime: - - '0.010815' + - '0.008853' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":2,"name":"bananas.com","group":{"id":1,"name":"Renamed - Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":"bananas","verified":false,"nameservers_verified_at":null,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":false,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-update-after-update-complete.yml b/spec/fixtures/vcr_cassettes/zone-update-after-update-complete.yml index 6ec8c12..86c5fb3 100644 --- a/spec/fixtures/vcr_cassettes/zone-update-after-update-complete.yml +++ b/spec/fixtures/vcr_cassettes/zone-update-after-update-complete.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '663' + - '698' Content-Type: - application/json Etag: - - W/"d542f8cb04e38b1c20bd59d308e2fe24" + - W/"d948f0fa2c98a5839fdf37d9ecae8df4" Server: - Caddy X-Request-Id: - - 5cff4058-78cb-451d-999f-a0322277c500 + - f667134e-8fc4-40e6-9146-6383d2a6f0d8 X-Runtime: - - '0.010010' + - '0.009336' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":5,"name":"raspberries.com","group":{"id":2,"name":"Another - Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-update-with-validation-error.yml b/spec/fixtures/vcr_cassettes/zone-update-with-validation-error.yml index a801514..c03e36c 100644 --- a/spec/fixtures/vcr_cassettes/zone-update-with-validation-error.yml +++ b/spec/fixtures/vcr_cassettes/zone-update-with-validation-error.yml @@ -27,24 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '663' + - '698' Content-Type: - application/json Etag: - - W/"d542f8cb04e38b1c20bd59d308e2fe24" + - W/"d948f0fa2c98a5839fdf37d9ecae8df4" Server: - Caddy X-Request-Id: - - 0e4ac950-3adc-414e-997f-0fb9c6726e7c + - 0f57d57b-58ac-43a0-9eb9-51e603582fca X-Runtime: - - '0.009590' + - '0.009307' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":5,"name":"raspberries.com","group":{"id":2,"name":"Another - Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/zones/:zone @@ -74,7 +74,7 @@ http_interactions: Cache-Control: - no-cache Content-Length: - - '194' + - '290' Content-Type: - application/json Server: @@ -82,15 +82,16 @@ http_interactions: X-Api-Schema: - json-error X-Request-Id: - - e09d6e2f-2f60-49f3-b092-2d2e42eba711 + - 3fc27900-1579-4ad5-861b-ad888a8e15d2 X-Runtime: - - '0.014019' + - '0.018574' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"error":{"code":"validation_error","description":"A validation error occurred when saving the object","detail":{"errors":[{"attribute":"name","type":"blank","message":"Name - can''t be blank"}]}}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + can''t be blank"},{"attribute":"name","type":"too_short","message":"Name is + too short (minimum is 4 characters)"}]}}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-update.yml b/spec/fixtures/vcr_cassettes/zone-update.yml index 86d4056..a1eeb4f 100644 --- a/spec/fixtures/vcr_cassettes/zone-update.yml +++ b/spec/fixtures/vcr_cassettes/zone-update.yml @@ -27,24 +27,24 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '661' + - '696' Content-Type: - application/json Etag: - - W/"f825b658d5d7faf0482625775085dca4" + - W/"a9266dc0300b34436f0df1bb93e7f758" Server: - Caddy X-Request-Id: - - 1ac233e1-a22b-4ac5-b4d4-e69c59a6091d + - 71feeca0-79f8-4f6d-afd6-c37a2eaee174 X-Runtime: - - '0.010839' + - '0.010222' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":5,"name":"strawberries.com","group":{"id":2,"name":"Another - Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358344,"serial":1617358344,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480640,"serial":1618480640,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT - request: method: patch uri: https://dennis.dev.adam.ac/api/v1/zones/:zone @@ -74,22 +74,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '663' + - '698' Content-Type: - application/json Etag: - - W/"d542f8cb04e38b1c20bd59d308e2fe24" + - W/"d948f0fa2c98a5839fdf37d9ecae8df4" Server: - Caddy X-Request-Id: - - 9272a43f-a77b-4af5-94d7-28e8315bafb6 + - 89085471-39b3-4f11-9317-3723cb5c6802 X-Runtime: - - '0.031506' + - '0.033535' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":5,"name":"raspberries.com","group":{"id":2,"name":"Another - Group","external_reference":"another","created_at":1617358344,"updated_at":1617358344,"nameservers":[{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343},{"id":4,"name":"ruth.example.com","server":2,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358344,"updated_at":1617358361,"serial":1617358361,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1617358344,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"another","created_at":1618480640,"updated_at":1618480640,"nameservers":[{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646},{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":"rasps","verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/fixtures/vcr_cassettes/zone-verified-nameservers.yml b/spec/fixtures/vcr_cassettes/zone-verified-nameservers.yml index b979c5c..3d941be 100644 --- a/spec/fixtures/vcr_cassettes/zone-verified-nameservers.yml +++ b/spec/fixtures/vcr_cassettes/zone-verified-nameservers.yml @@ -27,22 +27,22 @@ http_interactions: Cache-Control: - max-age=0, private, must-revalidate Content-Length: - - '658' + - '692' Content-Type: - application/json Etag: - - W/"035cbb5b8384a4fd884259afac9a2463" + - W/"81a57758daa1e0f624f99cf4ef36c49f" Server: - Caddy X-Request-Id: - - bd06b31e-9a7c-42de-8e4b-e8b1f8413407 + - '079596e7-656c-4578-9fbe-4e9561ee0b02' X-Runtime: - - '0.010192' + - '0.009081' Date: - - Fri, 02 Apr 2021 10:12:41 GMT + - Thu, 15 Apr 2021 09:57:27 GMT body: encoding: UTF-8 string: '{"zone":{"id":1,"name":"example.com","group":{"id":1,"name":"Renamed - Group","external_reference":"with-ref","created_at":1617358343,"updated_at":1617358359,"nameservers":[{"id":5,"name":"laura.example.com","server":2,"created_at":1617358343,"updated_at":1617358343},{"id":3,"name":"dave.example.com","server":1,"created_at":1617358343,"updated_at":1617358343}]},"created_at":1617358343,"updated_at":1617358360,"serial":1617358360,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1617358343,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' - recorded_at: Fri, 02 Apr 2021 10:12:41 GMT + Group","external_reference":"with-ref","created_at":1618480640,"updated_at":1618480646,"nameservers":[{"id":6,"name":"kelly.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480640},{"id":1,"name":"phil.example.com","server":2,"available":true,"created_at":1618480640,"updated_at":1618480646}]},"created_at":1618480640,"updated_at":1618480647,"serial":1618480647,"default_ttl":3600,"external_reference":null,"verified":true,"nameservers_verified_at":1618480640,"nameservers_checked_at":null,"always_verified":false,"nameservers_verified":true,"reverse_dns":false,"stale_verification":false}}' + recorded_at: Thu, 15 Apr 2021 09:57:27 GMT recorded_with: VCR 6.0.0 diff --git a/spec/specs/group_spec.rb b/spec/specs/group_spec.rb index b28035b..79a5436 100644 --- a/spec/specs/group_spec.rb +++ b/spec/specs/group_spec.rb @@ -14,6 +14,33 @@ module Dennis expect(groups).to be_a Array end end + + it 'returns a pagination information' do + VCR.use_cassette('group-all') do + zones = described_class.all(@client) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 30 + expect(zones.pagination.total_pages).to eq 1 + end + end + + it 'returns can control the number of items per page' do + VCR.use_cassette('group-all-per-page') do + zones = described_class.all(@client, per_page: 2) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end + + it 'returns can control which page is returned' do + VCR.use_cassette('group-all-page') do + zones = described_class.all(@client, per_page: 2, page: 2) + expect(zones.pagination.current_page).to eq 2 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end end describe '.find_by' do diff --git a/spec/specs/record_spec.rb b/spec/specs/record_spec.rb index ba9d8a3..484aee4 100644 --- a/spec/specs/record_spec.rb +++ b/spec/specs/record_spec.rb @@ -72,6 +72,33 @@ module Dennis ) end end + + it 'returns a pagination information' do + VCR.use_cassette('record-all') do + zones = described_class.all(@client, { id: 1 }) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 30 + expect(zones.pagination.total_pages).to eq 1 + end + end + + it 'returns can control the number of items per page' do + VCR.use_cassette('record-all-per-page') do + zones = described_class.all(@client, { id: 1 }, per_page: 2) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end + + it 'returns can control which page is returned' do + VCR.use_cassette('record-all-page') do + zones = described_class.all(@client, { id: 1 }, per_page: 2, page: 2) + expect(zones.pagination.current_page).to eq 2 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end end describe '.all_by_tag' do diff --git a/spec/specs/zone_spec.rb b/spec/specs/zone_spec.rb index 594ce11..8e7ea0c 100644 --- a/spec/specs/zone_spec.rb +++ b/spec/specs/zone_spec.rb @@ -23,6 +23,33 @@ module Dennis expect(zones[0].name).to eq 'pears.com' end end + + it 'returns a pagination information' do + VCR.use_cassette('zone-all') do + zones = described_class.all(@client) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 30 + expect(zones.pagination.total_pages).to eq 1 + end + end + + it 'returns can control the number of items per page' do + VCR.use_cassette('zone-all-per-page') do + zones = described_class.all(@client, per_page: 2) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end + + it 'returns can control which page is returned' do + VCR.use_cassette('zone-all-page') do + zones = described_class.all(@client, per_page: 2, page: 2) + expect(zones.pagination.current_page).to eq 2 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end end describe '.find_by' do @@ -191,6 +218,33 @@ module Dennis expect(zones[0].name).to eq 'example.com' end end + + it 'returns a pagination information' do + VCR.use_cassette('zone-all-for-group') do + zones = described_class.all_for_group(@client, { id: 1 }) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 30 + expect(zones.pagination.total_pages).to eq 1 + end + end + + it 'returns can control the number of items per page' do + VCR.use_cassette('zone-all-for-group-per-page') do + zones = described_class.all_for_group(@client, { id: 1 }, per_page: 2) + expect(zones.pagination.current_page).to eq 1 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end + + it 'returns can control which page is returned' do + VCR.use_cassette('zone-all-for-group-page') do + zones = described_class.all_for_group(@client, { id: 1 }, per_page: 2, page: 2) + expect(zones.pagination.current_page).to eq 2 + expect(zones.pagination.per_page).to eq 2 + expect(zones.pagination.total_pages).to be > 1 + end + end end describe '.create_or_update' do