File: test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.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 (133 lines) | stat: -rw-r--r-- 8,324 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
interactions:
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: ['*/*']
      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.cloudflare.com/client/v4/zones?status=active&name=capsulecd.com
  response:
    body: {string: !!python/unicode '{"result":[{"id":"fac516c650e5a737bdc3e1e3dc1047f3","name":"capsulecd.com","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["dawn.ns.cloudflare.com","owen.ns.cloudflare.com"],"original_name_servers":["ns1glr.name.com","ns2bls.name.com","ns3nrz.name.com","ns4hny.name.com"],"original_registrar":null,"original_dnshost":null,"modified_on":"2018-03-19T18:52:18.517052Z","created_on":"2016-03-09T07:39:40.476430Z","meta":{"step":4,"wildcard_proxiable":false,"custom_certificate_quota":0,"page_rule_quota":3,"phishing_detected":false,"multiple_railguns_allowed":false},"owner":{"id":"521a961001d9333c8191f53a9f70eb31","type":"user","email":"darkmethodz@gmail.com"},"account":{"id":"b8a8f2a19ca47cd6e934b5d3f3d4c7a5","name":"darkmethodz@gmail.com"},"permissions":["#access:edit","#access:read","#analytics:read","#app:edit","#billing:edit","#billing:read","#cache_purge:edit","#dns_records:edit","#dns_records:read","#lb:edit","#lb:read","#logs:read","#member:edit","#member:read","#organization:edit","#organization:read","#ssl:edit","#ssl:read","#subscription:edit","#subscription:read","#waf:edit","#waf:read","#worker:edit","#worker:read","#zone:edit","#zone:read","#zone_settings:edit","#zone_settings:read"],"plan":{"id":"0feeeeeeeeeeeeeeeeeeeeeeeeeeeeee","name":"Free
        Website","price":0,"currency":"USD","frequency":"","is_subscribed":true,"can_subscribe":false,"legacy_id":"free","legacy_discount":false,"externally_managed":false}}],"result_info":{"page":1,"per_page":20,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'}
    headers:
      cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
      cf-ray: [3fe22b043c8c6bfe-SJC]
      connection: [keep-alive]
      content-length: ['1593']
      content-type: [application/json]
      date: ['Mon, 19 Mar 2018 18:58:01 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['Sun, 25 Jan 1981 05:00:00 GMT']
      pragma: [no-cache]
      served-in-seconds: ['0.046']
      server: [cloudflare]
      set-cookie: ['__cfduid=d133cbbaa85cc95fc2228693af15aae3a1521485880; expires=Tue,
          19-Mar-19 18:58:00 GMT; path=/; domain=.cloudflare.com; HttpOnly']
      strict-transport-security: [max-age=15780000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop.capsulecd.com",
      "ttl": 3600}'
    headers:
      Accept: ['*/*']
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['103']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records
  response:
    body: {string: !!python/unicode '{"result":{"id":"b0ce2daaed6d0939bfd9bb6d295dfb39","type":"TXT","name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:58:01.287352Z","created_on":"2018-03-19T18:58:01.287352Z","meta":{"auto_added":false,"managed_by_apps":false}},"success":true,"errors":[],"messages":[]}'}
    headers:
      cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
      cf-ray: [3fe22b055d0e6dc6-SJC]
      connection: [keep-alive]
      content-length: ['449']
      content-type: [application/json]
      date: ['Mon, 19 Mar 2018 18:58:01 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['Sun, 25 Jan 1981 05:00:00 GMT']
      pragma: [no-cache]
      served-in-seconds: ['0.062']
      server: [cloudflare]
      set-cookie: ['__cfduid=d6c3d56cd4de03a2dc4ddcf424921ed621521485881; expires=Tue,
          19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly']
      strict-transport-security: [max-age=15780000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"content": "challengetoken", "type": "TXT", "name": "_acme-challenge.noop.capsulecd.com",
      "ttl": 3600}'
    headers:
      Accept: ['*/*']
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['103']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records
  response:
    body: {string: !!python/unicode '{"success":false,"errors":[{"code":81057,"message":"The
        record already exists."}],"messages":[],"result":null}'}
    headers:
      cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
      cf-ray: [3fe22b067e6d6dc0-SJC]
      connection: [keep-alive]
      content-type: [application/json]
      date: ['Mon, 19 Mar 2018 18:58:01 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['Sun, 25 Jan 1981 05:00:00 GMT']
      pragma: [no-cache]
      served-in-seconds: ['0.109']
      server: [cloudflare]
      set-cookie: ['__cfduid=d60e7d29d2a61b088247af512994a2f5a1521485881; expires=Tue,
          19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly']
      strict-transport-security: [max-age=15780000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
    status: {code: 400, message: Bad Request}
- request:
    body: !!python/unicode '{}'
    headers:
      Accept: ['*/*']
      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.cloudflare.com/client/v4/zones/fac516c650e5a737bdc3e1e3dc1047f3/dns_records?per_page=100&type=TXT&name=_acme-challenge.noop.capsulecd.com
  response:
    body: {string: !!python/unicode '{"result":[{"id":"b0ce2daaed6d0939bfd9bb6d295dfb39","type":"TXT","name":"_acme-challenge.noop.capsulecd.com","content":"challengetoken","proxiable":false,"proxied":false,"ttl":3600,"locked":false,"zone_id":"fac516c650e5a737bdc3e1e3dc1047f3","zone_name":"capsulecd.com","modified_on":"2018-03-19T18:58:01.287352Z","created_on":"2018-03-19T18:58:01.287352Z","meta":{"auto_added":false,"managed_by_apps":false}}],"result_info":{"page":1,"per_page":100,"total_pages":1,"count":1,"total_count":1},"success":true,"errors":[],"messages":[]}'}
    headers:
      cache-control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
      cf-ray: [3fe22b0799396e02-SJC]
      connection: [keep-alive]
      content-length: ['533']
      content-type: [application/json]
      date: ['Mon, 19 Mar 2018 18:58:01 GMT']
      expect-ct: ['max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"']
      expires: ['Sun, 25 Jan 1981 05:00:00 GMT']
      pragma: [no-cache]
      served-in-seconds: ['0.096']
      server: [cloudflare]
      set-cookie: ['__cfduid=d90e1aa7ee1253767ef36bde12b7cb56a1521485881; expires=Tue,
          19-Mar-19 18:58:01 GMT; path=/; domain=.cloudflare.com; HttpOnly']
      strict-transport-security: [max-age=15780000; includeSubDomains]
      transfer-encoding: [chunked]
      x-content-type-options: [nosniff]
      x-frame-options: [SAMEORIGIN]
    status: {code: 200, message: OK}
version: 1