~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_update_record_should_modify_record_name_specified.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.015</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:47 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.016</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:47 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=\"506054\" Name=\"orig.test\"\
 
100
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
101
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
102
        \  <host HostId=\"506051\" Name=\"random.fqdntest\" Type=\"TXT\" Address=\"\
 
103
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
104
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506052\"\
 
105
        \ Name=\"random.fulltest\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
106
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
107
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506053\" Name=\"random.test\"\
 
108
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
109
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
110
        \  <host HostId=\"506055\" Name=\"updated.test\" Type=\"TXT\" Address=\"challengetoken\"\
 
111
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
112
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"505697\" Name=\"\
 
113
        @\" Type=\"URL\" Address=\"http://www.lexicontest.com/?from=@\" MXPref=\"\
 
114
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"URL Record\" IsActive=\"\
 
115
        true\" IsDDNSEnabled=\"false\" />\r\n    </DomainDNSGetHostsResult>\r\n  </CommandResponse>\r\
 
116
        \n  <Server>PHX01SBAPI02</Server>\r\n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\
 
117
        \n  <ExecutionTime>0.873</ExecutionTime>\r\n</ApiResponse>"}
 
118
    headers:
 
119
      cache-control: [private]
 
120
      content-length: ['2849']
 
121
      content-type: [text/xml; charset=utf-8]
 
122
      date: ['Wed, 17 Jan 2018 19:04:49 GMT']
 
123
      server: [Microsoft-IIS/8.5]
 
124
      vary: [Accept-Encoding]
 
125
      x-aspnet-version: [4.0.30319]
 
126
      x-powered-by: [ASP.NET]
 
127
    status: {code: 200, message: OK}
 
128
- request:
 
129
    body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&RecordType10=TXT&RecordType11=TXT&RecordType12=URL&RecordType13=TXT&HostId8=506051&HostId9=506052&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506054&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName12=URL+Record&AssociatedAppTitle3=&HostId12=505697&HostId10=506053&HostId11=506055&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=%40&HostName13=orig.nameonly.test&HostName10=random.test&HostName11=updated.test&Address1=127.0.0.1&MXPref5=10&IsActive12=true&IsActive11=true&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&AssociatedAppTitle12=&Address13=challengetoken&MXPref12=10&MXPref11=10&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.test&HostName8=random.fqdntest&HostName9=random.fulltest&Address10=challengetoken&Address11=challengetoken&MXPref6=10&TTL12=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10'
 
130
    headers:
 
131
      Accept: ['*/*']
 
132
      Accept-Encoding: ['gzip, deflate']
 
133
      Connection: [keep-alive]
 
134
      Content-Length: ['2242']
 
135
      Content-Type: [application/x-www-form-urlencoded]
 
136
      User-Agent: [python-requests/2.18.4]
 
137
    method: POST
 
138
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts
 
139
  response:
 
140
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
141
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
142
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.sethosts</RequestedCommand>\r\
 
143
        \n  <CommandResponse Type=\"namecheap.domains.dns.setHosts\">\r\n    <DomainDNSSetHostsResult\
 
144
        \ Domain=\"lexicontest.com\" IsSuccess=\"true\">\r\n      <Warnings />\r\n\
 
145
        \    </DomainDNSSetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
146
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>1.028</ExecutionTime>\r\
 
147
        \n</ApiResponse>"}
 
148
    headers:
 
149
      cache-control: [private]
 
150
      content-length: ['556']
 
151
      content-type: [text/xml; charset=utf-8]
 
152
      date: ['Wed, 17 Jan 2018 19:04:50 GMT']
 
153
      server: [Microsoft-IIS/8.5]
 
154
      vary: [Accept-Encoding]
 
155
      x-aspnet-version: [4.0.30319]
 
156
      x-powered-by: [ASP.NET]
 
157
    status: {code: 200, message: OK}
 
158
- request:
 
159
    body: null
 
160
    headers:
 
161
      Accept: ['*/*']
 
162
      Accept-Encoding: ['gzip, deflate']
 
163
      Connection: [keep-alive]
 
164
      Content-Length: ['0']
 
165
      User-Agent: [python-requests/2.18.4]
 
166
    method: POST
 
167
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
168
  response:
 
169
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
170
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
171
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
172
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
173
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
174
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
175
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
176
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
177
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
178
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
179
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
180
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
181
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
182
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
183
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
184
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
185
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
186
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
187
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
188
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
189
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
190
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506056\" Name=\"orig.nameonly.test\"\
 
191
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
192
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
193
        \  <host HostId=\"506054\" Name=\"orig.test\" Type=\"TXT\" Address=\"challengetoken\"\
 
194
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
195
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506051\" Name=\"\
 
196
        random.fqdntest\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"\
 
197
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
198
        false\" />\r\n      <host HostId=\"506052\" Name=\"random.fulltest\" Type=\"\
 
199
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
200
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
201
        \  <host HostId=\"506053\" Name=\"random.test\" Type=\"TXT\" Address=\"challengetoken\"\
 
202
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
203
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506055\" Name=\"\
 
204
        updated.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"\
 
205
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
206
        false\" />\r\n      <host HostId=\"505697\" Name=\"@\" Type=\"URL\" Address=\"\
 
207
        http://www.lexicontest.com/?from=@\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
208
        \" FriendlyName=\"URL Record\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\
 
209
        \n    </DomainDNSGetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
210
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>0.854</ExecutionTime>\r\
 
211
        \n</ApiResponse>"}
 
212
    headers:
 
213
      cache-control: [private]
 
214
      content-length: ['3042']
 
215
      content-type: [text/xml; charset=utf-8]
 
216
      date: ['Wed, 17 Jan 2018 19:04:51 GMT']
 
217
      server: [Microsoft-IIS/8.5]
 
218
      vary: [Accept-Encoding]
 
219
      x-aspnet-version: [4.0.30319]
 
220
      x-powered-by: [ASP.NET]
 
221
    status: {code: 200, message: OK}
 
222
- request:
 
223
    body: null
 
224
    headers:
 
225
      Accept: ['*/*']
 
226
      Accept-Encoding: ['gzip, deflate']
 
227
      Connection: [keep-alive]
 
228
      Content-Length: ['0']
 
229
      User-Agent: [python-requests/2.18.4]
 
230
    method: POST
 
231
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.getHosts&SLD=lexicontest&TLD=com
 
232
  response:
 
233
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
234
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
235
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.gethosts</RequestedCommand>\r\
 
236
        \n  <CommandResponse Type=\"namecheap.domains.dns.getHosts\">\r\n    <DomainDNSGetHostsResult\
 
237
        \ Domain=\"lexicontest.com\" EmailType=\"FWD\" IsUsingOurDNS=\"true\">\r\n\
 
238
        \      <host HostId=\"506042\" Name=\"localhost\" Type=\"A\" Address=\"127.0.0.1\"\
 
239
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
240
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506043\" Name=\"\
 
241
        docs\" Type=\"CNAME\" Address=\"docs.example.com.\" MXPref=\"10\" TTL=\"1800\"\
 
242
        \ AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
243
        false\" />\r\n      <host HostId=\"506041\" Name=\"www\" Type=\"CNAME\" Address=\"\
 
244
        parkingpage.namecheap.com.\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
245
        \" FriendlyName=\"CName Record\" IsActive=\"true\" IsDDNSEnabled=\"false\"\
 
246
        \ />\r\n      <host HostId=\"506044\" Name=\"_acme-challenge.fqdn\" Type=\"\
 
247
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
248
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
249
        \  <host HostId=\"506045\" Name=\"_acme-challenge.full\" Type=\"TXT\" Address=\"\
 
250
        challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\
 
251
        \" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506046\"\
 
252
        \ Name=\"_acme-challenge.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"\
 
253
        10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\"\
 
254
        \ IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506056\" Name=\"orig.nameonly.test\"\
 
255
        \ Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
256
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
257
        \  <host HostId=\"506054\" Name=\"orig.test\" Type=\"TXT\" Address=\"challengetoken\"\
 
258
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
259
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506051\" Name=\"\
 
260
        random.fqdntest\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"\
 
261
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
262
        false\" />\r\n      <host HostId=\"506052\" Name=\"random.fulltest\" Type=\"\
 
263
        TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
264
        \" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\n    \
 
265
        \  <host HostId=\"506053\" Name=\"random.test\" Type=\"TXT\" Address=\"challengetoken\"\
 
266
        \ MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"\
 
267
        true\" IsDDNSEnabled=\"false\" />\r\n      <host HostId=\"506055\" Name=\"\
 
268
        updated.test\" Type=\"TXT\" Address=\"challengetoken\" MXPref=\"10\" TTL=\"\
 
269
        1800\" AssociatedAppTitle=\"\" FriendlyName=\"\" IsActive=\"true\" IsDDNSEnabled=\"\
 
270
        false\" />\r\n      <host HostId=\"505697\" Name=\"@\" Type=\"URL\" Address=\"\
 
271
        http://www.lexicontest.com/?from=@\" MXPref=\"10\" TTL=\"1800\" AssociatedAppTitle=\"\
 
272
        \" FriendlyName=\"URL Record\" IsActive=\"true\" IsDDNSEnabled=\"false\" />\r\
 
273
        \n    </DomainDNSGetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
274
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>0.718</ExecutionTime>\r\
 
275
        \n</ApiResponse>"}
 
276
    headers:
 
277
      cache-control: [private]
 
278
      content-length: ['3042']
 
279
      content-type: [text/xml; charset=utf-8]
 
280
      date: ['Wed, 17 Jan 2018 19:04:53 GMT']
 
281
      server: [Microsoft-IIS/8.5]
 
282
      vary: [Accept-Encoding]
 
283
      x-aspnet-version: [4.0.30319]
 
284
      x-powered-by: [ASP.NET]
 
285
    status: {code: 200, message: OK}
 
286
- request:
 
287
    body: !!python/unicode 'IsActive10=true&AssociatedAppTitle11=&IsDDNSEnabled10=false&IsDDNSEnabled11=false&IsDDNSEnabled12=false&IsDDNSEnabled13=false&AssociatedAppTitle13=&RecordType10=TXT&RecordType11=TXT&RecordType12=TXT&RecordType13=URL&RecordType14=TXT&HostId8=506054&HostId9=506051&FriendlyName6=&AssociatedAppTitle10=&HostId1=506042&HostId2=506043&HostId3=506041&HostId4=506044&HostId5=506045&HostId6=506046&HostId7=506056&RecordType6=TXT&RecordType7=TXT&RecordType4=TXT&RecordType5=TXT&RecordType2=CNAME&RecordType3=CNAME&RecordType1=A&RecordType8=TXT&RecordType9=TXT&FriendlyName1=&FriendlyName3=CName+Record&AssociatedAppTitle5=&FriendlyName11=&AssociatedAppTitle2=&FriendlyName13=URL+Record&FriendlyName12=&AssociatedAppTitle3=&HostId12=506055&HostId13=505697&HostId10=506052&HostId11=506053&IsDDNSEnabled8=false&IsDDNSEnabled9=false&IsDDNSEnabled6=false&IsDDNSEnabled7=false&IsDDNSEnabled4=false&IsDDNSEnabled5=false&IsDDNSEnabled2=false&IsDDNSEnabled3=false&IsDDNSEnabled1=false&Address8=challengetoken&Address9=challengetoken&IsActive9=true&IsActive8=true&IsActive3=true&IsActive2=true&IsActive1=true&IsActive7=true&IsActive6=true&IsActive5=true&IsActive4=true&TTL4=1800&HostName12=updated.test&HostName13=%40&HostName10=random.fulltest&HostName11=random.test&HostName14=orig.nameonly.test&Address1=127.0.0.1&MXPref5=10&IsActive13=true&IsActive12=true&IsActive11=true&TTL3=1800&Address4=challengetoken&MXPref2=10&MXPref1=10&Address7=challengetoken&TTL8=1800&TTL9=1800&MXPref9=10&MXPref8=10&MXPref7=10&TTL1=1800&TTL2=1800&Address3=parkingpage.namecheap.com.&MXPref3=10&TTL5=1800&TTL6=1800&TTL7=1800&Address13=http%3A%2F%2Fwww.lexicontest.com%2F%3Ffrom%3D%40&TLD=com&FriendlyName10=&Address2=docs.example.com.&Address12=challengetoken&AssociatedAppTitle12=&MXPref13=10&MXPref12=10&MXPref11=10&MXPref10=10&HostName1=localhost&HostName2=docs&HostName3=www&HostName4=_acme-challenge.fqdn&HostName5=_acme-challenge.full&HostName6=_acme-challenge.test&HostName7=orig.nameonly.test&HostName8=orig.test&HostName9=random.fqdntest&Address10=challengetoken&Address11=challengetoken&MXPref6=10&Address14=updated&TTL12=1800&TTL13=1800&TTL10=1800&TTL11=1800&Address5=challengetoken&AssociatedAppTitle6=&AssociatedAppTitle7=&AssociatedAppTitle4=&FriendlyName2=&FriendlyName5=&FriendlyName4=&FriendlyName7=&AssociatedAppTitle1=&FriendlyName9=&FriendlyName8=&AssociatedAppTitle8=&AssociatedAppTitle9=&Address6=challengetoken&SLD=lexicontest&MXPref4=10'
 
288
    headers:
 
289
      Accept: ['*/*']
 
290
      Accept-Encoding: ['gzip, deflate']
 
291
      Connection: [keep-alive]
 
292
      Content-Length: ['2422']
 
293
      Content-Type: [application/x-www-form-urlencoded]
 
294
      User-Agent: [python-requests/2.18.4]
 
295
    method: POST
 
296
    uri: https://api.sandbox.namecheap.com/xml.response?ClientIP=127.0.0.1&Command=namecheap.domains.dns.setHosts
 
297
  response:
 
298
    body: {string: !!python/unicode "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\
 
299
        <ApiResponse Status=\"OK\" xmlns=\"http://api.namecheap.com/xml.response\"\
 
300
        >\r\n  <Errors />\r\n  <Warnings />\r\n  <RequestedCommand>namecheap.domains.dns.sethosts</RequestedCommand>\r\
 
301
        \n  <CommandResponse Type=\"namecheap.domains.dns.setHosts\">\r\n    <DomainDNSSetHostsResult\
 
302
        \ Domain=\"lexicontest.com\" IsSuccess=\"true\">\r\n      <Warnings />\r\n\
 
303
        \    </DomainDNSSetHostsResult>\r\n  </CommandResponse>\r\n  <Server>PHX01SBAPI02</Server>\r\
 
304
        \n  <GMTTimeDifference>--8:00</GMTTimeDifference>\r\n  <ExecutionTime>0.953</ExecutionTime>\r\
 
305
        \n</ApiResponse>"}
 
306
    headers:
 
307
      cache-control: [private]
 
308
      content-length: ['556']
 
309
      content-type: [text/xml; charset=utf-8]
 
310
      date: ['Wed, 17 Jan 2018 19:04:55 GMT']
 
311
      server: [Microsoft-IIS/8.5]
 
312
      vary: [Accept-Encoding]
 
313
      x-aspnet-version: [4.0.30319]
 
314
      x-powered-by: [ASP.NET]
 
315
    status: {code: 200, message: OK}
 
316
version: 1