-
-
Notifications
You must be signed in to change notification settings - Fork 305
/
Copy pathtest_powerdns.py
26 lines (21 loc) · 919 Bytes
/
test_powerdns.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from lexicon.providers.powerdns import Provider
from integration_tests import IntegrationTests
from unittest import TestCase
import pytest
# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from integration_tests.IntegrationTests
class PowerdnsProviderTests(TestCase, IntegrationTests):
Provider = Provider
provider_name = 'powerdns'
domain = 'example.com'
def _filter_headers(self):
return ['X-API-Key']
def _test_options(self):
options = super(PowerdnsProviderTests, self)._test_options()
options.update({'pdns_server':'https://dnsadmin.hhome.me','pdns_server_id':'localhost'})
return options
# TODO: this should be enabled
@pytest.mark.skip(reason="regenerating auth keys required")
def test_Provider_when_calling_update_record_should_modify_record_name_specified(self):
return