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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/cloudxns/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: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format":
 
4
      "json"}'
 
5
    headers:
 
6
      API-FORMAT: [json]
 
7
      API-HMAC: [e2558dcce10e8dc2a704a6ee1e83e8ec]
 
8
      API-KEY: [c34e4c5a884101c4c2be3737af8d3d08]
 
9
      API-REQUEST-DATE: ['Wed Jun 08 00:14:21 2016']
 
10
      Accept: ['*/*']
 
11
      Accept-Encoding: ['gzip, deflate']
 
12
      Connection: [keep-alive]
 
13
      Content-Length: ['86']
 
14
      User-Agent: [python-requests/2.9.1]
 
15
    method: GET
 
16
    uri: https://www.cloudxns.net/api2/domain
 
17
  response:
 
18
    body: {string: !!python/unicode '{"code":1,"message":"success","total":"1","data":[{"id":"89415","domain":"capsulecd.com.","status":"ok","level":"3","take_over_status":"no","create_time":"2016-06-08
 
19
        14:49:10","update_time":"2016-06-08 14:57:48","ttl":"600"}]}'}
 
20
    headers:
 
21
      connection: [keep-alive]
 
22
      content-length: ['226']
 
23
      content-type: [text/html; charset=utf-8]
 
24
      date: ['Wed, 08 Jun 2016 07:14:29 GMT']
 
25
      server: [Tengine]
 
26
      set-cookie: ['CloudXNS_TOKEN=826605e6d0da6348612845bb41113cd8; expires=Wed,
 
27
          08-Jun-2016 17:14:29 GMT; path=/']
 
28
      vary: [Accept-Encoding]
 
29
    status: {code: 200, message: OK}
 
30
- request:
 
31
    body: '{"format": "json", "login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53",
 
32
      "value": "challengetoken", "line_id": 1, "host": "delete.testfilt", "type":
 
33
      "TXT", "domain_id": "89415"}'
 
34
    headers:
 
35
      API-FORMAT: [json]
 
36
      API-HMAC: [1eb466fdefcf55b9196e1e6e639a4007]
 
37
      API-KEY: [c34e4c5a884101c4c2be3737af8d3d08]
 
38
      API-REQUEST-DATE: ['Wed Jun 08 00:15:07 2016']
 
39
      Accept: ['*/*']
 
40
      Accept-Encoding: ['gzip, deflate']
 
41
      Connection: [keep-alive]
 
42
      Content-Length: ['191']
 
43
      User-Agent: [python-requests/2.9.1]
 
44
    method: POST
 
45
    uri: https://www.cloudxns.net/api2/record
 
46
  response:
 
47
    body: {string: !!python/unicode '{"code":1,"message":"success","record_id":[1373553]}'}
 
48
    headers:
 
49
      connection: [keep-alive]
 
50
      content-length: ['52']
 
51
      content-type: [text/html; charset=utf-8]
 
52
      date: ['Wed, 08 Jun 2016 07:15:09 GMT']
 
53
      server: [Tengine]
 
54
      vary: [Accept-Encoding]
 
55
    status: {code: 200, message: OK}
 
56
- request:
 
57
    body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format":
 
58
      "json"}'
 
59
    headers:
 
60
      API-FORMAT: [json]
 
61
      API-HMAC: [4253eaa32948cf83a507ecf61061c30a]
 
62
      API-KEY: [c34e4c5a884101c4c2be3737af8d3d08]
 
63
      API-REQUEST-DATE: ['Wed Jun 08 00:15:45 2016']
 
64
      Accept: ['*/*']
 
65
      Accept-Encoding: ['gzip, deflate']
 
66
      Connection: [keep-alive]
 
67
      Content-Length: ['86']
 
68
      User-Agent: [python-requests/2.9.1]
 
69
    method: GET
 
70
    uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0
 
71
  response:
 
72
    body: {string: !!python/unicode '{"code":1,"message":"success","total":"15","offset":0,"row_num":2000,"data":[{"record_id":"1373553","host_id":"1155561","host":"delete.testfilt","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
73
        15:15:09","update_time":"2016-06-08 15:15:09"},{"record_id":"1373555","host_id":"1155563","host":"delete.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
74
        15:15:11","update_time":"2016-06-08 15:15:11"},{"record_id":"1373557","host_id":"1155565","host":"delete.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
75
        15:15:12","update_time":"2016-06-08 15:15:12"},{"record_id":"1373559","host_id":"1155567","host":"delete.testid","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
76
        15:15:13","update_time":"2016-06-08 15:15:14"},{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08
 
77
        15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08
 
78
        15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373567","host_id":"1155575","host":"orig.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
79
        15:15:23","update_time":"2016-06-08 15:15:23"},{"record_id":"1373569","host_id":"1155577","host":"orig.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
80
        15:15:26","update_time":"2016-06-08 15:15:26"},{"record_id":"1373571","host_id":"1155579","host":"orig.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
81
        15:15:27","update_time":"2016-06-08 15:15:27"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
82
        15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
83
        15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
84
        15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
85
        15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
86
        15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
87
        15:15:07","update_time":"2016-06-08 15:15:07"}]}'}
 
88
    headers:
 
89
      connection: [keep-alive]
 
90
      content-length: ['4400']
 
91
      content-type: [text/html; charset=utf-8]
 
92
      date: ['Wed, 08 Jun 2016 07:15:47 GMT']
 
93
      server: [Tengine]
 
94
      vary: [Accept-Encoding]
 
95
    status: {code: 200, message: OK}
 
96
- request:
 
97
    body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format":
 
98
      "json"}'
 
99
    headers:
 
100
      API-FORMAT: [json]
 
101
      API-HMAC: [a92ac1335f8924c8669c996db8f5554e]
 
102
      API-KEY: [c34e4c5a884101c4c2be3737af8d3d08]
 
103
      API-REQUEST-DATE: ['Wed Jun 08 00:16:09 2016']
 
104
      Accept: ['*/*']
 
105
      Accept-Encoding: ['gzip, deflate']
 
106
      Connection: [keep-alive]
 
107
      Content-Length: ['86']
 
108
      User-Agent: [python-requests/2.9.1]
 
109
    method: DELETE
 
110
    uri: https://www.cloudxns.net/api2/record/1373553/89415
 
111
  response:
 
112
    body: {string: !!python/unicode '{"code":1,"message":"success"}'}
 
113
    headers:
 
114
      connection: [keep-alive]
 
115
      content-length: ['30']
 
116
      content-type: [text/html; charset=utf-8]
 
117
      date: ['Wed, 08 Jun 2016 07:16:12 GMT']
 
118
      server: [Tengine]
 
119
      set-cookie: ['CloudXNS_TOKEN=4efd27f29683940e888e1d60b6e1c883; expires=Wed,
 
120
          08-Jun-2016 17:16:12 GMT; path=/']
 
121
      vary: [Accept-Encoding]
 
122
    status: {code: 200, message: OK}
 
123
- request:
 
124
    body: '{"login_token": "c34e4c5a884101c4c2be3737af8d3d08,81d216fcd15eeb53", "format":
 
125
      "json"}'
 
126
    headers:
 
127
      API-FORMAT: [json]
 
128
      API-HMAC: [7c8dff50f719b1dc263e5eb488ff1f53]
 
129
      API-KEY: [c34e4c5a884101c4c2be3737af8d3d08]
 
130
      API-REQUEST-DATE: ['Wed Jun 08 00:16:32 2016']
 
131
      Accept: ['*/*']
 
132
      Accept-Encoding: ['gzip, deflate']
 
133
      Connection: [keep-alive]
 
134
      Content-Length: ['86']
 
135
      User-Agent: [python-requests/2.9.1]
 
136
    method: GET
 
137
    uri: https://www.cloudxns.net/api2/record/89415?host_id=0&row_num=2000&offset=0
 
138
  response:
 
139
    body: {string: !!python/unicode '{"code":1,"message":"success","total":"11","offset":0,"row_num":2000,"data":[{"record_id":"1373545","host_id":"1155553","host":"docs","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"docs.example.com.","ttl":"600","type":"CNAME","status":"ok","create_time":"2016-06-08
 
140
        15:15:00","update_time":"2016-06-08 15:15:00"},{"record_id":"1373543","host_id":"1155551","host":"localhost","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"127.0.0.1","ttl":"600","type":"A","status":"ok","create_time":"2016-06-08
 
141
        15:14:58","update_time":"2016-06-08 15:14:58"},{"record_id":"1373561","host_id":"1155569","host":"random.fqdntest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
142
        15:15:15","update_time":"2016-06-08 15:15:15"},{"record_id":"1373563","host_id":"1155571","host":"random.fulltest","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
143
        15:15:17","update_time":"2016-06-08 15:15:17"},{"record_id":"1373565","host_id":"1155573","host":"random.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
144
        15:15:19","update_time":"2016-06-08 15:15:19"},{"record_id":"1373567","host_id":"1155583","host":"updated.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
145
        15:16:23","update_time":"2016-06-08 15:16:23"},{"record_id":"1373569","host_id":"1155585","host":"updated.testfqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
146
        15:16:25","update_time":"2016-06-08 15:16:25"},{"record_id":"1373571","host_id":"1155587","host":"updated.testfull","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
147
        15:16:28","update_time":"2016-06-08 15:16:28"},{"record_id":"1373547","host_id":"1155555","host":"_acme-challenge.fqdn","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
148
        15:15:02","update_time":"2016-06-08 15:15:02"},{"record_id":"1373549","host_id":"1155557","host":"_acme-challenge.full","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
149
        15:15:04","update_time":"2016-06-08 15:15:04"},{"record_id":"1373551","host_id":"1155559","host":"_acme-challenge.test","line_id":"1","line_zh":"\u5168\u7f51\u9ed8\u8ba4","line_en":"DEFAULT","mx":null,"value":"\"challengetoken\"","ttl":"600","type":"TXT","status":"ok","create_time":"2016-06-08
 
150
        15:15:07","update_time":"2016-06-08 15:15:07"}]}'}
 
151
    headers:
 
152
      connection: [keep-alive]
 
153
      content-length: ['3251']
 
154
      content-type: [text/html; charset=utf-8]
 
155
      date: ['Wed, 08 Jun 2016 07:16:33 GMT']
 
156
      server: [Tengine]
 
157
      transfer-encoding: [chunked]
 
158
      vary: [Accept-Encoding]
 
159
    status: {code: 200, message: OK}
 
160
version: 1