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

« back to all changes in this revision

Viewing changes to tests/fixtures/cassettes/powerdns/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_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: !!python/unicode '{}'
 
4
    headers:
 
5
      Accept: ['*/*']
 
6
      Accept-Encoding: ['gzip, deflate']
 
7
      Connection: [keep-alive]
 
8
      Content-Length: ['2']
 
9
      Content-Type: [application/json]
 
10
      User-Agent: [python-requests/2.13.0]
 
11
    method: GET
 
12
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
13
  response:
 
14
    body: {string: !!python/unicode '{"account": "", "dnssec": false, "id": "example.com.",
 
15
        "kind": "Master", "last_check": 0, "masters": [], "name": "example.com.",
 
16
        "notified_serial": 0, "rrsets": [{"comments": [], "name": "localhost.example.com.",
 
17
        "records": [{"content": "127.0.0.1", "disabled": false}], "ttl": 600, "type":
 
18
        "A"}, {"comments": [], "name": "docs.example.com.", "records": [{"content":
 
19
        "docs.example.com.", "disabled": false}], "ttl": 600, "type": "CNAME"}, {"comments":
 
20
        [], "name": "_acme-challenge.fqdn.example.com.", "records": [{"content": "\"challengetoken\"",
 
21
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
22
        "_acme-challenge.full.example.com.", "records": [{"content": "\"challengetoken\"",
 
23
        "disabled": false}], "ttl": 600, "type": "TXT"}, {"comments": [], "name":
 
24
        "example.com.", "records": [{"content": "ns-internal.hhome.me. admin.hhome.me.
 
25
        2017033111 28800 7200 604800 86400", "disabled": false}], "ttl": 86400, "type":
 
26
        "SOA"}], "serial": 2017033111, "soa_edit": "", "soa_edit_api": "", "url":
 
27
        "api/v1/servers/localhost/zones/example.com."}'}
 
28
    headers:
 
29
      access-control-allow-origin: ['*']
 
30
      connection: [keep-alive]
 
31
      content-length: ['1057']
 
32
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
33
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
34
          'unsafe-inline']
 
35
      content-type: [application/json]
 
36
      date: ['Fri, 31 Mar 2017 22:36:40 GMT']
 
37
      server: [nginx]
 
38
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
39
      transfer-encoding: [chunked]
 
40
      vary: [Accept-Encoding]
 
41
      x-content-type-options: [nosniff, nosniff]
 
42
      x-frame-options: [deny, SAMEORIGIN]
 
43
      x-permitted-cross-domain-policies: [none]
 
44
      x-xss-protection: [1; mode=block, 1; mode=block]
 
45
    status: {code: 200, message: OK}
 
46
- request:
 
47
    body: !!python/unicode '{"rrsets": [{"records": [{"content": "\"challengetoken\"",
 
48
      "disabled": false}], "changetype": "REPLACE", "type": "TXT", "name": "_acme-challenge.test.example.com.",
 
49
      "ttl": 600}]}'
 
50
    headers:
 
51
      Accept: ['*/*']
 
52
      Accept-Encoding: ['gzip, deflate']
 
53
      Connection: [keep-alive]
 
54
      Content-Length: ['178']
 
55
      Content-Type: [application/json]
 
56
      User-Agent: [python-requests/2.13.0]
 
57
    method: PATCH
 
58
    uri: https://dnsadmin.hhome.me/api/v1/servers/localhost/zones/example.com
 
59
  response:
 
60
    body: {string: !!python/unicode ''}
 
61
    headers:
 
62
      access-control-allow-origin: ['*']
 
63
      connection: [keep-alive]
 
64
      content-length: ['0']
 
65
      content-security-policy: [default-src 'self'; style-src 'self' 'unsafe-inline']
 
66
      content-security-policy-report-only: [default-src 'self'; script-src 'self'
 
67
          'unsafe-inline']
 
68
      date: ['Fri, 31 Mar 2017 22:36:40 GMT']
 
69
      server: [nginx]
 
70
      strict-transport-security: [max-age=15768000; includeSubDomains]
 
71
      x-content-type-options: [nosniff, nosniff]
 
72
      x-frame-options: [deny, SAMEORIGIN]
 
73
      x-permitted-cross-domain-policies: [none]
 
74
      x-xss-protection: [1; mode=block, 1; mode=block]
 
75
    status: {code: 204, message: No Content}
 
76
version: 1