Created
October 3, 2017 09:10
-
-
Save webs86/9590dea007aeeab73fee26eba3f4fffd to your computer and use it in GitHub Desktop.
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
.....................................................................F.......................................................................... | |
====================================================================== | |
FAIL: test_apply (test_octodns_provider_ovh.TestOvhProvider) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/samuelez/Documenti/Samuele/github/webs86/octodns/env/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched | |
return func(*args, **keywargs) | |
File "/home/samuelez/Documenti/Samuele/github/webs86/octodns/tests/test_octodns_provider_ovh.py", line 365, in test_apply | |
post_mock.assert_has_calls(wanted_calls) | |
File "/home/samuelez/Documenti/Samuele/github/webs86/octodns/env/local/lib/python2.7/site-packages/mock/mock.py", line 969, in assert_has_calls | |
), cause) | |
File "/home/samuelez/Documenti/Samuele/github/webs86/octodns/env/local/lib/python2.7/site-packages/six.py", line 737, in raise_from | |
raise value | |
AssertionError: Calls not found. | |
Expected: [call(u'/domain/zone/unit.tests/record', fieldType=u'A', subDomain=u'', target=u'1.2.3.4', ttl=100), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SRV', subDomain=u'10 20 30 foo-1.unit.tests.', target=u'_srv._tcp', ttl=800), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SRV', subDomain=u'40 50 60 foo-2.unit.tests.', target=u'_srv._tcp', ttl=800), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'PTR', subDomain=u'4', target=u'unit.tests.', ttl=900), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NS', subDomain=u'www3', target=u'ns3.unit.tests.', ttl=700), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NS', subDomain=u'www3', target=u'ns4.unit.tests.', ttl=700), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SSHFP', subDomain=u'1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73', target=u'', ttl=1100), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'AAAA', subDomain=u'', target=u'1:1ec:1::1', ttl=200), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'MX', subDomain=u'', target=u'10 mx1.unit.tests.', ttl=400), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'CNAME', subDomain=u'www2', target=u'unit.tests.', ttl=300), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SPF', subDomain=u'', target=u'v=spf1 include:unit.texts.rerirect ~all', ttl=1000), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'A', subDomain=u'sub', target=u'1.2.3.4', ttl=200), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NAPTR', subDomain=u'naptr', target=u'10 100 "S" "SIP+D2U" "!^.*$!sip:info@bar.example.com!" .', ttl=500), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'DKIM', subDomain=u'm._domainkey', target=u'k=rsa; p=MIGfMA0GC', ttl=200), | |
call(u'/domain/zone/unit.tests/refresh')] | |
Actual: [call(u'/domain/zone/unit.tests/record', fieldType=u'A', subDomain=u'', target=u'1.2.3.4', ttl=100), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SRV', subDomain=u'10 20 30 foo-1.unit.tests.', target='_srv._tcp', ttl=800), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SRV', subDomain=u'40 50 60 foo-2.unit.tests.', target='_srv._tcp', ttl=800), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'DKIM', subDomain='m._domainkey', target=u'k=rsa; p=MIGfMA0GC', ttl=200), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NS', subDomain='www3', target=u'ns3.unit.tests.', ttl=700), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NS', subDomain='www3', target=u'ns4.unit.tests.', ttl=700), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'PTR', subDomain='4', target=u'unit.tests.', ttl=900), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SSHFP', subDomain=u'1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73', target=u'', ttl=1100), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'AAAA', subDomain=u'', target=u'1:1ec:1::1', ttl=200), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'MX', subDomain=u'', target=u'10 mx1.unit.tests.', ttl=400), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'CNAME', subDomain='www2', target=u'unit.tests.', ttl=300), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'SPF', subDomain=u'', target=u'v=spf1 include:unit.texts.rerirect ~all', ttl=1000), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'A', subDomain='sub', target=u'1.2.3.4', ttl=200), | |
call(u'/domain/zone/unit.tests/record', fieldType=u'NAPTR', subDomain='naptr', target=u'10 100 "S" "SIP+D2U" "!^.*$!sip:info@bar.example.com!" .', ttl=500), | |
call(u'/domain/zone/unit.tests/refresh')] | |
-------------------- >> begin captured logging << -------------------- | |
Zone: DEBUG: __init__: zone=Zone<unit.tests.>, sub_zones=[] | |
Record: DEBUG: __init__: zone.name=unit.tests., type= ARecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type= ARecord, name=sub | |
Record: DEBUG: __init__: zone.name=unit.tests., type=CnameRecord, name=www2 | |
Record: DEBUG: __init__: zone.name=unit.tests., type= MxRecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type=NaptrRecord, name=naptr | |
Record: DEBUG: __init__: zone.name=unit.tests., type= NsRecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type= NsRecord, name=www3 | |
Record: DEBUG: __init__: zone.name=unit.tests., type= SrvRecord, name=_srv._tcp | |
Record: DEBUG: __init__: zone.name=unit.tests., type= PtrRecord, name=4 | |
Record: DEBUG: __init__: zone.name=unit.tests., type= SpfRecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type=SshfpRecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type= AaaaRecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type= DkimRecord, name=m._domainkey | |
OvhProvider[test]: DEBUG: __init__: id=test, endpoint=endpoint, application_key=application_key, application_secret=***, consumer_key=consumer_key | |
OvhProvider[test]: DEBUG: __init__: id=test, apply_disabled=False | |
Zone: DEBUG: __init__: zone=Zone<unit.tests.>, sub_zones=[] | |
OvhProvider[test]: INFO: plan: desired=unit.tests. | |
Zone: DEBUG: __init__: zone=Zone<unit.tests.>, sub_zones=[] | |
OvhProvider[test]: DEBUG: populate: name=unit.tests., target=True, lenient=True | |
OvhProvider[test]: INFO: populate: found 0 records | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, target=OvhProvider | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SrvRecord SRV 800, _srv._tcp.unit.tests., [''10 20 30 foo-1.unit.tests.'', ''40 50 60 foo-2.unit.tests.'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<DkimRecord DKIM 200, m._domainkey.unit.tests., k=rsa\; p=MIGfMA0GC> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<NsRecord NS 700, www3.unit.tests., ['ns3.unit.tests.', 'ns4.unit.tests.']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<PtrRecord PTR 900, 4.unit.tests., unit.tests.> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SshfpRecord SSHFP 1100, unit.tests., [''1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<AaaaRecord AAAA 200, unit.tests., ['1:1ec:1::1']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<ARecord A 100, unit.tests., ['1.2.3.4']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<MxRecord MX 400, unit.tests., [''10 mx1.unit.tests.'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<CnameRecord CNAME 300, www2.unit.tests., unit.tests.> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SpfRecord SPF 1000, unit.tests., ['v=spf1 include:unit.texts.rerirect ~all']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<ARecord A 200, sub.unit.tests., ['1.2.3.4']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<NaptrRecord NAPTR 500, naptr.unit.tests., [''10 100 "S" "SIP+D2U" "!^.*$!sip:info@bar.example.com!" .'']> | |
Plan: DEBUG: __init__: Creates=12, Updates=0, Deletes=0Existing=0 | |
OvhProvider[test]: INFO: plan: Creates=12, Updates=0, Deletes=0, Existing Records=0 | |
OvhProvider[test]: INFO: apply: making changes | |
OvhProvider[test]: INFO: _apply: zone=unit.tests., len(changes)=12 | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'SRV', u'subDomain': u'10 20 30 foo-1.unit.tests.', u'target': '_srv._tcp', u'ttl': 800} | |
OvhProvider[test]: INFO: plan: desired=unit.tests. | |
Zone: DEBUG: __init__: zone=Zone<unit.tests.>, sub_zones=[] | |
OvhProvider[test]: DEBUG: populate: name=unit.tests., target=True, lenient=True | |
Record: DEBUG: __init__: zone.name=unit.tests., type= ARecord, name= | |
Record: DEBUG: __init__: zone.name=unit.tests., type= ARecord, name=fake | |
OvhProvider[test]: INFO: populate: found 2 records | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, target=OvhProvider | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, modified | |
existing=<ARecord A 600, unit.tests., ['5.6.7.8']>, | |
desired=<ARecord A 100, unit.tests., ['1.2.3.4']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, removed record=<ARecord A 600, fake.unit.tests., ['5.6.7.8']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SrvRecord SRV 800, _srv._tcp.unit.tests., [''10 20 30 foo-1.unit.tests.'', ''40 50 60 foo-2.unit.tests.'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<DkimRecord DKIM 200, m._domainkey.unit.tests., k=rsa\; p=MIGfMA0GC> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<NsRecord NS 700, www3.unit.tests., ['ns3.unit.tests.', 'ns4.unit.tests.']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<PtrRecord PTR 900, 4.unit.tests., unit.tests.> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SshfpRecord SSHFP 1100, unit.tests., [''1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<AaaaRecord AAAA 200, unit.tests., ['1:1ec:1::1']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<MxRecord MX 400, unit.tests., [''10 mx1.unit.tests.'']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<CnameRecord CNAME 300, www2.unit.tests., unit.tests.> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<SpfRecord SPF 1000, unit.tests., ['v=spf1 include:unit.texts.rerirect ~all']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<ARecord A 200, sub.unit.tests., ['1.2.3.4']> | |
Zone: DEBUG: changes: zone=Zone<unit.tests.>, create record=<NaptrRecord NAPTR 500, naptr.unit.tests., [''10 100 "S" "SIP+D2U" "!^.*$!sip:info@bar.example.com!" .'']> | |
Plan: DEBUG: __init__: Creates=11, Updates=1, Deletes=1Existing=2 | |
OvhProvider[test]: INFO: plan: Creates=11, Updates=1, Deletes=1, Existing Records=2 | |
OvhProvider[test]: INFO: apply: making changes | |
OvhProvider[test]: INFO: _apply: zone=unit.tests., len(changes)=13 | |
OvhProvider[test]: DEBUG: Delete record: zone: unit.tests, id 100 | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'A', u'subDomain': u'', u'target': u'1.2.3.4', u'ttl': 100} | |
OvhProvider[test]: DEBUG: Delete record: zone: unit.tests, id 101 | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'SRV', u'subDomain': u'10 20 30 foo-1.unit.tests.', u'target': '_srv._tcp', u'ttl': 800} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'SRV', u'subDomain': u'40 50 60 foo-2.unit.tests.', u'target': '_srv._tcp', u'ttl': 800} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'DKIM', u'subDomain': 'm._domainkey', u'target': u'k=rsa; p=MIGfMA0GC', u'ttl': 200} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'NS', u'subDomain': 'www3', u'target': u'ns3.unit.tests.', u'ttl': 700} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'NS', u'subDomain': 'www3', u'target': u'ns4.unit.tests.', u'ttl': 700} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'PTR', u'subDomain': '4', u'target': u'unit.tests.', u'ttl': 900} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'SSHFP', u'subDomain': u'1 1 bf6b6825d2977c511a475bbefb88aad54a92ac73', u'target': u'', u'ttl': 1100} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'AAAA', u'subDomain': u'', u'target': u'1:1ec:1::1', u'ttl': 200} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'MX', u'subDomain': u'', u'target': u'10 mx1.unit.tests.', u'ttl': 400} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'CNAME', u'subDomain': 'www2', u'target': u'unit.tests.', u'ttl': 300} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'SPF', u'subDomain': u'', u'target': u'v=spf1 include:unit.texts.rerirect ~all', u'ttl': 1000} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'A', u'subDomain': 'sub', u'target': u'1.2.3.4', u'ttl': 200} | |
OvhProvider[test]: DEBUG: Create record: zone: unit.tests, id {u'fieldType': u'NAPTR', u'subDomain': 'naptr', u'target': u'10 100 "S" "SIP+D2U" "!^.*$!sip:info@bar.example.com!" .', u'ttl': 500} | |
--------------------- >> end captured logging << --------------------- | |
---------------------------------------------------------------------- | |
Ran 144 tests in 0.884s | |
FAILED (failures=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment