File: test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml

package info (click to toggle)
lexicon 3.3.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,580 kB
  • sloc: python: 12,755; sh: 102; makefile: 11
file content (195 lines) | stat: -rw-r--r-- 13,031 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
interactions:
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com
  response:
    body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN
        capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com.
        1521528452 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com.
        1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com.
        1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\ndocs.capsulecd.com.
        1800 IN CNAME docs.example.com.\n_acme-challenge.fqdn.capsulecd.com. 1800
        IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT challengetoken\n_acme-challenge.test.capsulecd.com.
        1800 IN TXT challengetoken\nrandom.fqdntest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.fulltest.capsulecd.com.
        1800 IN TXT challengetoken\nrandom.test.capsulecd.com. 1800 IN TXT challengetoken\nupdated.test.capsulecd.com.
        1800 IN TXT challengetoken\n"}}'}
    headers:
      cache-control: ['max-age=0, private, must-revalidate']
      cf-ray: [3fe63a5bfba2929a-SJC]
      connection: [keep-alive]
      content-length: ['904']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 20 Mar 2018 06:47:32 GMT']
      etag: [W/"740c9212fe06168150cfd054bf9aa506"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      ratelimit-limit: ['5000']
      ratelimit-remaining: ['4769']
      ratelimit-reset: ['1521525195']
      server: [cloudflare]
      set-cookie: ['__cfduid=d6ed0ccec69acd0d3a39f0b09d9a1324d1521528452; expires=Wed,
          20-Mar-19 06:47:32 GMT; path=/; domain=.digitalocean.com; HttpOnly']
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-gateway: [Edge-Gateway]
      x-request-id: [62fa9fdb-9fc8-4d8e-b274-ba8f7efa639a]
      x-response-from: [service]
      x-runtime: ['0.132193']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records
  response:
    body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":13}}'}
    headers:
      cache-control: ['max-age=0, private, must-revalidate']
      cf-ray: [3fe63a5e5ab5933c-SJC]
      connection: [keep-alive]
      content-length: ['2006']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 20 Mar 2018 06:47:33 GMT']
      etag: [W/"f165fb8d1062d1c64dd36d6114dadfe6"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      ratelimit-limit: ['5000']
      ratelimit-remaining: ['4768']
      ratelimit-reset: ['1521525195']
      server: [cloudflare]
      set-cookie: ['__cfduid=d760bf4711677d7364336cf879737bbd21521528452; expires=Wed,
          20-Mar-19 06:47:32 GMT; path=/; domain=.digitalocean.com; HttpOnly']
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-gateway: [Edge-Gateway]
      x-request-id: [fb487721-a018-47e8-9bc1-ebcbeb6167cd]
      x-response-from: [service]
      x-runtime: ['0.128346']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "orig.testfqdn"}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['66']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records
  response:
    body: {string: !!python/unicode '{"domain_record":{"id":38629390,"type":"TXT","name":"orig.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'}
    headers:
      cache-control: ['max-age=0, private, must-revalidate']
      cf-ray: [3fe63a61aaee963d-SJC]
      connection: [keep-alive]
      content-length: ['170']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 20 Mar 2018 06:47:33 GMT']
      etag: ['"9517ede3489556ed7967fc0bc249d36b"']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      ratelimit-limit: ['5000']
      ratelimit-remaining: ['4767']
      ratelimit-reset: ['1521525195']
      server: [cloudflare]
      set-cookie: ['__cfduid=d978e3e6b3a7ab59ac79b7d6859fd08471521528453; expires=Wed,
          20-Mar-19 06:47:33 GMT; path=/; domain=.digitalocean.com; HttpOnly']
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-gateway: [Edge-Gateway]
      x-request-id: [499d06ae-938f-43c7-a142-4098ca746dcc]
      x-response-from: [service]
      x-runtime: ['0.211582']
      x-xss-protection: [1; mode=block]
    status: {code: 201, message: Created}
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['2']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: GET
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records
  response:
    body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629349,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629350,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629351,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629354,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629356,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629375,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629378,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629383,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629387,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null},{"id":38629390,"type":"TXT","name":"orig.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}],"links":{},"meta":{"total":14}}'}
    headers:
      cache-control: ['max-age=0, private, must-revalidate']
      cf-ray: [3fe63a640bdb93ba-SJC]
      connection: [keep-alive]
      content-length: ['2159']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 20 Mar 2018 06:47:34 GMT']
      etag: [W/"c50118e950a3fe567a9c45caebd86d89"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      ratelimit-limit: ['5000']
      ratelimit-remaining: ['4766']
      ratelimit-reset: ['1521525195']
      server: [cloudflare]
      set-cookie: ['__cfduid=d0861b3d02ab7a9c77a793a2d5e4853ad1521528453; expires=Wed,
          20-Mar-19 06:47:33 GMT; path=/; domain=.digitalocean.com; HttpOnly']
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-gateway: [Edge-Gateway]
      x-request-id: [cdd5c049-0264-4f77-8db0-c10cdc57558a]
      x-response-from: [service]
      x-runtime: ['0.157538']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"data": "challengetoken", "type": "TXT", "name": "updated.testfqdn"}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['69']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: PUT
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/38629390
  response:
    body: {string: !!python/unicode '{"domain_record":{"id":38629390,"type":"TXT","name":"updated.testfqdn","data":"challengetoken","priority":null,"port":null,"ttl":1800,"weight":null,"flags":null,"tag":null}}'}
    headers:
      cache-control: ['max-age=0, private, must-revalidate']
      cf-ray: [3fe63a662bab92f4-SJC]
      connection: [keep-alive]
      content-length: ['173']
      content-type: [application/json; charset=utf-8]
      date: ['Tue, 20 Mar 2018 06:47:34 GMT']
      etag: [W/"3ca3292a1a430bdd09867200d75c5504"]
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      ratelimit-limit: ['5000']
      ratelimit-remaining: ['4765']
      ratelimit-reset: ['1521525195']
      server: [cloudflare]
      set-cookie: ['__cfduid=d3a12a9e49c454b6f785cddd4fb03ee771521528454; expires=Wed,
          20-Mar-19 06:47:34 GMT; path=/; domain=.digitalocean.com; HttpOnly']
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
      x-gateway: [Edge-Gateway]
      x-request-id: [29a74ff3-d445-49bd-b8fb-e0376f4961d8]
      x-response-from: [service]
      x-runtime: ['0.330992']
      x-xss-protection: [1; mode=block]
    status: {code: 200, message: OK}
version: 1