mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Tests: DNS various exceptions can be raised in test
Test 'Try to add SRV record to zone %r both via parts and a raw value' can raise various exceptions which are all valid. Due to internal representation IPA may raise exception for any of target, port, priority, weight part. This commit handles all of them. Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
@@ -1148,9 +1148,11 @@ class test_dns(Declarative):
|
||||
'srv_part_target' : u'foo.bar.',
|
||||
'srvrecord': [u"1 100 1234 %s" \
|
||||
% zone1_ns]}),
|
||||
expected=errors.ValidationError(name='srv_target',
|
||||
error=u'Raw value of a DNS record was already set by ' +
|
||||
u'"srv_rec" option'),
|
||||
expected=lambda x, output: (
|
||||
type(x) == errors.ValidationError and
|
||||
x.message.endswith(u'Raw value of a DNS record was already '
|
||||
u'set by "srv_rec" option'),
|
||||
),
|
||||
),
|
||||
|
||||
dict(
|
||||
|
||||
Reference in New Issue
Block a user