mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05: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:
1 parent
c08d4523b2
commit
b0faf30eac
1 file changed
+5
-3
@@ -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