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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/namecheap/IntegrationTests/test_Provider_when_calling_delete_record_by_identifier_should_remove_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: null
 
4
    headers:
 
5
      Accept: ['*/*']
 
6
      Accept-Encoding: ['gzip, deflate']
 
7
      Connection: [keep-alive]
 
8
      Content-Length: ['0']
 
9
      User-Agent: [python-requests/2.18.4]
 
10
    method: POST
 
11
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=1
 
12
  response:
 
13
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
14
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
15
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.getlist</RequestedCommand>\r\
 
16
        \n  <CommandResponse Type=\"namecheap.domains.getList\">\r\n    <DomainGetListResult>\r\
 
17
        \n      <Domain ID=\"160248\" Name=\"dnscontrol.com\" User=\"sandypants\"\
 
18
        \ Created=\"04/18/2017\" Expires=\"04/18/2018\" IsExpired=\"false\" IsLocked=\"\
 
19
        false\" AutoRenew=\"false\" WhoisGuard=\"NOTPRESENT\" IsPremium=\"false\"\
 
20
        \ IsOurDNS=\"true\" />\r\n      <Domain ID=\"261173\" Name=\"lexicontest.com\"\
 
21
        \ User=\"sandypants\" Created=\"01/16/2018\" Expires=\"01/16/2019\" IsExpired=\"\
 
22
        false\" IsLocked=\"false\" AutoRenew=\"false\" WhoisGuard=\"NOTPRESENT\" IsPremium=\"\
 
23
        false\" IsOurDNS=\"true\" />\r\n    </DomainGetListResult>\r\n    <Paging>\r\
 
24
        \n      <TotalItems>2</TotalItems>\r\n      <CurrentPage>1</CurrentPage>\r\
 
25
        \n      <PageSize>20</PageSize>\r\n    </Paging>\r\n  </CommandResponse>\r\
 
26
        \n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
27
        \n  <ExecutionTime>0.028</ExecutionTime>\r\n</ApiResponse>"}
 
28
    headers:
 
29
      cache-control: [private]
 
30
      content-length: ['1053']
 
31
      content-type: [text/xml; charset=utf-8]
 
32
      date: ['Wed, 17 Jan 2018 19:04:07 GMT']
 
33
      server: [Microsoft-IIS/8.5]
 
34
      vary: [Accept-Encoding]
 
35
      x-aspnet-version: [4.0.30319]
 
36
      x-powered-by: [ASP.NET]
 
37
    status: {code: 200, message: OK}
 
38
- request:
 
39
    body: null
 
40
    headers:
 
41
      Accept: ['*/*']
 
42
      Accept-Encoding: ['gzip, deflate']
 
43
      Connection: [keep-alive]
 
44
      Content-Length: ['0']
 
45
      User-Agent: [python-requests/2.18.4]
 
46
    method: POST
 
47
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.getList&Page=2
 
48
  response:
 
49
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
50
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
51
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.getlist</RequestedCommand>\r\
 
52
        \n  <CommandResponse Type=\"namecheap.domains.getList\">\r\n    <DomainGetListResult\
 
53
        \ />\r\n    <Paging>\r\n      <TotalItems>2</TotalItems>\r\n      <CurrentPage>2</CurrentPage>\r\
 
54
        \n      <PageSize>20</PageSize>\r\n    </Paging>\r\n  </CommandResponse>\r\
 
55
        \n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
56
        \n  <ExecutionTime>0.014</ExecutionTime>\r\n</ApiResponse>"}
 
57
    headers:
 
58
      cache-control: [private]
 
59
      content-length: ['580']
 
60
      content-type: [text/xml; charset=utf-8]
 
61
      date: ['Wed, 17 Jan 2018 19:04:07 GMT']
 
62
      server: [Microsoft-IIS/8.5]
 
63
      vary: [Accept-Encoding]
 
64
      x-aspnet-version: [4.0.30319]
 
65
      x-powered-by: [ASP.NET]
 
66
    status: {code: 200, message: OK}
 
67
- request:
 
68
    body: null
 
69
    headers:
 
70
      Accept: ['*/*']
 
71
      Accept-Encoding: ['gzip, deflate']
 
72
      Connection: [keep-alive]
 
73
      Content-Length: ['0']
 
74
      User-Agent: [python-requests/2.18.4]
 
75
    method: POST
 
76
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
77
  response:
 
78
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
79
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
80
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
81
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
82
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
83
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
84
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
85
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
86
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
87
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
88
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
89
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
90
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
91
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
92
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
93
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
94
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
95
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
96
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
97
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
98
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
99
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"505697\" Name=\"@\" Type=\"\
 
100
        URL\" Address=\"http://www.lexicontest.com/?from=@\" MXPref=\"10\" TTL=\"\
 
101
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\" IsActive=\"true\"\
 
102
        \ IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\n  </CommandResponse>\r\
 
103
        \n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
104
        \n  <ExecutionTime>0.79</ExecutionTime>\r\n</ApiResponse>"}
 
105
    headers:
 
106
      cache-control: [private]
 
107
      content-length: ['1911']
 
108
      content-type: [text/xml; charset=utf-8]
 
109
      date: ['Wed, 17 Jan 2018 19:04:09 GMT']
 
110
      server: [Microsoft-IIS/8.5]
 
111
      vary: [Accept-Encoding]
 
112
      x-aspnet-version: [4.0.30319]
 
113
      x-powered-by: [ASP.NET]
 
114
    status: {code: 200, message: OK}
 
115
- request:
 
116
    body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&HostName8=delete.testid&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&RecordType8=TXT&HostId6=506046&Address8=challengetoken&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true'
 
117
    headers:
 
118
      Accept: ['*/*']
 
119
      Accept-Encoding: ['gzip, deflate']
 
120
      Connection: [keep-alive]
 
121
      Content-Length: ['1347']
 
122
      Content-Type: [application/x-www-form-urlencoded]
 
123
      User-Agent: [python-requests/2.18.4]
 
124
    method: POST
 
125
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts
 
126
  response:
 
127
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
128
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
129
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.sethosts</RequestedCommand>\r\
 
130
        \n  <CommandResponse Type=\"namecheap.domains.dns.setHosts\">\r\n    <DomainDNSSetHostsResult\
 
131
        \ Domain=\"lexicontest.com\" IsSuccess=\"true\">\r\n      <Warnings />\r\n\
 
132
        \    </DomainDNSSetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
133
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>1.005</ExecutionTime>\r\
 
134
        \n</ApiResponse>"}
 
135
    headers:
 
136
      cache-control: [private]
 
137
      content-length: ['556']
 
138
      content-type: [text/xml; charset=utf-8]
 
139
      date: ['Wed, 17 Jan 2018 19:04:11 GMT']
 
140
      server: [Microsoft-IIS/8.5]
 
141
      vary: [Accept-Encoding]
 
142
      x-aspnet-version: [4.0.30319]
 
143
      x-powered-by: [ASP.NET]
 
144
    status: {code: 200, message: OK}
 
145
- request:
 
146
    body: null
 
147
    headers:
 
148
      Accept: ['*/*']
 
149
      Accept-Encoding: ['gzip, deflate']
 
150
      Connection: [keep-alive]
 
151
      Content-Length: ['0']
 
152
      User-Agent: [python-requests/2.18.4]
 
153
    method: POST
 
154
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
155
  response:
 
156
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
157
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
158
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
159
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
160
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
161
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
162
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
163
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
164
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
165
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
166
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
167
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
168
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
169
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
170
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
171
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
172
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
173
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
174
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
175
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
176
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
177
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506050\" Name=\"delete.testid\"\
 
178
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
179
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
180
        \  <host HostId=\"505697\" Name=\"@\" Type=\"URL\" Address=\"http://www.lexicontest.com/?from=@\"\
 
181
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\"\
 
182
        \ IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\
 
183
        \n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
184
        \n  <ExecutionTime>0.933</ExecutionTime>\r\n</ApiResponse>"}
 
185
    headers:
 
186
      cache-control: [private]
 
187
      content-length: ['2100']
 
188
      content-type: [text/xml; charset=utf-8]
 
189
      date: ['Wed, 17 Jan 2018 19:04:12 GMT']
 
190
      server: [Microsoft-IIS/8.5]
 
191
      vary: [Accept-Encoding]
 
192
      x-aspnet-version: [4.0.30319]
 
193
      x-powered-by: [ASP.NET]
 
194
    status: {code: 200, message: OK}
 
195
- request:
 
196
    body: null
 
197
    headers:
 
198
      Accept: ['*/*']
 
199
      Accept-Encoding: ['gzip, deflate']
 
200
      Connection: [keep-alive]
 
201
      Content-Length: ['0']
 
202
      User-Agent: [python-requests/2.18.4]
 
203
    method: POST
 
204
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
205
  response:
 
206
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
207
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
208
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
209
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
210
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
211
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
212
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
213
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
214
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
215
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
216
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
217
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
218
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
219
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
220
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
221
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
222
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
223
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
224
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
225
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
226
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
227
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506050\" Name=\"delete.testid\"\
 
228
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
229
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
230
        \  <host HostId=\"505697\" Name=\"@\" Type=\"URL\" Address=\"http://www.lexicontest.com/?from=@\"\
 
231
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\"\
 
232
        \ IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\
 
233
        \n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
234
        \n  <ExecutionTime>0.753</ExecutionTime>\r\n</ApiResponse>"}
 
235
    headers:
 
236
      cache-control: [private]
 
237
      content-length: ['2100']
 
238
      content-type: [text/xml; charset=utf-8]
 
239
      date: ['Wed, 17 Jan 2018 19:04:14 GMT']
 
240
      server: [Microsoft-IIS/8.5]
 
241
      vary: [Accept-Encoding]
 
242
      x-aspnet-version: [4.0.30319]
 
243
      x-powered-by: [ASP.NET]
 
244
    status: {code: 200, message: OK}
 
245
- request:
 
246
    body: null
 
247
    headers:
 
248
      Accept: ['*/*']
 
249
      Accept-Encoding: ['gzip, deflate']
 
250
      Connection: [keep-alive]
 
251
      Content-Length: ['0']
 
252
      User-Agent: [python-requests/2.18.4]
 
253
    method: POST
 
254
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
255
  response:
 
256
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
257
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
258
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
259
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
260
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
261
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
262
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
263
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
264
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
265
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
266
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
267
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
268
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
269
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
270
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
271
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
272
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
273
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
274
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
275
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
276
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
277
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506050\" Name=\"delete.testid\"\
 
278
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
279
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
280
        \  <host HostId=\"505697\" Name=\"@\" Type=\"URL\" Address=\"http://www.lexicontest.com/?from=@\"\
 
281
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\"\
 
282
        \ IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\
 
283
        \n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
284
        \n  <ExecutionTime>0.821</ExecutionTime>\r\n</ApiResponse>"}
 
285
    headers:
 
286
      cache-control: [private]
 
287
      content-length: ['2100']
 
288
      content-type: [text/xml; charset=utf-8]
 
289
      date: ['Wed, 17 Jan 2018 19:04:15 GMT']
 
290
      server: [Microsoft-IIS/8.5]
 
291
      vary: [Accept-Encoding]
 
292
      x-aspnet-version: [4.0.30319]
 
293
      x-powered-by: [ASP.NET]
 
294
    status: {code: 200, message: OK}
 
295
- request:
 
296
    body: !!python/unicode 'AssociatedAppTitle6=&Address3=parkingpage.namecheap.com.&TTL5=1800&MXPref3=10&HostName7=%40&IsDDNSEnabled7=false&TTL1=1800&IsDDNSEnabled3=false&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&IsActive2=true&FriendlyName5=&TTL7=1800&HostId2=506043&FriendlyName4=&Address4=challengetoken&TTL6=1800&IsDDNSEnabled6=false&Address1=127.0.0.1&TTL2=1800&TTL3=1800&IsDDNSEnabled2=false&MXPref2=10&MXPref1=10&IsDDNSEnabled1=false&AssociatedAppTitle4=&MXPref7=10&SLD=lexicontest&Address5=challengetoken&IsDDNSEnabled4=false&Address7=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&MXPref5=10&FriendlyName1=&AssociatedAppTitle7=&FriendlyName3=CName+Record&FriendlyName2=&AssociatedAppTitle2=&AssociatedAppTitle3=&FriendlyName7=URL+Record&AssociatedAppTitle1=&MXPref6=10&HostId7=505697&AssociatedAppTitle5=&Address6=challengetoken&IsActive7=true&IsDDNSEnabled5=false&FriendlyName6=&TLD=com&IsActive3=true&HostId1=506042&IsActive1=true&HostId3=506041&HostId4=506044&HostId5=506045&IsActive5=true&IsActive4=true&TTL4=1800&HostId6=506046&RecordType6=TXT&RecordType7=URL&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&Address2=docs.example.com.&MXPref4=10&IsActive6=true'
 
297
    headers:
 
298
      Accept: ['*/*']
 
299
      Accept-Encoding: ['gzip, deflate']
 
300
      Connection: [keep-alive]
 
301
      Content-Length: ['1283']
 
302
      Content-Type: [application/x-www-form-urlencoded]
 
303
      User-Agent: [python-requests/2.18.4]
 
304
    method: POST
 
305
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts
 
306
  response:
 
307
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
308
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
309
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.sethosts</RequestedCommand>\r\
 
310
        \n  <CommandResponse Type=\"namecheap.domains.dns.setHosts\">\r\n    <DomainDNSSetHostsResult\
 
311
        \ Domain=\"lexicontest.com\" IsSuccess=\"true\">\r\n      <Warnings />\r\n\
 
312
        \    </DomainDNSSetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
313
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>0.944</ExecutionTime>\r\
 
314
        \n</ApiResponse>"}
 
315
    headers:
 
316
      cache-control: [private]
 
317
      content-length: ['556']
 
318
      content-type: [text/xml; charset=utf-8]
 
319
      date: ['Wed, 17 Jan 2018 19:04:17 GMT']
 
320
      server: [Microsoft-IIS/8.5]
 
321
      vary: [Accept-Encoding]
 
322
      x-aspnet-version: [4.0.30319]
 
323
      x-powered-by: [ASP.NET]
 
324
    status: {code: 200, message: OK}
 
325
- request:
 
326
    body: null
 
327
    headers:
 
328
      Accept: ['*/*']
 
329
      Accept-Encoding: ['gzip, deflate']
 
330
      Connection: [keep-alive]
 
331
      Content-Length: ['0']
 
332
      User-Agent: [python-requests/2.18.4]
 
333
    method: POST
 
334
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
335
  response:
 
336
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
337
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
338
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
339
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
340
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
341
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
342
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
343
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
344
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
345
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
346
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
347
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
348
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
349
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
350
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
351
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
352
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
353
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
354
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
355
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
356
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
357
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"505697\" Name=\"@\" Type=\"\
 
358
        URL\" Address=\"http://www.lexicontest.com/?from=@\" MXPref=\"10\" TTL=\"\
 
359
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\" IsActive=\"true\"\
 
360
        \ IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\n  </CommandResponse>\r\
 
361
        \n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
362
        \n  <ExecutionTime>0.893</ExecutionTime>\r\n</ApiResponse>"}
 
363
    headers:
 
364
      cache-control: [private]
 
365
      content-length: ['1912']
 
366
      content-type: [text/xml; charset=utf-8]
 
367
      date: ['Wed, 17 Jan 2018 19:04:18 GMT']
 
368
      server: [Microsoft-IIS/8.5]
 
369
      vary: [Accept-Encoding]
 
370
      x-aspnet-version: [4.0.30319]
 
371
      x-powered-by: [ASP.NET]
 
372
    status: {code: 200, message: OK}
 
373
version: 1