Skip to content

Commit 00bbbcd

Browse files
committed
Rename files to follow same pattern
1 parent 58855d9 commit 00bbbcd

6 files changed

+40
-40
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ make test
6161

6262
### Functional Testing
6363

64-
The [dnstest](https://github.com/dnsimple/dnstest) tool provides a suite of black-box functional tests for erldns (and any other DNS authoritative name server). The tests are largely based on the excellent [suite of tests](https://github.com/PowerDNS/pdns/tree/master/regression-tests/tests) in [PowerDNS](http://powerdns.com). To run the tests, you must change `erldns.config` so that zones are loaded from `priv/test.zones.json`.
64+
The [dnstest](https://github.com/dnsimple/dnstest) tool provides a suite of black-box functional tests for erldns (and any other DNS authoritative name server). The tests are largely based on the excellent [suite of tests](https://github.com/PowerDNS/pdns/tree/master/regression-tests/tests) in [PowerDNS](http://powerdns.com). To run the tests, you must change `erldns.config` so that zones are loaded from `priv/zones-test.json`.
6565

6666
```
6767
[
6868
{erldns, [
69-
{zones, "priv/test.zones.json"}
69+
{zones, "priv/zones-test.json"}
7070
]}
7171
]
7272
```

erldns.example.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
{use_root_hints, false},
1313
{catch_exceptions, false},
14-
{zones, "priv/example.zone.json"},
14+
{zones, "priv/zones-example.json"},
1515
{pools, [
1616
{tcp_worker_pool, erldns_worker, [
1717
{size, 10},

priv/zonefile.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,40 @@ A JSON zone file contains an array of 1 or more zones. Each zone has a name and
99
The follow is an example of a collection of zones with a single zone in the collection.
1010

1111
```json
12-
[{
12+
[{
13+
"name": "example.com",
14+
"records": [
15+
{
1316
"name": "example.com",
14-
"records": [
15-
{
16-
"name": "example.com",
17-
"type": "SOA",
18-
"ttl": 3600,
19-
"data": {
20-
"mname": "ns1.example.com",
21-
"rname": "admin.example.com",
22-
"serial": 1234567,
23-
"refresh": 1,
24-
"retry": 1,
25-
"expire": 1,
26-
"minimum": 1
27-
}
28-
},
29-
{
30-
"name": "example.com",
31-
"type": "A",
32-
"ttl": 3600,
33-
"data": {
34-
"ip": "1.2.3.4"
35-
}
36-
},
37-
{
38-
"name": "example.com",
39-
"type": "MX",
40-
"ttl": 3600,
41-
"data": {
42-
"preference": 10,
43-
"exchange": "mail.example.com"
44-
}
45-
}
46-
]
47-
}]
17+
"type": "SOA",
18+
"ttl": 3600,
19+
"data": {
20+
"mname": "ns1.example.com",
21+
"rname": "admin.example.com",
22+
"serial": 1234567,
23+
"refresh": 1,
24+
"retry": 1,
25+
"expire": 1,
26+
"minimum": 1
27+
}
28+
},
29+
{
30+
"name": "example.com",
31+
"type": "A",
32+
"ttl": 3600,
33+
"data": {
34+
"ip": "1.2.3.4"
35+
}
36+
},
37+
{
38+
"name": "example.com",
39+
"type": "MX",
40+
"ttl": 3600,
41+
"data": {
42+
"preference": 10,
43+
"exchange": "mail.example.com"
44+
}
45+
}
46+
]
47+
}]
4848
```
File renamed without changes.
File renamed without changes.

rebar.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
{dev_mode, true},
4343
{include_erts, false},
4444
{sys_config, "erldns.config"},
45-
{overlay, [{copy, "priv/example.zone.json", "priv/example.zone.json"},
46-
{copy, "priv/test.zones.json", "priv/test.zones.json"}]},
45+
{overlay, [{copy, "priv/zones-example.json", "priv/zones-example.json"},
46+
{copy, "priv/zones-test.json", "priv/zones-test.json"}]},
4747

4848
{extended_start_script, true}]}.
4949

0 commit comments

Comments
 (0)