forked from PowerDNS/pdns-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove EOL and added tests accordingly
- Loading branch information
Showing
12 changed files
with
65 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ jobs: | |
- '2.10' | ||
- '2.11' | ||
scenario: | ||
- pdns-43 | ||
- pdns-44 | ||
- pdns-45 | ||
- pdns-46 | ||
- pdns-47 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
debian_os = ['debian', 'ubuntu'] | ||
rhel_os = ['redhat', 'centos', 'ol'] | ||
|
||
|
||
def test_repo_file(host): | ||
f = None | ||
if host.system_info.distribution.lower() in debian_os: | ||
f = host.file('/etc/apt/sources.list.d/powerdns-auth-47.list') | ||
if host.system_info.distribution.lower() in rhel_os: | ||
f = host.file('/etc/yum.repos.d/powerdns-auth-47.repo') | ||
|
||
assert f.exists | ||
assert f.user == 'root' | ||
assert f.group == 'root' | ||
|
||
|
||
def test_pdns_repo(host): | ||
f = None | ||
if host.system_info.distribution.lower() in debian_os: | ||
f = host.file('/etc/apt/sources.list.d/powerdns-auth-47.list') | ||
if host.system_info.distribution.lower() in rhel_os: | ||
f = host.file('/etc/yum.repos.d/powerdns-auth-47.repo') | ||
|
||
assert f.exists | ||
assert f.contains('auth-47') | ||
|
||
|
||
def test_repo_pinning_file(host): | ||
if host.system_info.distribution.lower() in debian_os: | ||
f = host.file('/etc/apt/preferences.d/pdns') | ||
assert f.exists | ||
assert f.user == 'root' | ||
assert f.group == 'root' | ||
f.contains('Package: pdns-*') | ||
f.contains('Pin: origin repo.powerdns.com') | ||
f.contains('Pin-Priority: 600') | ||
|
||
|
||
def test_pdns_version(host): | ||
cmd = host.run('/usr/sbin/pdns_server --version') | ||
|
||
assert 'PowerDNS Authoritative Server' in cmd.stderr | ||
assert '4.3' in cmd.stderr |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters