~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_update_record_with_fqdn_name_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: '{}'
 
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":1459792023,"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:03 GMT']
 
30
      expires: ['0']
 
31
      pragma: [no-cache]
 
32
      server: [Apache/2.2.16 (Debian)]
 
33
      set-cookie: [easyAPI=roc52euf4p65t6v7v5n0k127j3; path=/, 'api_token=api_5702a8975ebed3.66192911;
 
34
          expires=Mon, 04-Apr-2016 18:02:03 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": "orig.testfqdn",
 
40
      "rdata": "challengetoken", "type": "TXT"}'
 
41
    headers:
 
42
      Accept: [application/json]
 
43
      Accept-Encoding: ['gzip, deflate']
 
44
      Connection: [keep-alive]
 
45
      Content-Length: ['119']
 
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
        {"error":{"code":409,"message":"Record already exists"}}'}
 
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-cache, must-revalidate']
 
63
      connection: [close]
 
64
      content-length: ['58']
 
65
      content-type: [application/json]
 
66
      date: ['Mon, 04 Apr 2016 17:47:07 GMT']
 
67
      expires: ['0']
 
68
      pragma: [no-cache]
 
69
      server: [Apache/2.2.16 (Debian)]
 
70
      set-cookie: [easyAPI=8p6bkrdkcbggda0u6fpu4eitr1; path=/, 'api_token=api_5702a89b3dce26.68854908;
 
71
          expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net']
 
72
      vary: [Accept-Encoding]
 
73
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
74
    status: {code: 409, message: Conflict}
 
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":1459792027,"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:44:03"},{"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:44:03"},{"id":"28453454","domain":"easydnstemp.com","host":"orig.testfull","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
93
        13:44:03"},{"id":"28453451","domain":"easydnstemp.com","host":"random.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
94
        13:44:03"},{"id":"28453452","domain":"easydnstemp.com","host":"orig.test","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
95
        13:44:03"},{"id":"28453453","domain":"easydnstemp.com","host":"orig.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
96
        13:44:03"},{"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
 
97
        13:44:03"},{"id":"28453441","domain":"easydnstemp.com","host":"@","ttl":"0","prio":"0","type":"MX","rdata":"LOCAL.","geozone_id":"0","last_mod":"2016-04-04
 
98
        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
 
99
        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
 
100
        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
 
101
        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
 
102
        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
 
103
        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
 
104
        13:44:03"},{"id":"28453440","domain":"easydnstemp.com","host":"@","ttl":"0","prio":null,"type":"SOA","rdata":"dns1.easydns.com.
 
105
        zone.easydns.com. %%NOW%% 3600 600 604800 10800","geozone_id":"0","last_mod":"2016-04-04
 
106
        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
 
107
        13:44:03"}],"count":16,"total":16,"start":0,"max":1000,"status":200}'}
 
108
    headers:
 
109
      access-control-allow-credentials: ['true']
 
110
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
111
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
112
          X-AUTHTOKEN']
 
113
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
114
      access-control-allow-origin: ['"*"']
 
115
      cache-control: ['no-cache, must-revalidate']
 
116
      connection: [close]
 
117
      content-length: ['2910']
 
118
      content-type: [application/json]
 
119
      date: ['Mon, 04 Apr 2016 17:47:07 GMT']
 
120
      expires: ['0']
 
121
      pragma: [no-cache]
 
122
      server: [Apache/2.2.16 (Debian)]
 
123
      set-cookie: [easyAPI=esgom0nclmgg41aq8mgslu4je3; path=/, 'api_token=api_5702a89b70f2a7.66100066;
 
124
          expires=Mon, 04-Apr-2016 18:02:07 GMT; path=/; domain=sandbox.rest.easydns.net']
 
125
      vary: [Accept-Encoding]
 
126
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
127
    status: {code: 200, message: OK}
 
128
- request:
 
129
    body: '{"host": "updated.testfqdn", "rdata": "challengetoken", "type": "TXT",
 
130
      "ttl": 300}'
 
131
    headers:
 
132
      Accept: [application/json]
 
133
      Accept-Encoding: ['gzip, deflate']
 
134
      Connection: [keep-alive]
 
135
      Content-Length: ['82']
 
136
      Content-Type: [application/json]
 
137
      User-Agent: [python-requests/2.9.1]
 
138
    method: POST
 
139
    uri: http://sandbox.rest.easydns.net/zones/records/28453453?format=json
 
140
  response:
 
141
    body: {string: !!python/unicode '
 
142
 
 
143
 
 
144
        {"msg":"Record updated successfully.","tm":1459792030,"data":{"id":"28453453","domain":"easydnstemp.com","host":"updated.testfqdn","ttl":"300","prio":"0","type":"TXT","rdata":"challengetoken","geozone_id":"0","last_mod":"2016-04-04
 
145
        13:47:10"},"status":200}'}
 
146
    headers:
 
147
      access-control-allow-credentials: ['true']
 
148
      access-control-allow-headers: ['x-requested-with, Content-Type, origin, authorization,
 
149
          accept, client-security-token, HTTP_X_HTTP_METHOD_OVERRIDE, X-AUTH_COMBINED,
 
150
          X-AUTHTOKEN']
 
151
      access-control-allow-methods: ['POST, GET, OPTIONS, DELETE, PUT']
 
152
      access-control-allow-origin: ['"*"']
 
153
      cache-control: ['no-cache, must-revalidate']
 
154
      connection: [close]
 
155
      content-length: ['258']
 
156
      content-type: [application/json]
 
157
      date: ['Mon, 04 Apr 2016 17:47:10 GMT']
 
158
      expires: ['0']
 
159
      pragma: [no-cache]
 
160
      server: [Apache/2.2.16 (Debian)]
 
161
      set-cookie: [easyAPI=iq552rshlbmems09gpd3vj3u97; path=/, 'api_token=api_5702a89e38a066.22050446;
 
162
          expires=Mon, 04-Apr-2016 18:02:10 GMT; path=/; domain=sandbox.rest.easydns.net']
 
163
      vary: [Accept-Encoding]
 
164
      x-powered-by: [PHP/5.3.3-7+squeeze28]
 
165
    status: {code: 200, message: OK}
 
166
version: 1