Lenka Doudova
36979ad0b6
Tests: Random issuer certificate can be added to a service
...
Changing negative test case that verified that a certificate with different
than expected issuer cannot be added to a service to a positive one that
verifies that this operation now proceeds successfully. Corresponds to changes
made in scope of https://fedorahosted.org/freeipa/ticket/4559 implementation.
https://fedorahosted.org/freeipa/ticket/6258
Reviewed-By: Ganna Kaihorodova <gkaihoro@redhat.com >
2016-08-31 14:29:00 +02:00
Oleg Fayans
5812af84a4
Disabled raiseonerr in kinit call during topology level check
...
domainlevel method is called upon each master uninstallation. Sometimes the
master uninstallation is called from within teardown method of some tests when
the master was not in fact installed, in which case the kinit_admin would
always raise an error.
https://fedorahosted.org/freeipa/ticket/6254
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-30 13:11:46 +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
gkaihoro
572bb55da4
Test for caacl-add-service
...
Test for caacl-add-service: incorrect error message when service does not exists
https://fedorahosted.org/freeipa/ticket/6171
Reviewed-By: Tomas Krizek <tkrizek@redhat.com >
2016-08-30 10:35:58 +02:00
Lenka Doudova
ec0a58e484
Tests: Failing tests in test_ipalib/test_plugable
...
Tests test_Registry and test_API are failing, both due to changes made during
thin client implementation. Partial fix for [1], complete fix for [2].
[1] https://fedorahosted.org/freeipa/ticket/6191
[2] https://fedorahosted.org/freeipa/ticket/6186
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-29 12:46:58 +02:00
Lenka Doudova
774e4e479d
Tests: Failing test_ipaserver/test_ldap test
...
Plugins are being imported in the test_ldap/test_Backend test, which is no
longer valid due to changes made during thin client implementation. Plugins are
imported automatically and explicit imports make tests fail because of the
duplicity.
https://fedorahosted.org/freeipa/ticket/6194
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-29 12:46:58 +02:00
Lenka Doudova
3c32af55b6
Tests: Failing test_ipalib/test_rpc
...
Due to thin client implementation a part of the original test is no longer
valid and causes test to fail.
https://fedorahosted.org/freeipa/ticket/6192
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-29 12:46:58 +02:00
Oleg Fayans
9dffe55e65
Added a sleep interval after domainlevel raise in tests
...
Due to race conditions the test sometimes catches 2 one-way segments instead of
one bidirectional. We need to give the master time to merge the one-way
segments before we test the output.
https://fedorahosted.org/freeipa/ticket/6265
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-26 16:14:37 +02:00
Oleg Fayans
fbc9179970
Fixed incorrect sequence of method calls in tasks.py
...
https://fedorahosted.org/freeipa/ticket/6255
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-25 13:48:26 +02:00
Lenka Doudova
9021b64966
Tests: Service tracker and tests don't recognize 'ipakrboktoauthasdelegate' attribute
...
Due to [1] being implemented, retrieve and search tests with --all option
specified fail due to extra attribute.
[1] https://fedorahosted.org/freeipa/ticket/5764
Ticket: https://fedorahosted.org/freeipa/ticket/6240
Reviewed-By: Ganna Kaihorodova <gkaihoro@redhat.com >
2016-08-24 16:00:25 +02:00
Lenka Doudova
3a555ece79
Tests: Host tracker does not recognize 'ipakrboktoauthasdelegate' attribute
...
Due to [1] being implemented, retrieve and search tests with --all option
specified fail due to extra attribute.
[1] https://fedorahosted.org/freeipa/ticket/5764
Ticket: https://fedorahosted.org/freeipa/ticket/6240
Reviewed-By: Ganna Kaihorodova <gkaihoro@redhat.com >
2016-08-24 16:00:25 +02:00
Lenka Doudova
775c37bb81
Tests: ID views tests do not recognize krbcanonicalname attribute
...
https://fedorahosted.org/freeipa/ticket/6242
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-24 14:20:53 +02:00
Lenka Doudova
fef4b95309
Tests: Duplicate declaration on variables in ID views tests
...
In ipatests/test_xmlrpc/test_idviews_plugin several variables are declared
twice, while never using the first declaration. The duplicate declaration is
hereby removed.
https://fedorahosted.org/freeipa/ticket/6246
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-23 12:31:52 +02:00
Jan Cholasta
8006aa2106
tests: fix test_ipalib.test_frontend.test_Object
...
Update the fake API object to match the real API object interface including
the changes introduced with the API compatibility feature.
https://fedorahosted.org/freeipa/ticket/6188
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-22 18:58:27 +02:00
Petr Spacek
3ac2709f4b
config-mod: normalize attribute names for --usersearch/--groupsearch
...
https://fedorahosted.org/freeipa/ticket/6236
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2016-08-22 17:53:31 +02:00
Lenka Doudova
3d159c39c7
Tests: ID views tests do not recognize ipakrboktoauthasdelegate sttribute
...
Due to implementation of [1], new attribute 'ipakrboktoauthasdelegate' was presented, but is not recognized by ID views tests, thus causing them to fail.
[1] https://fedorahosted.org/freeipa/ticket/5764
https://fedorahosted.org/freeipa/ticket/6241
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com >
2016-08-22 14:11:16 +02:00
Lenka Doudova
44a2bdd8ea
Tests: Fix failing tests in test_ipalib/test_frontend
...
Some tests in ipatests/test_ipalib/test_frontend.py are failing due to changes
related to thin client implementation. Providing fix for:
ipa.test_ipalib.test_frontend.test_Attribute.test_init
ipa.test_ipalib.test_frontend.test_LocalOrRemote.test_run
https://fedorahosted.org/freeipa/ticket/6188
Reviewed-By: Milan Kubik <mkubik@redhat.com >
2016-08-17 17:41:08 +02:00
Lenka Doudova
380ffcc052
Tests: Fix failing tests in test_ipalib/test_parameters
...
Some of the tests are failing due to changes introduced because of thin client feature.
https://fedorahosted.org/freeipa/ticket/6187
https://fedorahosted.org/freeipa/ticket/6224
Reviewed-By: Milan Kubik <mkubik@redhat.com >
2016-08-17 17:39:08 +02:00
Ganna Kaihorodova
64c5340329
Fix for integration tests replication layouts
...
Domain level 0 doesn't allow to create replica file on CA-less master, testcases were skipped with Domain level 0
[https://fedorahosted.org/freeipa/ticket/6134 ]
Reviewed-By: Martin Basti <mbasti@redhat.com >
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2016-08-16 12:55:40 +02:00
Milan Kubík
b92b1d7d7f
ipatests: Fix wrong fixture in kerberos principal alias test
...
https://fedorahosted.org/freeipa/ticket/6197
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-16 12:13:30 +02:00
Lenka Doudova
f75735b16a
Tests: test_ipalib/test_output fails due to change of Output behaviour
...
https://fedorahosted.org/freeipa/ticket/6189
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-16 11:56:49 +02:00
Lenka Doudova
71d0bc7c10
Tests: Add data attribute to messages
...
Tests test_ipalib/test_messages.py are failing because messages now contain
also 'data' attribute, which is not yet reflected in tests.
https://fedorahosted.org/freeipa/ticket/6185
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-16 11:56:49 +02:00
Peter Lacko
019f3611c2
Test URIs in certificate.
...
Test that CRL URI and OCSP URI are present and correct in generated certificate.
https://fedorahosted.org/freeipa/ticket/5881
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-11 15:07:46 +02:00
Petr Vobornik
6217d680da
ca-less tests: fix getting cert in pem format from nssdb
...
usage of ipautil.run in get_pem methond of ca-less tests was not
refactored when the ipautil.run was refactored in
099cf98307
This results in failure of all CA-less test.
https://fedorahosted.org/freeipa/ticket/6177
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-10 16:53:33 +02:00
Stanislav Laznicka
9f26e395e5
Removed objectclass from LDAP*ReverseMember based tests
...
Some tests were broken because of the recent changes in baseldap (#5892 )
as they were wrongly expecting an objectclass attribute.
https://fedorahosted.org/freeipa/ticket/6198
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-10 13:53:55 +02:00
Oleg Fayans
bd5746c538
Fixed incorrect domainlevel determination in tests
...
https://fedorahosted.org/freeipa/ticket/6167
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-05 13:16:29 +02:00
Oleg Fayans
2df047b8c5
Fixed incorrect return code assert
...
The assert checked that the returncode of the replica uninstallation is zero
where in fact the uninstallation was expected to fail with the certain error
message
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-04 15:11:42 +02:00
Oleg Fayans
4e574cde72
Fixed import error
...
assert_error was lately transfered from test_caless.py to tasks.py, which
started to cause import errors in replica promotion tests
Reviewed-By: Martin Basti <mbasti@redhat.com >
2016-08-03 15:31:36 +02:00
Lenka Doudova
63a91ca49a
Tests: Remove has_keytab from list of expected keys of update command
...
As part of https://fedorahosted.org/freeipa/ticket/5281 , the has_keytab
attribute was removed from results of service-mod command. Removing this
attribute from list of expected keys to prevent failing tests.
Ticket: https://fedorahosted.org/freeipa/ticket/6149
Reviewed-By: Ganna Kaihorodova <gkaihoro@redhat.com >
2016-08-01 17:16:40 +02:00
tester
5f5203eb62
TEST: managing service certificates
...
Part of: https://fedorahosted.org/freeipa/ticket/6064
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-08-01 17:07:49 +02:00
tester
20e8cef394
TEST: managing host certificates
...
Parf of: https://fedorahosted.org/freeipa/ticket/6064
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-08-01 17:07:49 +02:00
tester
37c0bd1dd6
TEST: managing user certificates
...
Part of: https://fedorahosted.org/freeipa/ticket/6064
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-08-01 17:07:49 +02:00
Pavel Vomacka
45825b84b0
Add function which check whether the field is empty
...
Part of: https://fedorahosted.org/freeipa/ticket/6064
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-08-01 17:07:49 +02:00
tester
26803a0d17
Add possibility to choose parent element by css
...
Part of: https://fedorahosted.org/freeipa/ticket/6064
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-08-01 17:07:49 +02:00
Lenka Doudova
a20c04033a
Tests: Removing manipulation with /etc/hosts file from integration tests
...
Reviewed-By: Petr Spacek <pspacek@redhat.com >
Reviewed-By: Oleg Fayans <ofayans@redhat.com >
2016-08-01 10:20:16 +02:00
Milan Kubík
dd2e3a5547
ipatests: Add kerberos principal alias tests
...
Add tests for alias manipulation, tests authentication and several
error scenarios.
https://fedorahosted.org/freeipa/ticket/6142
https://fedorahosted.org/freeipa/ticket/6099
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Milan Kubík
e17ec08dae
ipatests: Allow change_principal context manager to use canonicalization
...
The context manager has been extended to optionally request principal
canonicalization and indicate that the enterprise principal is being
used.
This allows to change the user during the test to an user using the alias
and to test behavior related to enterprise principals.
https://fedorahosted.org/freeipa/ticket/6142
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Milan Kubík
ddb7a08084
ipatests: Move trust mock helper functions to a separate module
...
Moves helper functions used in range plugin test to a separate
module to allow code reuse.
https://fedorahosted.org/freeipa/ticket/6142
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Milan Kubík
7c03708734
ipatests: Provide a context manager for mocking a trust in RPC tests
...
The new module contains utility functions and a context manager to
make the mocking of an existing AD trust relation in the XMLRPC tests.
The module provides with two functions that create and delete the
containers for trusts and cifs domains. A context manager using these
is provided as well.
The user of the context manager is responsible for deleting all the
LDAP entries created during the test within the context. If there are
some entries left at the time of exiting the context manager, making
the container entries non-leaf entries, the tests will fail.
The context manager will not work when used on a server that already
has trust established.
https://fedorahosted.org/freeipa/ticket/6142
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Milan Kubík
dde1240f5d
ipatests: Extend the MockLDAP utility class
...
Added mod_entry method to allow modifying existing entries via the
ldap connection.
The commit also implements the context manager protocol for the class.
https://fedorahosted.org/freeipa/ticket/6142
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Milan Kubík
5582d1df32
ipatests: Add tracker class for kerberos principal aliases
...
The commit implements a mixin class providing capability
to track and modify kerberos principal aliases on supported
types of entries.
The class using the mixin must inherit from the Tracker class
and must provide the implementation of two methods:
* _make_add_alias_cmd
* _make_remove_alias_cmd
These are used to get the type specific command for the particular
entry class. The methods provided will not work on entries that
do not have 'krbprincipalname' attribute.
The service, host and user trackers are being extended to use this
new mixin class.
https://fedorahosted.org/freeipa/ticket/6142
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-29 09:04:42 +02:00
Pavel Vomacka
41ace68e04
Set default delete action name to 'delete'
...
Only specific delete actions will be explicitely set.
Part of: https://fedorahosted.org/freeipa/ticket/6052
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-07-27 19:23:28 +02:00
Pavel Vomacka
73ef15ccb4
Fix test which checks removing of user
...
The name of delete action is now 'delete_active_user' not just 'delete' therefore
tests needs to be fixed.
https://fedorahosted.org/freeipa/ticket/6052
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-07-27 19:22:30 +02:00
Pavel Vomacka
9f94a5f7ba
Fix test_navigation tests
...
Some menu item names has changed. This commit sets the correct names.
https://fedorahosted.org/freeipa/ticket/6053
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-07-27 19:21:11 +02:00
Pavel Vomacka
8c07568c0b
Remove navigation using breadcrumb menus
...
https://fedorahosted.org/freeipa/ticket/6054
Reviewed-By: Lenka Doudova <ldoudova@redhat.com >
2016-07-27 19:18:40 +02:00
Martin Basti
ae623864ee
CI tests: fix SSSD log collecting
...
Wildcard '*' has not been working for log collecting. I just set
the whole SSSD log directory to be collected. tar utility is able to
archive whole directories.
Reviewed-By: David Kupka <dkupka@redhat.com >
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-26 15:34:07 +02:00
Martin Basti
f05615bb83
CI tests: improve log collecting
...
We should collect as much as possible relevant logs to be able do better
investigation from test automation
Reviewed-By: David Kupka <dkupka@redhat.com >
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-26 15:34:07 +02:00
Ben Lipton
99a702568d
Fix several small typos
...
Fixes: https://fedorahosted.org/freeipa/ticket/6085
Reviewed-By: Petr Spacek <pspacek@redhat.com >
2016-07-26 12:03:44 +02:00
Lenka Doudova
648b5afa2f
Tests: IPA user can kinit using enterprise principal with IPA domain
...
Providing missing test case verifying authentication as IPA user, namely:
"kinit -E ipauser@IPADOMAIN".
https://fedorahosted.org/freeipa/ticket/6036
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com >
2016-07-25 12:22:21 +02:00