Petr Spacek
f363dfbeed
DNS: Support URI resource record type
...
https://fedorahosted.org/freeipa/ticket/6344
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-10-11 16:48:47 +02:00
Petr Spacek
eabe248957
Tests: fix test_forward_zones in test_xmlrpc/test_dns_plugin
...
Class test_forward_zones in ipatests/test_xmlrpc/test_dns_plugin
was using DNS zone 'fwzone2.test.' and expected to get warning
'Forwarding policy conflicts with some automatic empty zones.'
(aka 'DNSForwardPolicyConflictWithEmptyZone').
This does not make sense because 'test.' zone is not listed in IANA registry
'Locally-Served DNS Zones':
http://www.iana.org/assignments/locally-served-dns-zones/locally-served-dns-zones.xhtml
To fix this I simply removed the warning from set of expected results.
https://fedorahosted.org/freeipa/ticket/6213
Reviewed-By: Martin Basti <mbasti@redhat.com >
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com >
2016-08-30 10:45:12 +02:00
Petr Spacek
8f1ba05c26
Tests: fix test_forward_zones in test_xmlrpc/test_dns_plugin
...
Class test_forward_zones in ipatests/test_xmlrpc/test_dns_plugin
had server IP and zone name interchanged in "expected" dictionart.
I do not understand how this happened.
https://fedorahosted.org/freeipa/ticket/6213
Reviewed-By: Martin Basti <mbasti@redhat.com >
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com >
2016-08-30 10:40:01 +02:00
Ganna Kaihorodova
359cfeb7c6
Fix conflict between "got" and "expected" values
...
Fix conflict between "got" and "expected" values when testing "dnsconfig_mod:
Update global DNS settings"
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-07-21 20:01:51 +02:00
Jan Cholasta
6e44557b60
ipalib: move server-side plugins to ipaserver
...
Move the remaining plugin code from ipalib.plugins to ipaserver.plugins.
Remove the now unused ipalib.plugins package.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com >
2016-06-03 09:00:34 +02:00
Jan Cholasta
56c66f44a0
rpc: specify connection options in API config
...
Specify RPC connection options once in API.bootstrap rather than in each
invocation of rpcclient.connect.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com >
2016-06-03 09:00:34 +02:00
Petr Spacek
da71e7e9de
DNS: Warn if forwarding policy conflicts with automatic empty zones
...
Forwarding policy "first" or "none" may conflicts with some automatic empty
zones. Queries for zones specified by RFC 6303 will ignore
forwarding and recursion and always result in NXDOMAIN answers.
This is not detected and warned about. Global forwarding is equivalent
to forward zone ".".
Example:
Forward zone 1.10.in-addr.arpa with policy "first"
will not forward anything because BIND will automatically prefer
automatic empty zone "10.in-addr.arpa." which is authoritative.
https://fedorahosted.org/freeipa/ticket/5710
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-05-30 20:14:32 +02:00
Jan Cholasta
2f6b333187
frontend: re-raise remote RequirementError using CLI name in CLI
...
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com >
2016-05-25 16:06:26 +02:00
Jan Cholasta
e0275abe6f
rpc: include structured error information in responses
...
Include keyword arguments of exceptions in RPC responses. This is limited
to JSON-RPC, as XML-RPC does not support additional data in error
responses.
Include keyword arguments of messages in RPC responses.
Include keyword arguments of exceptions in batch command result.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com >
2016-05-25 16:06:26 +02:00
Martin Basti
da0318d4d7
Pylint: remove unnecessary-semicolon
...
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com >
2016-03-22 10:20:51 +01:00
Milan Kubík
1995997071
ipatests: Fix configuration problems in dns tests
...
revzone2 changed to unresolvable reverse zone
test for root zone now supresses the overlap check
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-01-11 14:48:08 +01:00
Martin Basti
e4075b1fe2
Remove unused imports
...
This patch removes unused imports, alse pylint has been configured to
check unused imports.
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2015-12-23 07:59:22 +01:00
Milan Kubik
c8a0359362
ipatests: Roll back the forwarder config after a test case
...
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-12-21 14:08:29 +01:00
Martin Basti
ee51ad0f25
Fix DNS tests: dns-resolve returns warning
...
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-12-21 14:07:12 +01:00
Martin Basti
b0faf30eac
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 >
2015-11-13 14:01:46 +01:00
Martin Basti
c08d4523b2
Tests: DNS replace 192.0.2.0/24 with 198.18.0.0/15 range
...
192.0.2.0/24 is IANA reserved address that should not be used. netaddr
module check implemented for this address and IPA reject this address as
invalid.
198.18.0.0/15 is IANA reserved address for benchmark testing purpose, so
we can safely use this network.
http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-11-13 14:01:46 +01:00
Milan Kubik
0a64e9bd70
Applied tier0 and tier1 marks on unit tests and xmlrpc tests
...
Web UI tests were marked as tier1 tests.
The tier system is intended to be used together with CI system
to make sure the more complicated tests are being run only
when all of the basic functionality is working.
The system is using pytest's marker system. E.g. an invocation of
all tier1 tests with listing will look like:
$ py.test -v -m tier1 ipatests
or in case of out of tree tests:
$ ipa-run-tests -m tier1
Reviewed-By: Ales 'alich' Marecek <amarecek@redhat.com >
2015-11-09 11:49:17 +01:00
Abhijeet Kasurde
c60cec4fa7
Added user friendly error message for dnszone enable and disable
...
Added try-except block in dns plugin in order to provide user
friendly message to end user.
https://fedorahosted.org/freeipa/ticket/4811
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2015-10-29 13:41:41 +01:00
Michael Simacek
aad73fad60
Port from python-krbV to python-gssapi
...
python-krbV library is deprecated and doesn't work with python 3. Replacing all
it's usages with python-gssapi.
- Removed Backend.krb and KRB5_CCache classes
They were wrappers around krbV classes that cannot really work without them
- Added few utility functions for querying GSSAPI credentials
in krb_utils module. They provide replacements for KRB5_CCache.
- Merged two kinit_keytab functions
- Changed ldap plugin connection defaults to match ipaldap
- Unified getting default realm
Using api.env.realm instead of krbV call
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
Reviewed-By: Robbie Harwood <rharwood@redhat.com >
Reviewed-By: Simo Sorce <ssorce@redhat.com >
2015-08-26 09:41:36 +02:00
Petr Viktorin
5435a8a32a
Use absolute imports
...
In Python 3, implicit relative imports will not be supported.
Use fully-qualified imports everywhere.
Reviewed-By: Tomas Babej <tbabej@redhat.com >
2015-08-12 18:17:23 +02:00
Petr Viktorin
b8c46f2a32
Modernize number literals
...
Use Python-3 compatible syntax, without breaking compatibility with py 2.7
- Octals literals start with 0o to prevent confusion
- The "L" at the end of large int literals is not required as they use
long on Python 2 automatically.
- Using 'int' instead of 'long' for small numbers is OK in all cases except
strict type checking checking, e.g. type(0).
https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2015-07-31 15:22:19 +02:00
Jan Cholasta
e39fe4ed31
plugable: Pass API to plugins on initialization rather than using set_api
...
https://fedorahosted.org/freeipa/ticket/3090
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2015-07-01 13:05:30 +00:00
Martin Basti
f8c8c360f1
DNSSEC: validate forward zone forwarders
...
Show warning messages if DNSSEC validation is failing for particular FW
zone or if the specified forwarders do not work
https://fedorahosted.org/freeipa/ticket/4657
Reviewed-By: David Kupka <dkupka@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-06-11 13:12:31 +02:00
Martin Basti
9aa6124b39
DNSSEC: Improve global forwarders validation
...
Validation now provides more detailed information and less false
positives failures.
https://fedorahosted.org/freeipa/ticket/4657
Reviewed-By: David Kupka <dkupka@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-06-11 13:12:31 +02:00
Ales 'alich' Marecek
ca96ecbf40
Ipatests DNS SOA Record Maintenance
...
https://fedorahosted.org/freeipa/ticket/4746
Reviewed-By: Martin Basti <mbasti@redhat.com >
2015-04-02 08:56:32 +00:00
Martin Basti
9af8fa9dd5
DNS tests: warning if forward zone is inactive
...
Ticket: https://fedorahosted.org/freeipa/ticket/4721
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2015-01-15 13:21:47 +01:00
Martin Basti
92feba2223
New test cases for Forward_zones
...
https://fedorahosted.org/freeipa/ticket/4750
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2015-01-13 14:34:47 +01:00
Martin Basti
6a0934f584
DNS tests: separate current forward zone tests
...
Ticket: https://fedorahosted.org/freeipa/ticket/4750
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2015-01-13 14:34:47 +01:00
Petr Viktorin
375e9f7c4b
tests: Use PEP8-compliant setup/teardown method names
...
The setUp/dearDown names are used in the unittest module, but there is no reason
to use them in non-`unittest` test cases.
Nose supports both styles (but mixing them can cause trouble when
calling super()'s methods).
Pytest only supports the new ones.
https://fedorahosted.org/freeipa/ticket/4610
Reviewed-By: Tomas Babej <tbabej@redhat.com >
2014-11-21 12:14:44 +01:00
Martin Basti
310e46452c
Fix warning message should not contain CLI commands
...
Message is now universal for both CLI and WebUI
Ticket: https://fedorahosted.org/freeipa/ticket/4647
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-11-19 15:20:55 +01:00
Martin Basti
5e1172f560
fix forwarder validation errors
...
Fix tests, validation in dnsconfig mod, wuser warning
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2014-10-21 15:55:09 +02:00
Martin Basti
41015e6c9c
DNS missing tests
...
* try to remove non-existent permission
* try to remove idnssoamname using dnszone-mod --name-server=
Reviewed-By: David Kupka <dkupka@redhat.com >
2014-10-09 10:02:22 +02:00
Martin Basti
bc2eaa1456
DNS tests: tests update to due to change in options
...
Affected options --name-server, --ip-address
Part of ticket: https://fedorahosted.org/freeipa/ticket/4149
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2014-09-25 16:38:02 +02:00
Martin Basti
94743a3f26
DNS test: allow '.' as zone name
...
https://fedorahosted.org/freeipa/ticket/4149
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2014-09-25 16:38:02 +02:00
Martin Basti
028b3d1009
Tests: DNS wildcard records
...
Ticket: https://fedorahosted.org/freeipa/ticket/4488
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2014-09-05 12:29:29 +02:00
Martin Basti
7e76bba512
Fix DNS record rename test
...
bind-dyndb-ldap's bug caused test failure
https://fedorahosted.org/bind-dyndb-ldap/ticket/123
Owners with NS record works with the bug
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-09-05 12:11:39 +02:00
Martin Basti
2b3be21b25
Test: DNS NS validation
...
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-09-05 12:11:39 +02:00
Martin Basti
155126b524
Tests: DNS dsrecord validation
...
Part of: https://fedorahosted.org/freeipa/ticket/3801
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Martin Kosek <mkosek@redhat.com >
2014-09-05 12:11:39 +02:00
Martin Basti
62a2559493
Fix dnsrecord-mod raise error if last record attr is removed
...
Removing last record attribute causes output type validation error
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
2014-09-05 10:34:11 +02:00
Martin Basti
80cb95da36
Test DNS: add zone with consecutive dash characters
...
Test for ticket: https://fedorahosted.org/freeipa/ticket/4268
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-07-04 18:45:01 +02:00
Martin Basti
2203abfca8
Test DNS: TLSA record
...
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-07-04 18:45:01 +02:00
Martin Basti
c48cee99a2
Test DNS: test zone normalization
...
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
2014-07-04 18:45:00 +02:00
Martin Basti
2637116eab
Allow to add managed permission for reverse zones
...
Ticket: https://fedorahosted.org/freeipa/ticket/4422
Reviewed-By: Petr Viktorin <pviktori@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2014-07-04 16:10:33 +02:00
Martin Basti
01b95805ab
NSEC3PARAM tests
...
Ticket: https://fedorahosted.org/freeipa/ticket/4413
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-07-02 14:54:42 +02:00
Martin Basti
ff7b44e3b0
Remove NSEC3PARAM record
...
Revert 5b95be802c
Ticket: https://fedorahosted.org/freeipa/ticket/4413
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-07-02 14:54:41 +02:00
Martin Basti
152c8f210b
Check normalization only for IDNA domains
...
Backward compability with older IPA versions which allow to use uppper
case. Only IDNA domains will be checked.
https://fedorahosted.org/freeipa/ticket/4382
Reviewed-By: Martin Kosek <mkosek@redhat.com >
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2014-07-01 09:58:42 +02:00
Martin Basti
ee6e634c28
DNSSEC: Test: DLV record
...
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 16:46:03 +02:00
Martin Basti
4c88fdd904
Tests: tests for NSEC3PARAM records
...
Ticket: https://fedorahosted.org/freeipa/ticket/4328
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 15:41:40 +02:00
Martin Basti
cbc64454b0
Tests: remove unused records from tests
...
Ticket: https://fedorahosted.org/freeipa/ticket/4328
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 15:41:40 +02:00
Martin Basti
11c250a612
Tests DNS: forward zones
...
design: http://www.freeipa.org/page/V4/Forward_zones
Ticket: https://fedorahosted.org/freeipa/ticket/3210
Reviewed-By: Petr Vobornik <pvoborni@redhat.com >
2014-06-20 13:14:45 +02:00