Browse Source
Merge pull request #1008 from octodns/update-requirements
Pass through updating requirements*.txt
pull/1010/head
Ross McFarland
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with
29 additions and
46 deletions
-
octodns/manager.py
-
octodns/provider/plan.py
-
octodns/source/base.py
-
requirements-dev.txt
-
requirements.txt
-
tests/test_octodns_processor_arpa.py
-
tests/test_octodns_record_ip.py
-
tests/test_octodns_record_mx.py
-
tests/test_octodns_record_ptr.py
-
tests/test_octodns_record_srv.py
-
tests/test_octodns_record_sshfp.py
-
tests/test_octodns_record_target.py
-
tests/test_octodns_record_tlsa.py
-
tests/test_octodns_source_tinydns.py
-
tests/test_octodns_zone.py
|
|
|
@ -475,7 +475,6 @@ class Manager(object): |
|
|
|
force=False, |
|
|
|
plan_output_fh=stdout, |
|
|
|
): |
|
|
|
|
|
|
|
self.log.info( |
|
|
|
'sync: eligible_zones=%s, eligible_targets=%s, dry_run=%s, ' |
|
|
|
'force=%s, plan_output_fh=%s', |
|
|
|
|
|
|
|
@ -78,7 +78,6 @@ class Plan(object): |
|
|
|
self.existing |
|
|
|
and len(self.existing.records) >= self.MIN_EXISTING_RECORDS |
|
|
|
): |
|
|
|
|
|
|
|
existing_record_count = len(self.existing.records) |
|
|
|
if existing_record_count > 0: |
|
|
|
update_pcent = ( |
|
|
|
|
|
|
|
@ -4,7 +4,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
class BaseSource(object): |
|
|
|
|
|
|
|
SUPPORTS_MULTIVALUE_PTR = False |
|
|
|
SUPPORTS_POOL_VALUE_STATUS = False |
|
|
|
SUPPORTS_ROOT_NS = False |
|
|
|
|
|
|
|
@ -1,50 +1,46 @@ |
|
|
|
# DO NOT EDIT THIS FILE DIRECTLY - use ./script/update-requirements to update |
|
|
|
Pygments==2.13.0 |
|
|
|
attrs==22.1.0 |
|
|
|
black==22.10.0 |
|
|
|
bleach==5.0.1 |
|
|
|
build==0.9.0 |
|
|
|
certifi==2022.12.7 |
|
|
|
Pygments==2.15.1 |
|
|
|
black==23.3.0 |
|
|
|
bleach==6.0.0 |
|
|
|
build==0.10.0 |
|
|
|
certifi==2023.5.7 |
|
|
|
cffi==1.15.1 |
|
|
|
charset-normalizer==2.1.1 |
|
|
|
charset-normalizer==3.1.0 |
|
|
|
click==8.1.3 |
|
|
|
cmarkgfm==2022.10.27 |
|
|
|
commonmark==0.9.1 |
|
|
|
coverage==6.5.0 |
|
|
|
docutils==0.19 |
|
|
|
exceptiongroup==1.0.0 |
|
|
|
importlib-metadata==5.0.0 |
|
|
|
iniconfig==1.1.1 |
|
|
|
coverage==7.2.5 |
|
|
|
docutils==0.20.1 |
|
|
|
importlib-metadata==6.6.0 |
|
|
|
iniconfig==2.0.0 |
|
|
|
isort==5.11.4 |
|
|
|
jaraco.classes==3.2.3 |
|
|
|
keyring==23.9.3 |
|
|
|
more-itertools==9.0.0 |
|
|
|
mypy-extensions==0.4.3 |
|
|
|
packaging==21.3 |
|
|
|
pathspec==0.10.1 |
|
|
|
pep517==0.13.0 |
|
|
|
pkginfo==1.8.3 |
|
|
|
platformdirs==2.5.2 |
|
|
|
keyring==23.13.1 |
|
|
|
markdown-it-py==2.2.0 |
|
|
|
mdurl==0.1.2 |
|
|
|
more-itertools==9.1.0 |
|
|
|
mypy-extensions==1.0.0 |
|
|
|
packaging==23.1 |
|
|
|
pathspec==0.11.1 |
|
|
|
pkginfo==1.9.6 |
|
|
|
platformdirs==3.5.1 |
|
|
|
pluggy==1.0.0 |
|
|
|
pprintpp==0.4.0 |
|
|
|
pycountry-convert==0.7.2 |
|
|
|
pycountry==22.3.5 |
|
|
|
pycparser==2.21 |
|
|
|
pyflakes==2.5.0 |
|
|
|
pyparsing==3.0.9 |
|
|
|
pyflakes==3.0.1 |
|
|
|
pyproject_hooks==1.0.0 |
|
|
|
pytest-cov==4.0.0 |
|
|
|
pytest-mock==3.10.0 |
|
|
|
pytest-network==0.0.1 |
|
|
|
pytest==7.2.0 |
|
|
|
pytest==7.3.1 |
|
|
|
readme-renderer==37.3 |
|
|
|
repoze.lru==0.7 |
|
|
|
requests-toolbelt==0.10.1 |
|
|
|
requests==2.28.1 |
|
|
|
requests-toolbelt==1.0.0 |
|
|
|
requests==2.31.0 |
|
|
|
rfc3986==2.0.0 |
|
|
|
rich==12.6.0 |
|
|
|
tomli==2.0.1 |
|
|
|
twine==4.0.1 |
|
|
|
typing_extensions==4.4.0 |
|
|
|
urllib3==1.26.12 |
|
|
|
rich==13.3.5 |
|
|
|
twine==4.0.2 |
|
|
|
urllib3==2.0.2 |
|
|
|
webencodings==0.5.1 |
|
|
|
zipp==3.10.0 |
|
|
|
zipp==3.15.0 |
|
|
|
@ -3,6 +3,6 @@ PyYAML==6.0 |
|
|
|
dnspython==2.3.0 |
|
|
|
fqdn==1.5.1 |
|
|
|
idna==3.4 |
|
|
|
natsort==8.2.0 |
|
|
|
natsort==8.3.1 |
|
|
|
python-dateutil==2.8.2 |
|
|
|
six==1.16.0 |
|
|
|
@ -11,7 +11,6 @@ from octodns.zone import Zone |
|
|
|
|
|
|
|
class TestAutoArpa(TestCase): |
|
|
|
def test_empty_zone(self): |
|
|
|
|
|
|
|
# empty zone no records |
|
|
|
zone = Zone('unit.tests.', []) |
|
|
|
aa = AutoArpa('auto-arpa') |
|
|
|
|
|
|
|
@ -10,7 +10,6 @@ from octodns.zone import Zone |
|
|
|
|
|
|
|
class TestRecordIp(TestCase): |
|
|
|
def test_ipv4_value_rdata_text(self): |
|
|
|
|
|
|
|
# anything goes, we're a noop |
|
|
|
for s in ( |
|
|
|
None, |
|
|
|
|
|
|
|
@ -68,7 +68,6 @@ class TestRecordMx(TestCase): |
|
|
|
a.__repr__() |
|
|
|
|
|
|
|
def test_mx_value_rdata_text(self): |
|
|
|
|
|
|
|
# empty string won't parse |
|
|
|
with self.assertRaises(RrParseError): |
|
|
|
MxValue.parse_rdata_text('') |
|
|
|
|
|
|
|
@ -63,7 +63,6 @@ class TestRecordPtr(TestCase): |
|
|
|
) |
|
|
|
|
|
|
|
def test_ptr_rdata_text(self): |
|
|
|
|
|
|
|
# anything goes, we're a noop |
|
|
|
for s in ( |
|
|
|
None, |
|
|
|
|
|
|
|
@ -81,7 +81,6 @@ class TestRecordSrv(TestCase): |
|
|
|
a.__repr__() |
|
|
|
|
|
|
|
def test_srv_value_rdata_text(self): |
|
|
|
|
|
|
|
# empty string won't parse |
|
|
|
with self.assertRaises(RrParseError): |
|
|
|
SrvValue.parse_rdata_text('') |
|
|
|
|
|
|
|
@ -85,7 +85,6 @@ class TestRecordSshfp(TestCase): |
|
|
|
a.__repr__() |
|
|
|
|
|
|
|
def test_sshfp_value_rdata_text(self): |
|
|
|
|
|
|
|
# empty string won't parse |
|
|
|
with self.assertRaises(RrParseError): |
|
|
|
SshfpValue.parse_rdata_text('') |
|
|
|
|
|
|
|
@ -11,7 +11,6 @@ from octodns.zone import Zone |
|
|
|
|
|
|
|
class TestRecordTarget(TestCase): |
|
|
|
def test_target_rdata_text(self): |
|
|
|
|
|
|
|
# anything goes, we're a noop |
|
|
|
for s in ( |
|
|
|
None, |
|
|
|
|
|
|
|
@ -118,7 +118,6 @@ class TestRecordTlsa(TestCase): |
|
|
|
a.__repr__() |
|
|
|
|
|
|
|
def test_tsla_value_rdata_text(self): |
|
|
|
|
|
|
|
# empty string won't parse |
|
|
|
with self.assertRaises(RrParseError): |
|
|
|
TlsaValue.parse_rdata_text('') |
|
|
|
|
|
|
|
@ -150,7 +150,6 @@ class TestTinyDnsFileSource(TestCase): |
|
|
|
self.assertEqual([], changes) |
|
|
|
|
|
|
|
def test_populate_in_addr_arpa(self): |
|
|
|
|
|
|
|
got = Zone('3.2.10.in-addr.arpa.', []) |
|
|
|
self.source.populate(got) |
|
|
|
|
|
|
|
|
|
|
|
@ -192,7 +192,6 @@ class TestZone(TestCase): |
|
|
|
self.assertTrue('whitespace not allowed' in str(ctx.exception)) |
|
|
|
|
|
|
|
def test_sub_zones(self): |
|
|
|
|
|
|
|
# NS for exactly the sub is allowed |
|
|
|
zone = Zone('unit.tests.', set(['sub', 'barred'])) |
|
|
|
record = Record.new( |
|
|
|
|