File: test_provider_when_calling_list_records_should_handle_record_sets.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 (151 lines) | stat: -rw-r--r-- 14,831 bytes parent folder | download | duplicates (5)
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
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.dns.constellix.com/v1/domains/
  response:
    body: {string: !!python/unicode '[{"id":23906,"name":"example.org","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010125,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2018-04-17T20:37:35Z","modifiedTs":"2018-04-17T20:38:26Z","typeId":1,"domainTags":[],"folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"","version":23,"status":"ACTIVE","tags":[],"contactIds":[]},{"id":20063,"name":"actionkit.com","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010107,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2018-03-28T15:56:03Z","modifiedTs":"2018-04-15T03:39:50Z","typeId":1,"domainTags":[],"folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"","version":6,"status":"ACTIVE","tags":null,"contactIds":[]},{"id":20064,"name":"dk.actionkit.com","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010103,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2018-03-28T15:56:03Z","modifiedTs":"2018-04-05T15:11:13Z","typeId":1,"domainTags":[],"folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"","version":2,"status":"ACTIVE","tags":null,"contactIds":[]},{"id":20234,"name":"actionk.it","soa":{"primaryNameserver":"ns11.constellix.com.","email":"dns.constellix.com.","ttl":86400,"serial":2015010102,"refresh":43200,"retry":3600,"expire":1209600,"negCache":180},"createdTs":"2018-04-03T04:35:04Z","modifiedTs":"2018-04-03T04:35:05Z","typeId":1,"domainTags":[],"folder":null,"hasGtdRegions":false,"hasGeoIP":false,"nameserverGroup":1,"nameservers":["ns11.constellix.com.","ns21.constellix.com.","ns31.constellix.com.","ns41.constellix.net.","ns51.constellix.net.","ns61.constellix.net."],"note":"","version":1,"status":"ACTIVE","tags":null,"contactIds":[]}]'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 17 Apr 2018 20:38:28 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=9EA7DFB7FA9F1DB3BE13EE818DE6B86D; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"roundRobin": [{"disableFlag": false, "value": "challengetoken1"}],
      "name": "_acme-challenge.listrecordset", "ttl": 3600}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['122']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.dns.constellix.com/v1/domains/23906/records/TXT/
  response:
    body: {string: !!python/unicode '[{"id":92026,"type":"TXT","recordType":"txt","name":"_acme-challenge.listrecordset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997508562,"value":[{"value":"\"challengetoken1\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken1\"","disableFlag":false}]}]'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 17 Apr 2018 20:38:28 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=CF8C67F55F0767A868A69841F45604F9; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"roundRobin": [{"disableFlag": false, "value": "challengetoken2"}],
      "name": "_acme-challenge.listrecordset", "ttl": 3600}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['122']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: POST
    uri: https://api.dns.constellix.com/v1/domains/23906/records/TXT/
  response:
    body: {string: !!python/unicode '{"errors":["\"TXT\" record with name \"_acme-challenge.listrecordset\"
        in GTD Region \"Default\" of domain \"example.org\" already exists"]}'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=utf-8]
      date: ['Tue, 17 Apr 2018 20:38:29 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=B8FAA55E4622139417C59E6F2FDB8729; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    status: {code: 400, message: Bad Request}
- 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.dns.constellix.com/v1/domains/23906/records/TXT/
  response:
    body: {string: !!python/unicode '[{"id":92013,"type":"TXT","recordType":"txt","name":"_acme-challenge.createrecordset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997479715,"value":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}]},{"id":92021,"type":"TXT","recordType":"txt","name":"_acme-challenge.deleterecordinset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997499772,"value":[{"value":"\"challengetoken2\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken2\"","disableFlag":false}]},{"id":92010,"type":"TXT","recordType":"txt","name":"_acme-challenge.fqdn","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997474053,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92011,"type":"TXT","recordType":"txt","name":"_acme-challenge.full","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997475400,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92026,"type":"TXT","recordType":"txt","name":"_acme-challenge.listrecordset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997508561,"value":[{"value":"\"challengetoken1\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken1\"","disableFlag":false}]},{"id":92015,"type":"TXT","recordType":"txt","name":"_acme-challenge.noop","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997481111,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92012,"type":"TXT","recordType":"txt","name":"_acme-challenge.test","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997476718,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92025,"type":"TXT","recordType":"txt","name":"ttl.fqdn","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997506671,"value":[{"value":"\"ttlshouldbe3600\"","disableFlag":false}],"roundRobin":[{"value":"\"ttlshouldbe3600\"","disableFlag":false}]}]'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 17 Apr 2018 20:38:29 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=009016B76EBB11BCA222EBA9D65E738F; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    status: {code: 200, message: OK}
- request:
    body: !!python/unicode '{"roundRobin": [{"disableFlag": false, "value": "challengetoken1"},
      {"disableFlag": false, "value": "challengetoken2"}], "id": 92026, "name": "_acme-challenge.listrecordset",
      "ttl": 3600}'
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['187']
      Content-Type: [application/json]
      User-Agent: [python-requests/2.18.4]
    method: PUT
    uri: https://api.dns.constellix.com/v1/domains/23906/records/TXT/92026/
  response:
    body: {string: !!python/unicode '{"success":"Record  updated successfully"}'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 17 Apr 2018 20:38:30 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=384963BDC44EB8A0BBBE290DFA1F2A00; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    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.dns.constellix.com/v1/domains/23906/records/TXT/
  response:
    body: {string: !!python/unicode '[{"id":92013,"type":"TXT","recordType":"txt","name":"_acme-challenge.createrecordset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997479715,"value":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}]},{"id":92021,"type":"TXT","recordType":"txt","name":"_acme-challenge.deleterecordinset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997499772,"value":[{"value":"\"challengetoken2\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken2\"","disableFlag":false}]},{"id":92010,"type":"TXT","recordType":"txt","name":"_acme-challenge.fqdn","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997474053,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92011,"type":"TXT","recordType":"txt","name":"_acme-challenge.full","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997475400,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92026,"type":"TXT","recordType":"txt","name":"_acme-challenge.listrecordset","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997510237,"value":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken1\"","disableFlag":false},{"value":"\"challengetoken2\"","disableFlag":false}]},{"id":92015,"type":"TXT","recordType":"txt","name":"_acme-challenge.noop","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997481111,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92012,"type":"TXT","recordType":"txt","name":"_acme-challenge.test","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997476718,"value":[{"value":"\"challengetoken\"","disableFlag":false}],"roundRobin":[{"value":"\"challengetoken\"","disableFlag":false}]},{"id":92025,"type":"TXT","recordType":"txt","name":"ttl.fqdn","recordOption":"roundRobin","noAnswer":false,"note":"","ttl":3600,"gtdRegion":1,"parentId":23906,"parent":"domain","source":"Domain","modifiedTs":1523997506671,"value":[{"value":"\"ttlshouldbe3600\"","disableFlag":false}],"roundRobin":[{"value":"\"ttlshouldbe3600\"","disableFlag":false}]}]'}
    headers:
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 17 Apr 2018 20:38:30 GMT']
      requestlimitheader: ['300']
      requestsremainingheader: ['299']
      server: [Apache-Coyote/1.1]
      set-cookie: [JSESSIONID=FA2722A9E66FE68D3DEE620FBC90B791; Path=/; HttpOnly]
      transfer-encoding: [chunked]
      x-application-context: ['application:production']
    status: {code: 200, message: OK}
version: 1