File: test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml

package info (click to toggle)
lexicon 3.3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,580 kB
  • sloc: python: 12,755; sh: 102; makefile: 11
file content (192 lines) | stat: -rw-r--r-- 9,856 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
interactions:
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.nsone.net/v1/zones/lexicon-example.com
  response:
    body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"lexicon-example.com","dnssec":false,"network_pools":["p08"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p08.nsone.net","dns2.p08.nsone.net","dns3.p08.nsone.net","dns4.p08.nsone.net"],"records":[{"domain":"_acme-challenge.fqdn.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b709a632f60001419f0e"},{"domain":"_acme-challenge.full.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70cc94a900001c1dffa"},{"domain":"_acme-challenge.test.lexicon-example.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"5ab7b70fa632f60001b0b4a6"},{"domain":"docs.lexicon-example.com","short_answers":["docs.example.com"],"link":null,"ttl":3600,"tier":1,"type":"CNAME","id":"5ab7b7050c13a400014ee10c"},{"domain":"localhost.lexicon-example.com","short_answers":["127.0.0.1"],"link":null,"ttl":3600,"tier":1,"type":"A","id":"5ab7b702a632f60001b0b499"}],"meta":{},"link":null,"serial":1521989391,"ttl":3600,"id":"5ab69dd6bbccf900012ef579","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p08"}

'}
    headers:
      cache-control: [no-cache, 'private, max-age=0, no-cache, no-store']
      cf-ray: [40122fc6bddf2de5-BOM]
      connection: [keep-alive]
      content-length: ['1236']
      content-type: [application/json]
      date: ['Sun, 25 Mar 2018 14:49:52 GMT']
      etag: [W/"1e6c20b7f77c8a22a80f288a8699ec165ab3d730"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['0']
      pragma: [no-cache]
      server: [cloudflare]
      set-cookie: ['__cfduid=d88c94826d76415b306ea668672d618f81521989392; expires=Mon,
          25-Mar-19 14:49:52 GMT; path=/; domain=.nsone.net; HttpOnly']
      strict-transport-security: [max-age=63072000; includeSubdomains; preload]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-ratelimit-by: [customer]
      x-ratelimit-limit: ['900']
      x-ratelimit-period: ['300']
      x-ratelimit-remaining: ['899']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT
  response:
    body: {string: !!python/unicode '{"message":"record not found"}

'}
    headers:
      cache-control: [no-cache]
      cf-ray: [40122fcafa602db5-BOM]
      connection: [keep-alive]
      content-length: ['31']
      content-type: [application/json]
      date: ['Sun, 25 Mar 2018 14:49:53 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['0']
      pragma: [no-cache]
      server: [cloudflare]
      set-cookie: ['__cfduid=dc74bda300dc72ca58606a4e37afe67f61521989393; expires=Mon,
          25-Mar-19 14:49:53 GMT; path=/; domain=.nsone.net; HttpOnly']
      x-ratelimit-by: [customer]
      x-ratelimit-limit: ['900']
      x-ratelimit-period: ['300']
      x-ratelimit-remaining: ['899']
    status: {code: 404, message: Not Found}
- request:
    body: !!python/unicode '{"domain": "_acme-challenge.createrecordset.lexicon-example.com",
      "type": "TXT", "answers": [{"answer": ["challengetoken1"]}], "zone": "lexicon-example.com"}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['157']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: PUT
    uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT
  response:
    body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]}

'}
    headers:
      cache-control: [no-cache, 'private, max-age=0, no-cache, no-store']
      cf-ray: [40122fcf7bee886c-BOM]
      connection: [keep-alive]
      content-length: ['322']
      content-type: [application/json]
      date: ['Sun, 25 Mar 2018 14:49:54 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['0']
      pragma: [no-cache]
      server: [cloudflare]
      set-cookie: ['__cfduid=de5847b7d8c86bc9b9b63d546f36c3a901521989393; expires=Mon,
          25-Mar-19 14:49:53 GMT; path=/; domain=.nsone.net; HttpOnly']
      strict-transport-security: [max-age=63072000; includeSubdomains; preload]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-ratelimit-by: [customer]
      x-ratelimit-limit: ['100']
      x-ratelimit-period: ['200']
      x-ratelimit-remaining: ['99']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT
  response:
    body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]}

'}
    headers:
      cache-control: [no-cache, 'private, max-age=0, no-cache, no-store']
      cf-ray: [40122fd67ecd2daf-BOM]
      connection: [keep-alive]
      content-length: ['322']
      content-type: [application/json]
      date: ['Sun, 25 Mar 2018 14:49:55 GMT']
      etag: [W/"9ea1447e5ae2907fc1597d42df6115b2c43488e3"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['0']
      pragma: [no-cache]
      server: [cloudflare]
      set-cookie: ['__cfduid=d5652c3b4d55d97ce7c4ed214bdab77be1521989394; expires=Mon,
          25-Mar-19 14:49:54 GMT; path=/; domain=.nsone.net; HttpOnly']
      strict-transport-security: [max-age=63072000; includeSubdomains; preload]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-ratelimit-by: [customer]
      x-ratelimit-limit: ['900']
      x-ratelimit-period: ['300']
      x-ratelimit-remaining: ['899']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"type": "TXT", "name": "_acme-challenge.createrecordset.lexicon-example.com",
      "answers": [{"answer": ["challengetoken1"], "id": "5ab7b712c9c79d0001ad45e5"},
      {"answer": ["challengetoken2"]}], "ttl": 3600}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['204']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.nsone.net/v1/zones/lexicon-example.com/_acme-challenge.createrecordset.lexicon-example.com/TXT
  response:
    body: {string: !!python/unicode '{"domain":"_acme-challenge.createrecordset.lexicon-example.com","zone":"lexicon-example.com","use_client_subnet":true,"answers":[{"answer":["challengetoken1"],"id":"5ab7b712c9c79d0001ad45e5"},{"answer":["challengetoken2"],"id":"5ab7b714bbccf90001006bd4"}],"id":"5ab7b712c9c79d0001ad45e6","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"TXT","networks":[0]}

'}
    headers:
      cache-control: [no-cache, 'private, max-age=0, no-cache, no-store']
      cf-ray: [40122fda68122daf-BOM]
      connection: [keep-alive]
      content-length: ['385']
      content-type: [application/json]
      date: ['Sun, 25 Mar 2018 14:49:56 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['0']
      pragma: [no-cache]
      server: [cloudflare]
      set-cookie: ['__cfduid=d874b30f12f2450daa38e3232b84ab5bb1521989395; expires=Mon,
          25-Mar-19 14:49:55 GMT; path=/; domain=.nsone.net; HttpOnly']
      strict-transport-security: [max-age=63072000; includeSubdomains; preload]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-ratelimit-by: [customer]
      x-ratelimit-limit: ['300']
      x-ratelimit-period: ['300']
      x-ratelimit-remaining: ['299']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
version: 1