Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
Fix reverse DNS lookup functional test
Browse files Browse the repository at this point in the history
- Uses canonical naming for created zone and name
- Adds an appropriate in-addr.arpa. zone for reverse lookup
  • Loading branch information
andreykaipov committed Jun 27, 2019
1 parent c169d42 commit 4a65a01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ services:
curl -X POST http://pdns:8081/api/v1/servers/localhost/zones \
-d '{"name": "sysa.xyz.", "kind": "Native", "nameservers": ["ns1.sysa.xyz."]}' \
-H "X-API-Key: secret"
curl -s -X POST http://pdns:8081/api/v1/servers/localhost/zones \
-d '{"name": "in-addr.arpa.", "kind": "Native", "nameservers": ["ns1.sysa.xyz."]}' \
-H "X-API-Key: secret"
make testacc
environment:
PDNS_SERVER_URL: http://pdns:8081
Expand Down
4 changes: 2 additions & 2 deletions powerdns/resource_powerdns_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ resource "powerdns_record" "test-a" {

const testPDNSRecordConfigAWithPtr = `
resource "powerdns_record" "test-a-ptr" {
zone = "sysa.xyz"
name = "redis.sysa.xyz"
zone = "sysa.xyz."
name = "redis.sysa.xyz."
type = "A"
ttl = 60
set_ptr = true
Expand Down

0 comments on commit 4a65a01

Please sign in to comment.