|
7 | 7 |
|
8 | 8 | Shindo.tests("Fog::DNS[:#{provider}] | record", [provider.to_s]) do |
9 | 9 |
|
10 | | - record_attributes = { |
11 | | - :name => 'www.' + domain_name, |
| 10 | + a_record_attributes = { |
| 11 | + :name => 'a.' + domain_name, |
12 | 12 | :type => 'A', |
13 | 13 | :value => '1.2.3.4' |
14 | 14 | }.merge!(config[:record_attributes] || {}) |
15 | 15 |
|
| 16 | + aaaa_record_attributes = { |
| 17 | + :name => 'aaaa.' + domain_name, |
| 18 | + :type => 'AAAA', |
| 19 | + :value => '2001:0db8:0000:0000:0000:ff00:0042:8329' |
| 20 | + }.merge!(config[:record_attributes] || {}) |
| 21 | + |
| 22 | + cname_record_attributes = { |
| 23 | + :name => 'cname.' + domain_name, |
| 24 | + :type => 'CNAME', |
| 25 | + :value => 'real.' + domain_name |
| 26 | + }.merge!(config[:record_attributes] || {}) |
| 27 | + |
16 | 28 | if !Fog.mocking? || config[:mocked] |
17 | 29 | zone_attributes = { |
18 | 30 | :domain => domain_name |
19 | 31 | }.merge(config[:zone_attributes] || {}) |
20 | 32 |
|
21 | 33 | @zone = Fog::DNS[provider].zones.create(zone_attributes) |
22 | 34 |
|
23 | | - model_tests(@zone.records, record_attributes, config[:mocked]) |
| 35 | + model_tests(@zone.records, a_record_attributes, config[:mocked]) |
| 36 | + model_tests(@zone.records, aaaa_record_attributes, config[:mocked]) |
| 37 | + model_tests(@zone.records, cname_record_attributes, config[:mocked]) |
24 | 38 |
|
25 | 39 | @zone.destroy |
26 | 40 | end |
|
0 commit comments