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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/easydns/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_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: '{}'
 
4
    headers:
 
5
      Accept: [application/json]
 
6
      Accept-Encoding: ['gzip, deflate']
 
7
      Connection: [keep-alive]
 
8
      Content-Length: ['2']
 
9
      Content-Type: [application/json]
 
10
      User-Agent: [python-requests/2.9.1]
 
11
    method: GET
 
12
    uri: http://sandbox.rest.easydns.net/domain/easydnstemp.com?format=json
 
13
  response:
 
14
    body: {string: !!python/unicode '
 
15
 
 
16
 
 
17
        {"msg":"OK","tm":1459792077,"data":{"id":"easydnstemp.com","domain":"easydnstemp.com","exists":"Y","onsystem":"Y","expiry":"2017-04-04","next_due":"2017-04-04","cloned_to":"NONE","service":"19","sub_block":"NONE"},"status":200}'}
 
18
    headers:
 
19
      access-control-allow-credentials: ['true']
 
20
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
21
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
22
          X-AUTHTOKEN']
 
23
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
24
      access-control-allow-origin: ['"*"']
 
25
      cache-control: ['no-cache, must-revalidate']
 
26
      connection: [close]
 
27
      content-length: ['229']
 
28
      content-type: [application/json]
 
29
      date: ['Mon, 04 Apr 2016 17:47:57 GMT']
 
30
      expires: ['0']
 
31
      pragma: [no-cache]
 
32
      server: [Apache/2.2.16 (Debian)]
 
33
      set-cookie: [easyAPI=pkok2tv3d6qsicv6796q6anfc0; path=/, 'api_token=api_5702a8cd3ba942.73788542;
 
34
          expires=Mon, 04-Apr-2016 18:02:57 GMT; path=/; domain=sandbox.rest.easydns.net']
 
35
      vary: [Accept-Encoding]
 
36
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
37
    status: {code: 200, message: OK}
 
38
- request:
 
39
    body: '{"domain": "easydnstemp.com", "prio": 0, "ttl": 300, "host": "delete.testfilt",
 
40
      "rdata": "challengetoken", "type": "TXT"}'
 
41
    headers:
 
42
      Accept: [application/json]
 
43
      Accept-Encoding: ['gzip, deflate']
 
44
      Connection: [keep-alive]
 
45
      Content-Length: ['121']
 
46
      Content-Type: [application/json]
 
47
      User-Agent: [python-requests/2.9.1]
 
48
    method: PUT
 
49
    uri: http://sandbox.rest.easydns.net/zones/records/add/easydnstemp.com/TXT?format=json
 
50
  response:
 
51
    body: {string: !!python/unicode '
 
52
 
 
53
 
 
54
        '}
 
55
    headers:
 
56
      access-control-allow-credentials: ['true']
 
57
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
58
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
59
          X-AUTHTOKEN']
 
60
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
61
      access-control-allow-origin: ['"*"']
 
62
      cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
 
63
      connection: [close]
 
64
      content-length: ['2']
 
65
      content-type: [text/html]
 
66
      date: ['Mon, 04 Apr 2016 17:48:01 GMT']
 
67
      expires: ['Thu, 19 Nov 1981 08:52:00 GMT']
 
68
      pragma: [no-cache]
 
69
      server: [Apache/2.2.16 (Debian)]
 
70
      set-cookie: [easyAPI=2n2suq9q3aavljjks0e4lgamn5; path=/, 'api_token=api_5702a8d19f7ee9.41844884;
 
71
          expires=Mon, 04-Apr-2016 18:03:01 GMT; path=/; domain=sandbox.rest.easydns.net']
 
72
      vary: [Accept-Encoding]
 
73
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
74
    status: {code: 500, message: Internal Server Error}
 
75
- request:
 
76
    body: '{}'
 
77
    headers:
 
78
      Accept: [application/json]
 
79
      Accept-Encoding: ['gzip, deflate']
 
80
      Connection: [keep-alive]
 
81
      Content-Length: ['2']
 
82
      Content-Type: [application/json]
 
83
      User-Agent: [python-requests/2.9.1]
 
84
    method: GET
 
85
    uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json
 
86
  response:
 
87
    body: {string: !!python/unicode '
 
88
 
 
89
 
 
90
        {"tm":1459792082,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
91
        13:48:01"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
92
        13:48:01"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
93
        13:48:01"},{"id":"28453455","domain":"easydnstemp.com","host":"delete.testfilt","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
94
        13:48:01"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
95
        13:48:01"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
96
        13:48:01"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
97
        13:48:01"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
98
        13:48:01"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04
 
99
        11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04
 
100
        13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04
 
101
        13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04
 
102
        11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04
 
103
        13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04
 
104
        13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
105
        13:48:01"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com.
 
106
        zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04
 
107
        11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
108
        13:48:01"}],"count":17,"total":17,"start":0,"max":1000,"status":200}'}
 
109
    headers:
 
110
      access-control-allow-credentials: ['true']
 
111
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
112
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
113
          X-AUTHTOKEN']
 
114
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
115
      access-control-allow-origin: ['"*"']
 
116
      cache-control: ['no-cache, must-revalidate']
 
117
      connection: [close]
 
118
      content-length: ['3100']
 
119
      content-type: [application/json]
 
120
      date: ['Mon, 04 Apr 2016 17:48:02 GMT']
 
121
      expires: ['0']
 
122
      pragma: [no-cache]
 
123
      server: [Apache/2.2.16 (Debian)]
 
124
      set-cookie: [easyAPI=rlnnte5rhd70lqte7444si9ai0; path=/, 'api_token=api_5702a8d209e515.27871516;
 
125
          expires=Mon, 04-Apr-2016 18:03:02 GMT; path=/; domain=sandbox.rest.easydns.net']
 
126
      vary: [Accept-Encoding]
 
127
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
128
    status: {code: 200, message: OK}
 
129
- request:
 
130
    body: '{}'
 
131
    headers:
 
132
      Accept: [application/json]
 
133
      Accept-Encoding: ['gzip, deflate']
 
134
      Connection: [keep-alive]
 
135
      Content-Length: ['2']
 
136
      Content-Type: [application/json]
 
137
      User-Agent: [python-requests/2.9.1]
 
138
    method: DELETE
 
139
    uri: http://sandbox.rest.easydns.net/zones/records/easydnstemp.com/28453455?format=json
 
140
  response:
 
141
    body: {string: !!python/unicode '
 
142
 
 
143
 
 
144
        {"msg":"OK","data":{"domain":"easydnstemp.com","id":"28453455"},"status":200}'}
 
145
    headers:
 
146
      access-control-allow-credentials: ['true']
 
147
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
148
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
149
          X-AUTHTOKEN']
 
150
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
151
      access-control-allow-origin: ['"*"']
 
152
      cache-control: ['no-cache, must-revalidate']
 
153
      connection: [close]
 
154
      content-length: ['79']
 
155
      content-type: [application/json]
 
156
      date: ['Mon, 04 Apr 2016 17:48:07 GMT']
 
157
      expires: ['0']
 
158
      pragma: [no-cache]
 
159
      server: [Apache/2.2.16 (Debian)]
 
160
      set-cookie: [easyAPI=4e82co4g9bmepomj1cbf7ok143; path=/, 'api_token=api_5702a8d72c0879.37215579;
 
161
          expires=Mon, 04-Apr-2016 18:03:07 GMT; path=/; domain=sandbox.rest.easydns.net']
 
162
      vary: [Accept-Encoding]
 
163
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
164
    status: {code: 200, message: OK}
 
165
- request:
 
166
    body: '{}'
 
167
    headers:
 
168
      Accept: [application/json]
 
169
      Accept-Encoding: ['gzip, deflate']
 
170
      Connection: [keep-alive]
 
171
      Content-Length: ['2']
 
172
      Content-Type: [application/json]
 
173
      User-Agent: [python-requests/2.9.1]
 
174
    method: GET
 
175
    uri: http://sandbox.rest.easydns.net/zones/records/all/easydnstemp.com?format=json
 
176
  response:
 
177
    body: {string: !!python/unicode '
 
178
 
 
179
 
 
180
        {"tm":1459792091,"data":[{"id":"28453449","domain":"easydnstemp.com","host":"random.fqdntest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
181
        13:48:04"},{"id":"28453450","domain":"easydnstemp.com","host":"random.fulltest","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
182
        13:48:04"},{"id":"28453454","domain":"easydnstemp.com","host":"updated.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
183
        13:48:04"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
184
        13:48:04"},{"id":"28453452","domain":"easydnstemp.com","host":"updated.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
185
        13:48:04"},{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
186
        13:48:04"},{"id":"28453447","domain":"easydnstemp.com","host":"_acme-challenge.full","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
187
        13:48:04"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04
 
188
        11:53:42"},{"id":"28453443","domain":"easydnstemp.com","host":"www","ttl":"0","prio":"0","type":"CNAME","rdata":"easydnstemp.com.","geozone_id":"0","last_mod":"2016-04-04
 
189
        13:41:56"},{"id":"28453442","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"A","rdata":"PARK","geozone_id":"0","last_mod":"2016-04-04
 
190
        13:41:56"},{"id":"28453439","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"NS","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04
 
191
        11:53:42"},{"id":"28453444","domain":"easydnstemp.com","host":"localhost","ttl":"300","prio":"0","type":"A","rdata":"127.0.0.1","geozone_id":"0","last_mod":"2016-04-04
 
192
        13:41:56"},{"id":"28453445","domain":"easydnstemp.com","host":"docs","ttl":"300","prio":"0","type":"CNAME","rdata":"docs.example.com","geozone_id":"0","last_mod":"2016-04-04
 
193
        13:41:56"},{"id":"28453446","domain":"easydnstemp.com","host":"_acme-challenge.fqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
194
        13:48:04"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com.
 
195
        zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04
 
196
        11:53:42"},{"id":"28453448","domain":"easydnstemp.com","host":"_acme-challenge.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
197
        13:48:04"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'}
 
198
    headers:
 
199
      access-control-allow-credentials: ['true']
 
200
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
201
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
202
          X-AUTHTOKEN']
 
203
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
204
      access-control-allow-origin: ['"*"']
 
205
      cache-control: ['no-cache, must-revalidate']
 
206
      connection: [close]
 
207
      content-length: ['2919']
 
208
      content-type: [application/json]
 
209
      date: ['Mon, 04 Apr 2016 17:48:11 GMT']
 
210
      expires: ['0']
 
211
      pragma: [no-cache]
 
212
      server: [Apache/2.2.16 (Debian)]
 
213
      set-cookie: [easyAPI=dq9ogpomvb6igj1kpi26peah93; path=/, 'api_token=api_5702a8db104665.74823596;
 
214
          expires=Mon, 04-Apr-2016 18:03:11 GMT; path=/; domain=sandbox.rest.easydns.net']
 
215
      vary: [Accept-Encoding]
 
216
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
217
    status: {code: 200, message: OK}
 
218
version: 1