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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/nsone/IntegrationTests/test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.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.nsone.net/v1/zones/capsulecd.com
 
13
  response:
 
14
    body: {string: !!python/unicode '{"nx_ttl":3600,"retry":7200,"zone":"capsulecd.com","network_pools":["p06"],"primary":{"enabled":false,"secondaries":[]},"refresh":43200,"expiry":1209600,"dns_servers":["dns1.p06.nsone.net","dns2.p06.nsone.net","dns3.p06.nsone.net","dns4.p06.nsone.net"],"records":[{"domain":"capsulecd.com","short_answers":["dns1.p06.nsone.net","dns2.p06.nsone.net","dns3.p06.nsone.net","dns4.p06.nsone.net"],"ttl":3600,"tier":1,"type":"NS","id":"56f85f4e9f939b00066237b0"},{"domain":"updated.test.capsulecd.com","short_answers":["challengetoken"],"link":null,"ttl":3600,"tier":1,"type":"TXT","id":"56f87ab459272400060f8ae4"}],"meta":{},"link":null,"ttl":3600,"id":"56f85f4e9f939b00066237ab","hostmaster":"hostmaster@nsone.net","networks":[0],"pool":"p06"}
 
15
 
 
16
        '}
 
17
    headers:
 
18
      cache-control: [no-cache]
 
19
      connection: [keep-alive]
 
20
      content-length: ['740']
 
21
      content-type: [application/json]
 
22
      date: ['Wed, 30 Mar 2016 01:59:27 GMT']
 
23
      etag: [W/"c56cf31101dcd3e7eb1f2486be864e51226e9ce1"]
 
24
      expires: ['0']
 
25
      pragma: [no-cache]
 
26
      server: [NSONE API v1]
 
27
      x-ratelimit-by: [customer]
 
28
      x-ratelimit-limit: ['900']
 
29
      x-ratelimit-period: ['300']
 
30
      x-ratelimit-remaining: ['899']
 
31
    status: {code: 200, message: OK}
 
32
- request:
 
33
    body: '{"domain": "localhost.capsulecd.com", "type": "A", "answers": [{"answer":
 
34
      ["127.0.0.1"]}], "zone": "capsulecd.com"}'
 
35
    headers:
 
36
      Accept: [application/json]
 
37
      Accept-Encoding: ['gzip, deflate']
 
38
      Connection: [keep-alive]
 
39
      Content-Length: ['115']
 
40
      Content-Type: [application/json]
 
41
      User-Agent: [python-requests/2.9.1]
 
42
    method: PUT
 
43
    uri: https://api.nsone.net/v1/zones/capsulecd.com/localhost.capsulecd.com/A
 
44
  response:
 
45
    body: {string: !!python/unicode '{"domain":"localhost.capsulecd.com","zone":"capsulecd.com","use_client_subnet":true,"answers":[{"answer":["127.0.0.1"],"id":"56fb331f5927240006115bad"}],"id":"56fb331f5927240006115bae","regions":{},"meta":{},"link":null,"filters":[],"ttl":3600,"tier":1,"type":"A","networks":[0]}
 
46
 
 
47
        '}
 
48
    headers:
 
49
      cache-control: [no-cache]
 
50
      connection: [keep-alive]
 
51
      content-length: ['280']
 
52
      content-type: [application/json]
 
53
      date: ['Wed, 30 Mar 2016 01:59:59 GMT']
 
54
      expires: ['0']
 
55
      pragma: [no-cache]
 
56
      server: [NSONE API v1]
 
57
      transfer-encoding: [chunked]
 
58
      x-ratelimit-by: [customer]
 
59
      x-ratelimit-limit: ['100']
 
60
      x-ratelimit-period: ['200']
 
61
      x-ratelimit-remaining: ['99']
 
62
    status: {code: 200, message: OK}
 
63
version: 1