| 1 |
Feature: DNS Global Configuration |
| 2 |
Configure DNS global settings |
| 3 |
|
| 4 |
@test |
| 5 |
Scenario: Set PTR sync |
| 6 |
Given I am logged in as admin |
| 7 |
And I am on "dns-global-config" page |
| 8 |
|
| 9 |
When I click on the "dns-global-config-checkbox-allow-ptr-sync" checkbox |
| 10 |
Then I should see the "dns-global-config-checkbox-allow-ptr-sync" checkbox is checked |
| 11 |
|
| 12 |
When I click on the "dns-global-config-button-save" button |
| 13 |
Then I should see "success" alert |
| 14 |
|
| 15 |
@test |
| 16 |
Scenario: Add global forwarders |
| 17 |
Given I am logged in as admin |
| 18 |
And I am on "dns-global-config" page |
| 19 |
|
| 20 |
When I add "192.168.45.47" to "dns-global-config-textbox-forwarders" textbox list |
| 21 |
Then I should see "192.168.45.47" in the "dns-global-config-textbox-forwarders" textbox list |
| 22 |
|
| 23 |
When I add "192.168.77.88" to "dns-global-config-textbox-forwarders" textbox list |
| 24 |
Then I should see "192.168.77.88" in the "dns-global-config-textbox-forwarders" textbox list |
| 25 |
|
| 26 |
Given I intercept the "dnsconfig_mod" API call |
| 27 |
When I click on the "dns-global-config-button-save" button |
| 28 |
Then I should wait for the API call to finish |
| 29 |
Then I should see "success" alert |
| 30 |
|
| 31 |
@test |
| 32 |
Scenario: Change forward policy |
| 33 |
Given I am logged in as admin |
| 34 |
And I am on "dns-global-config" page |
| 35 |
|
| 36 |
When I click on the "dns-zone-tab-settings-radio-forward-only" radio button |
| 37 |
Then I should see the "dns-zone-tab-settings-radio-forward-only" radio button is selected |
| 38 |
|
| 39 |
When I click on the "dns-global-config-button-save" button |
| 40 |
Then I should see "success" alert |
| 41 |
|
| 42 |
@test |
| 43 |
Scenario: Reset values to default |
| 44 |
Given I am logged in as admin |
| 45 |
And I am on "dns-global-config" page |
| 46 |
|
| 47 |
When I click on the "dns-global-config-checkbox-allow-ptr-sync" checkbox |
| 48 |
Then I should see the "dns-global-config-checkbox-allow-ptr-sync" checkbox is unchecked |
| 49 |
|
| 50 |
When I remove all elements from the "dns-global-config-textbox-forwarders" textbox list |
| 51 |
Then I should see the "dns-global-config-textbox-forwarders" textbox list is empty |
| 52 |
|
| 53 |
When I click on the "dns-zone-tab-settings-radio-forwarding-disabled" radio button |
| 54 |
Then I should see the "dns-zone-tab-settings-radio-forwarding-disabled" radio button is selected |
| 55 |
|
| 56 |
When I click on the "dns-global-config-button-save" button |
| 57 |
Then I should see "success" alert |