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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/digitalocean/IntegrationTests/test_Provider_when_calling_update_record_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: https://api.digitalocean.com/v2/domains/capsulecd.com
 
13
  response:
 
14
    body: {string: !!python/unicode '{"domain":{"name":"capsulecd.com","ttl":1800,"zone_file":"$ORIGIN
 
15
        capsulecd.com.\n$TTL 1800\ncapsulecd.com. IN SOA ns1.digitalocean.com. hostmaster.capsulecd.com.
 
16
        1460669844 10800 3600 604800 1800\ncapsulecd.com. 1800 IN NS ns1.digitalocean.com.\ncapsulecd.com.
 
17
        1800 IN NS ns2.digitalocean.com.\ncapsulecd.com. 1800 IN NS ns3.digitalocean.com.\ncapsulecd.com.
 
18
        1800 IN A 127.0.0.1\nlocalhost.capsulecd.com. 1800 IN A 127.0.0.1\n_acme-challenge.fqdn.capsulecd.com.
 
19
        1800 IN TXT challengetoken\n_acme-challenge.full.capsulecd.com. 1800 IN TXT
 
20
        challengetoken\n_acme-challenge.test.capsulecd.com. 1800 IN TXT challengetoken\ndocs.capsulecd.com.
 
21
        1800 IN CNAME docs.example.com.\nrandom.fqdntest.capsulecd.com. 1800 IN TXT
 
22
        challengetoken\nrandom.fulltest.capsulecd.com. 1800 IN TXT challengetoken\nrandom.test.capsulecd.com.
 
23
        1800 IN TXT challengetoken\n"}}'}
 
24
    headers:
 
25
      cache-control: ['max-age=0, private, must-revalidate']
 
26
      cf-ray: [293a4f9f5e302a5b-SEA]
 
27
      connection: [keep-alive]
 
28
      content-length: ['848']
 
29
      content-type: [application/json; charset=utf-8]
 
30
      date: ['Thu, 14 Apr 2016 21:39:32 GMT']
 
31
      ratelimit-limit: ['5000']
 
32
      ratelimit-remaining: ['4974']
 
33
      ratelimit-reset: ['1460673047']
 
34
      server: [cloudflare-nginx]
 
35
      set-cookie: ['__cfduid=dcca474569789099b7fd39acb5eb191761460669972; expires=Fri,
 
36
          14-Apr-17 21:39:32 GMT; path=/; domain=.digitalocean.com; HttpOnly']
 
37
      status: [200 OK]
 
38
      x-content-type-options: [nosniff]
 
39
      x-frame-options: [SAMEORIGIN]
 
40
      x-request-id: [2f1fe58b-4e16-4088-92d3-99bb0ac52d17]
 
41
      x-runtime: ['0.279806']
 
42
      x-xss-protection: [1; mode=block]
 
43
    status: {code: 200, message: OK}
 
44
- request:
 
45
    body: '{"data": "challengetoken", "type": "TXT", "name": "orig.test"}'
 
46
    headers:
 
47
      Accept: [application/json]
 
48
      Accept-Encoding: ['gzip, deflate']
 
49
      Connection: [keep-alive]
 
50
      Content-Length: ['62']
 
51
      Content-Type: [application/json]
 
52
      User-Agent: [python-requests/2.9.1]
 
53
    method: POST
 
54
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records
 
55
  response:
 
56
    body: {string: !!python/unicode '{"domain_record":{"id":13310517,"type":"TXT","name":"orig.test","data":"challengetoken","priority":null,"port":null,"weight":null}}'}
 
57
    headers:
 
58
      cache-control: ['max-age=0, private, must-revalidate']
 
59
      cf-ray: [293a4fbafc9c2a73-SEA]
 
60
      connection: [keep-alive]
 
61
      content-type: [application/json; charset=utf-8]
 
62
      date: ['Thu, 14 Apr 2016 21:39:37 GMT']
 
63
      etag: ['"a0bf9234bd63275b5ff05128da0d5e96"']
 
64
      ratelimit-limit: ['5000']
 
65
      ratelimit-remaining: ['4971']
 
66
      ratelimit-reset: ['1460673047']
 
67
      server: [cloudflare-nginx]
 
68
      set-cookie: ['__cfduid=df8dbfc083c19cbb983f89e3370b64d001460669976; expires=Fri,
 
69
          14-Apr-17 21:39:36 GMT; path=/; domain=.digitalocean.com; HttpOnly']
 
70
      status: [201 Created]
 
71
      x-content-type-options: [nosniff]
 
72
      x-frame-options: [SAMEORIGIN]
 
73
      x-request-id: [8b16e652-d576-47ed-b941-0addd44c6fe5]
 
74
      x-runtime: ['0.114153']
 
75
      x-xss-protection: [1; mode=block]
 
76
    status: {code: 201, message: Created}
 
77
- request:
 
78
    body: '{}'
 
79
    headers:
 
80
      Accept: [application/json]
 
81
      Accept-Encoding: ['gzip, deflate']
 
82
      Connection: [keep-alive]
 
83
      Content-Length: ['2']
 
84
      Content-Type: [application/json]
 
85
      User-Agent: [python-requests/2.9.1]
 
86
    method: GET
 
87
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records
 
88
  response:
 
89
    body: {string: !!python/unicode '{"domain_records":[{"id":13310015,"type":"NS","name":"@","data":"ns1.digitalocean.com","priority":null,"port":null,"weight":null},{"id":13310016,"type":"NS","name":"@","data":"ns2.digitalocean.com","priority":null,"port":null,"weight":null},{"id":13310017,"type":"NS","name":"@","data":"ns3.digitalocean.com","priority":null,"port":null,"weight":null},{"id":13310018,"type":"A","name":"@","data":"127.0.0.1","priority":null,"port":null,"weight":null},{"id":13310404,"type":"A","name":"localhost","data":"127.0.0.1","priority":null,"port":null,"weight":null},{"id":13310405,"type":"TXT","name":"_acme-challenge.fqdn","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310406,"type":"TXT","name":"_acme-challenge.full","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310407,"type":"TXT","name":"_acme-challenge.test","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310497,"type":"CNAME","name":"docs","data":"docs.example.com","priority":null,"port":null,"weight":null},{"id":13310499,"type":"TXT","name":"random.fqdntest","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310500,"type":"TXT","name":"random.fulltest","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310501,"type":"TXT","name":"random.test","data":"challengetoken","priority":null,"port":null,"weight":null},{"id":13310517,"type":"TXT","name":"orig.test","data":"challengetoken","priority":null,"port":null,"weight":null}],"links":{},"meta":{"total":13}}'}
 
90
    headers:
 
91
      cache-control: ['max-age=0, private, must-revalidate']
 
92
      cf-ray: [293a4fbdd4142a5b-SEA]
 
93
      connection: [keep-alive]
 
94
      content-length: ['1548']
 
95
      content-type: [application/json; charset=utf-8]
 
96
      date: ['Thu, 14 Apr 2016 21:39:37 GMT']
 
97
      ratelimit-limit: ['5000']
 
98
      ratelimit-remaining: ['4970']
 
99
      ratelimit-reset: ['1460673047']
 
100
      server: [cloudflare-nginx]
 
101
      set-cookie: ['__cfduid=dff7aeef00c6f87e6f5b79ca076d35b3d1460669977; expires=Fri,
 
102
          14-Apr-17 21:39:37 GMT; path=/; domain=.digitalocean.com; HttpOnly']
 
103
      status: [200 OK]
 
104
      x-content-type-options: [nosniff]
 
105
      x-frame-options: [SAMEORIGIN]
 
106
      x-request-id: [a9ab3c55-0227-4b59-aab5-4ab7acf8ea5c]
 
107
      x-runtime: ['0.070807']
 
108
      x-xss-protection: [1; mode=block]
 
109
    status: {code: 200, message: OK}
 
110
- request:
 
111
    body: '{"data": "challengetoken", "type": "TXT", "name": "updated.test"}'
 
112
    headers:
 
113
      Accept: [application/json]
 
114
      Accept-Encoding: ['gzip, deflate']
 
115
      Connection: [keep-alive]
 
116
      Content-Length: ['65']
 
117
      Content-Type: [application/json]
 
118
      User-Agent: [python-requests/2.9.1]
 
119
    method: PUT
 
120
    uri: https://api.digitalocean.com/v2/domains/capsulecd.com/records/13310517
 
121
  response:
 
122
    body: {string: !!python/unicode '{"domain_record":{"id":13310517,"type":"TXT","name":"updated.test","data":"challengetoken","priority":null,"port":null,"weight":null}}'}
 
123
    headers:
 
124
      cache-control: ['max-age=0, private, must-revalidate']
 
125
      cf-ray: [293a4fd9a8aa0514-SEA]
 
126
      connection: [keep-alive]
 
127
      content-length: ['134']
 
128
      content-type: [application/json; charset=utf-8]
 
129
      date: ['Thu, 14 Apr 2016 21:39:41 GMT']
 
130
      ratelimit-limit: ['5000']
 
131
      ratelimit-remaining: ['4965']
 
132
      ratelimit-reset: ['1460673047']
 
133
      server: [cloudflare-nginx]
 
134
      set-cookie: ['__cfduid=d63e24637e30f270e2e63c1a8d04452ce1460669981; expires=Fri,
 
135
          14-Apr-17 21:39:41 GMT; path=/; domain=.digitalocean.com; HttpOnly']
 
136
      status: [200 OK]
 
137
      transfer-encoding: [chunked]
 
138
      x-content-type-options: [nosniff]
 
139
      x-frame-options: [SAMEORIGIN]
 
140
      x-request-id: [cf1158c5-de38-4f40-bcb0-d94dc1878290]
 
141
      x-runtime: ['0.132877']
 
142
      x-xss-protection: [1; mode=block]
 
143
    status: {code: 200, message: OK}
 
144
version: 1