~ubuntu-branches/debian/sid/lexicon/sid

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/powerdns/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record.yaml

  • Committer: Package Import Robot
  • Author(s): Ana Custura
  • Date: 2018-03-02 22:36:08 UTC
  • Revision ID: package-import@ubuntu.com-20180302223608-4e2sghral3uifgq7
Tags: upstream-2.1.21
ImportĀ upstreamĀ versionĀ 2.1.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
interactions:
 
2
- request:
 
3
    body: !!python/unicode '{}'
 
4
    headers:
 
5
      Accept: ['*/*']
 
6
      Accept-Encoding: ['gzip, deflate']
 
7
      Connection: [keep-alive]
 
8
      Content-Length: ['2']
 
9
      Content-Type: [application/json]
 
10
      User-Agent: [python-requests/2.13.0]
 
11
    method: GET
 
12
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
13
  response:
 
14
    body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.",
 
15
        "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.",
 
16
        "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.",
 
17
        "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type":
 
18
        "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records":
 
19
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
20
        "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records":
 
21
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
22
        "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content":
 
23
        "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments":
 
24
        [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"",
 
25
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
26
        "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled":
 
27
        false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.",
 
28
        "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl":
 
29
        3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.",
 
30
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
31
        600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.",
 
32
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
33
        600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content":
 
34
        "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400",
 
35
        "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111,
 
36
        "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'}
 
37
    headers:
 
38
      access-control-allow-origin: ['*']
 
39
      connection: [keep-alive]
 
40
      content-length: ['1813']
 
41
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
42
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
43
          'unsafe-inline']
 
44
      content-type: [application/json]
 
45
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
46
      server: [nginx]
 
47
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
48
      transfer-encoding: [chunked]
 
49
      vary: [Accept-Encoding]
 
50
      x-content-type-options: [nosniff, nosniff]
 
51
      x-frame-options: [deny, SAMEORIGIN]
 
52
      x-permitted-cross-domain-policies: [none]
 
53
      x-xss-protection: [1; mode=block, 1; mode=block]
 
54
    status: {code: 200, message: OK}
 
55
- request:
 
56
    body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"",
 
57
      "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "orig.test.example.com.",
 
58
      "ttl": 600}]}'
 
59
    headers:
 
60
      Accept: ['*/*']
 
61
      Accept-Encoding: ['gzip, deflate']
 
62
      Connection: [keep-alive]
 
63
      Content-Length: ['167']
 
64
      Content-Type: [application/json]
 
65
      User-Agent: [python-requests/2.13.0]
 
66
    method: PATCH
 
67
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
68
  response:
 
69
    body: {string: !!python/unicode ''}
 
70
    headers:
 
71
      access-control-allow-origin: ['*']
 
72
      connection: [keep-alive]
 
73
      content-length: ['0']
 
74
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
75
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
76
          'unsafe-inline']
 
77
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
78
      server: [nginx]
 
79
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
80
      x-content-type-options: [nosniff, nosniff]
 
81
      x-frame-options: [deny, SAMEORIGIN]
 
82
      x-permitted-cross-domain-policies: [none]
 
83
      x-xss-protection: [1; mode=block, 1; mode=block]
 
84
    status: {code: 204, message: No Content}
 
85
- request:
 
86
    body: !!python/unicode '{}'
 
87
    headers:
 
88
      Accept: ['*/*']
 
89
      Accept-Encoding: ['gzip, deflate']
 
90
      Connection: [keep-alive]
 
91
      Content-Length: ['2']
 
92
      Content-Type: [application/json]
 
93
      User-Agent: [python-requests/2.13.0]
 
94
    method: GET
 
95
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
96
  response:
 
97
    body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.",
 
98
        "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.",
 
99
        "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.",
 
100
        "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type":
 
101
        "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records":
 
102
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
103
        "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records":
 
104
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
105
        "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content":
 
106
        "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments":
 
107
        [], "name": "orig.test.example.com.", "records": [{"content": "\"challengetoken\"",
 
108
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
109
        "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"",
 
110
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
111
        "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled":
 
112
        false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.",
 
113
        "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl":
 
114
        3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.",
 
115
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
116
        600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.",
 
117
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
118
        600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content":
 
119
        "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400",
 
120
        "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111,
 
121
        "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'}
 
122
    headers:
 
123
      access-control-allow-origin: ['*']
 
124
      connection: [keep-alive]
 
125
      content-length: ['1959']
 
126
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
127
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
128
          'unsafe-inline']
 
129
      content-type: [application/json]
 
130
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
131
      server: [nginx]
 
132
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
133
      transfer-encoding: [chunked]
 
134
      vary: [Accept-Encoding]
 
135
      x-content-type-options: [nosniff, nosniff]
 
136
      x-frame-options: [deny, SAMEORIGIN]
 
137
      x-permitted-cross-domain-policies: [none]
 
138
      x-xss-protection: [1; mode=block, 1; mode=block]
 
139
    status: {code: 200, message: OK}
 
140
- request:
 
141
    body: !!python/unicode '{"rrsets": [{"name": "orig.test.example.com.", "changetype":
 
142
      "REPLACE", "records": [], "ttl": 600, "type": "TXT"}]}'
 
143
    headers:
 
144
      Accept: ['*/*']
 
145
      Accept-Encoding: ['gzip, deflate']
 
146
      Connection: [keep-alive]
 
147
      Content-Length: ['115']
 
148
      Content-Type: [application/json]
 
149
      User-Agent: [python-requests/2.13.0]
 
150
    method: PATCH
 
151
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
152
  response:
 
153
    body: {string: !!python/unicode ''}
 
154
    headers:
 
155
      access-control-allow-origin: ['*']
 
156
      connection: [keep-alive]
 
157
      content-length: ['0']
 
158
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
159
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
160
          'unsafe-inline']
 
161
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
162
      server: [nginx]
 
163
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
164
      x-content-type-options: [nosniff, nosniff]
 
165
      x-frame-options: [deny, SAMEORIGIN]
 
166
      x-permitted-cross-domain-policies: [none]
 
167
      x-xss-protection: [1; mode=block, 1; mode=block]
 
168
    status: {code: 204, message: No Content}
 
169
- request:
 
170
    body: !!python/unicode '{}'
 
171
    headers:
 
172
      Accept: ['*/*']
 
173
      Accept-Encoding: ['gzip, deflate']
 
174
      Connection: [keep-alive]
 
175
      Content-Length: ['2']
 
176
      Content-Type: [application/json]
 
177
      User-Agent: [python-requests/2.13.0]
 
178
    method: GET
 
179
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
180
  response:
 
181
    body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.",
 
182
        "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.",
 
183
        "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.",
 
184
        "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type":
 
185
        "A"}, {"comments": [], "name": "random.fqdntest.example.com.", "records":
 
186
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
187
        "TXT"}, {"comments": [], "name": "random.fulltest.example.com.", "records":
 
188
        [{"content": "\"challengetoken\"", "disabled": false}], "ttl": 600, "type":
 
189
        "TXT"}, {"comments": [], "name": "random.test.example.com.", "records": [{"content":
 
190
        "\"challengetoken\"", "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments":
 
191
        [], "name": "_acme-challenge.test.example.com.", "records": [{"content": "\"challengetoken\"",
 
192
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
193
        "docs.example.com.", "records": [{"content": "docs.example.com.", "disabled":
 
194
        false}], "ttl": 600, "type": "CNAME"}, {"comments": [], "name": "ttl.fqdn.example.com.",
 
195
        "records": [{"content": "\"ttlshouldbe3600\"", "disabled": false}], "ttl":
 
196
        3600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.fqdn.example.com.",
 
197
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
198
        600, "type": "TXT"}, {"comments": [], "name": "_acme-challenge.full.example.com.",
 
199
        "records": [{"content": "\"challengetoken\"", "disabled": false}], "ttl":
 
200
        600, "type": "TXT"}, {"comments": [], "name": "example.com.", "records": [{"content":
 
201
        "ns-internal.hhome.me. admin.hhome.me. 2017033111 28800 7200 604800 86400",
 
202
        "disabled": false}], "ttl": 86400, "type": "SOA"}], "serial": 2017033111,
 
203
        "soa_edit": "", "soa_edit_api": "", "url": "api/v1/servers/localhost/zones/example.com."}'}
 
204
    headers:
 
205
      access-control-allow-origin: ['*']
 
206
      connection: [keep-alive]
 
207
      content-length: ['1813']
 
208
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
209
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
210
          'unsafe-inline']
 
211
      content-type: [application/json]
 
212
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
213
      server: [nginx]
 
214
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
215
      transfer-encoding: [chunked]
 
216
      vary: [Accept-Encoding]
 
217
      x-content-type-options: [nosniff, nosniff]
 
218
      x-frame-options: [deny, SAMEORIGIN]
 
219
      x-permitted-cross-domain-policies: [none]
 
220
      x-xss-protection: [1; mode=block, 1; mode=block]
 
221
    status: {code: 200, message: OK}
 
222
- request:
 
223
    body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"",
 
224
      "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "updated.test.example.com.",
 
225
      "ttl": 600}]}'
 
226
    headers:
 
227
      Accept: ['*/*']
 
228
      Accept-Encoding: ['gzip, deflate']
 
229
      Connection: [keep-alive]
 
230
      Content-Length: ['170']
 
231
      Content-Type: [application/json]
 
232
      User-Agent: [python-requests/2.13.0]
 
233
    method: PATCH
 
234
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
235
  response:
 
236
    body: {string: !!python/unicode ''}
 
237
    headers:
 
238
      access-control-allow-origin: ['*']
 
239
      connection: [keep-alive]
 
240
      content-length: ['0']
 
241
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
242
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
243
          'unsafe-inline']
 
244
      date: ['Fri, 31 Mar 2017 22:36:42 GMT']
 
245
      server: [nginx]
 
246
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
247
      x-content-type-options: [nosniff, nosniff]
 
248
      x-frame-options: [deny, SAMEORIGIN]
 
249
      x-permitted-cross-domain-policies: [none]
 
250
      x-xss-protection: [1; mode=block, 1; mode=block]
 
251
    status: {code: 204, message: No Content}
 
252
version: 1