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 (94 lines) | stat: -rw-r--r-- 4,390 bytes parent folder | download
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
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.dreamhost.com/?cmd=domain-list_domains&format=json
  response:
    body: {string: !!python/unicode '{"result":"success","data":[{"domain":"lexicon-example.com"}]}'}
    headers:
      access-control-allow-origin: ['*']
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 20 Mar 2018 11:56:23 GMT']
      server: [nginx]
      strict-transport-security: [max-age=31536000]
      transfer-encoding: [chunked]
      x-powered-by: [Tiger Blood]
    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.dreamhost.com/?cmd=dns-add_record&format=json&record=_acme-challenge.noop.lexicon-example.com&value=challengetoken&type=TXT
  response:
    body: {string: !!python/unicode '{"result":"success","data":"record_added"}'}
    headers:
      access-control-allow-origin: ['*']
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 20 Mar 2018 11:56:28 GMT']
      server: [nginx]
      strict-transport-security: [max-age=31536000]
      transfer-encoding: [chunked]
      x-powered-by: [Tiger Blood]
    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.dreamhost.com/?cmd=dns-add_record&format=json&record=_acme-challenge.noop.lexicon-example.com&value=challengetoken&type=TXT
  response:
    body: {string: !!python/unicode '{"result":"success","data":"record_added"}'}
    headers:
      access-control-allow-origin: ['*']
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 20 Mar 2018 11:56:28 GMT']
      server: [nginx]
      strict-transport-security: [max-age=31536000]
      transfer-encoding: [chunked]
      x-powered-by: [Tiger Blood]
    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.dreamhost.com/?cmd=dns-list_records&format=json
  response:
    body: {string: !!python/unicode '{"result":"success","data":[{"value":"challengetoken","record":"random.test.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"},{"record":"docs.lexicon-example.com","value":"docs.example.com","type":"CNAME","zone":"lexicon-example.com"},{"record":"localhost.lexicon-example.com","value":"127.0.0.1","type":"A","zone":"lexicon-example.com","zone":"lexicon-example.com"},{"value":"challengetoken","record":"_acme-challenge.fqdn.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"},{"value":"challengetoken","record":"_acme-challenge.full.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"},{"value":"challengetoken","record":"_acme-challenge.test.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"},{"value":"challengetoken","record":"orig.test.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"},{"value":"challengetoken","record":"_acme-challenge.noop.lexicon-example.com","type":"TXT","zone":"lexicon-example.com"}]}'}
    headers:
      access-control-allow-origin: ['*']
      connection: [keep-alive]
      content-type: [application/json;charset=UTF-8]
      date: ['Tue, 20 Mar 2018 11:56:30 GMT']
      server: [nginx]
      strict-transport-security: [max-age=31536000]
      transfer-encoding: [chunked]
      x-powered-by: [Tiger Blood]
    status: {code: 200, message: OK}
version: 1