280 Commits
Author SHA1 Message Date
PRANAV THUBE fdfce9ac52 ipatests: Refactor and port hbac functional tests.
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
2025-12-26 17:25:38 +01:00
Anuja More 386e9f37af ipatests: sysaccounts: add missing integration/webui/xmlrpc tests
Add comprehensive test coverage for system accounts:

Integration tests:
- Password management and privileged behavior
- Backup/restore scenarios (full, data-only, with various attributes)
- Replica deletion and SysAcctManagersDNs persistence

Web UI tests:
- CRUD operations, privileged flag, associations
- Enable/disable, password validation, negative cases

XML-RPC tests:
- Permission checks for normal users and Security Architects
- All CRUD operations and policy management

- Automated with Cursor+Claude

Related: https://pagure.io/freeipa/issue/9842

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
2025-12-16 11:16:34 -03:00
Florence Blanc-Renaud b575e3dc39 Nightly test definitions: configure 4.13 branch
Configure the gating and nightly pipelines for ipa-4-13 branch

Fixes: IDM-3230
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-12-08 14:26:49 +01:00
Rob Crittenden b7c66bf23b Revert "Temp commit"
This reverts commit a5132136cd.

It was merged on accident.
2025-11-20 15:57:54 -05:00
Sumedh Sidhaye a5132136cd Temp commit
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:42:45 -05:00
Florence Blanc-Renaud bcbc88dc4a temp_commit: revert to the version pre 0b521f7
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:40:37 -05:00
Rob Crittenden 0b521f7d19 PR-CI: Run test_installation_TestInstallKeySizes in the nightlies
This tests the key and type installation arguments so the end
user can have some level of control over the type and key size
of some of the IPA keys.

Related: https://pagure.io/freeipa/issue/9738

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
2025-11-19 16:50:37 -05:00
Florence Blanc-Renaud ec308a0358 PRCI: switch testing from f41 and f42 to f42 and f43
Fedora 43 is already available and Fedora 41 will be EOL
Wed 2025-11-19 according to Fedora schedule:
https://fedorapeople.org/groups/schedule/f-41/f-41-all-tasks.html

Start testing on fedora 42 and fedora 43.

Fixes: IDM-3229
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-11-12 15:33:41 +01:00
Alexander Bokovoy 8c7427a2ba sysaccounts: add integration test
The integration test was created with the help of claude.ai by
providing the following prompt:

 >> given the design document in doc/designs/sysaccounts.md, write an
 >> integration test for sysaccounts module

Fixes: https://pagure.io/freeipa/issue/9842

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-11-03 17:18:05 -05:00
Anuja More b38b681480 Revert "Temp commit"
This reverts commit b94848ccff.

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-10-28 11:54:44 -04:00
Rob Crittenden b94848ccff Temp commit
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-10-27 18:20:45 -03:00
Florence Blanc-Renaud dd8b7214b4 PRCI tests: update vagrant image with latest PKI / certmonger package
Fedora 42 now ships PKI 11.7.0-5 and certmonger 0.79.21-1.
Update the vagrant image to 0.0.9 in order to pull the new versions.

Related: IDM-3437
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Anuja More 14d7a5b3b6 ipatests: Refactor and port trust functional HBAC tests.
- Tests to cover both root domain and subdomain users:
 - Test that adding AD users/groups without the external group to
   HBAC rules fails.
 - Test HBAC rule denies SSH access for AD users.
 - Test HBAC rule allows SSH access for AD users in external group.
 - Test HBAC rule denies sudo access for AD users when rule doesn't
   include them.
 - Test HBAC rule allows sudo access for AD users in external group.

Related : https://pagure.io/freeipa/issue/9845

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-10-08 09:29:28 +02:00
Anuja More 76727f970c ipatests: Add comprehensive tests for ipa-client-automount --domain option
- Add parametrized test for domain validation covering valid/invalid formats
- Add cross-domain discovery test showing --domain enables discovery when
  client is in different domain than IPA domain
- Validate configuration in sssd.conf after successful automount setup

The new tests ensure --domain option works correctly and provides proper
hints for DNS discovery in cross-domain scenarios, reducing user friction
compared to requiring --server specification.

Related: https://pagure.io/freeipa/issue/9780

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-08-06 13:22:32 -04:00
Sudhir Menon 15d5093f6d ipatests: Nightly definitions for TestIPAMigratewithBackupRestore
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-07-28 08:45:52 +02:00
Sudhir Menon 43033b0c01 ipatests: prci nightly definitions for 32BitIdranges
32BitIdranges testuiste has been included in the
nightly prvi definitions.

Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-06-25 17:01:22 +05:30
Sudhir Menon 30e707c4b4 Added TestIPAHealthcheckWithCALess to nightly yaml file.
TestIPAHealthcheckWithCALess has been added to the below nightly
yaml files.

nightly_latest.yaml
nightly_latest_selinux.yaml
nightly_latest_testing.yaml
nightly_latest_testing_selinux.yaml
nightly_previous.yaml
nightly_rawhide.yaml

Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-05-29 14:26:11 +05:30
Florence Blanc-Renaud e3425d0649 PRCI tests: update vagrant image with latest bind package
Fedora 42 is now officially available. Update the bind and
bind-dyndb-ldap packages to the latest versions
(bind-9.18.35-2.fc42, bind-dyndb-ldap-11.11-3.fc42)
by updating the vragrant image to 0.0.4

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2025-05-12 13:13:38 +02:00
Florence Blanc-Renaud f5084adb6d PRCI: switch testing from f40 and f41 to f41 and f42
Fedora 42 will be available soon and Fedora 40 will be EOL May 13 2025.
Start testing on fedora 41 and fedora 42.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
2025-04-09 11:55:29 +05:30
Florence Blanc-Renaud 940a0bc8c8 PRCI definitions: update vagrant box version for rawhide
Use version 0.9.1 based on fedora 43 - March 26, 2025

Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-03-28 09:17:15 +01:00
Florence Blanc-Renaud 5a63a50d04 ipatests: update fedora41 vagrant box to 0.0.2
New version generated March 18

Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-03-20 18:44:11 +05:30
Florence Blanc-Renaud ed8b4bc363 gating tests: add test_ipahealthcheck.py::TestIpaHealthCheckWithADtrust
This way we have at least one gating test that calls
ipa trust-add.

Related: test_ipahealthcheck.py::TestIpaHealthCheckWithADtrust
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2025-03-18 22:35:11 +05:30
Antonio Torres 4d0aacaa05 PRCI: add definitions for DNS over TLS tests
Signed-off-by: Antonio Torres <antorres@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Varun Mylaraiah <mvarun@redhat.com>
Reviewed-By: Pavel Brezina <pbrezina@redhat.com>
2025-02-11 09:09:22 +01:00
Alexander Bokovoy 92ca7c6332 Reintroduce test_idp to gating tests
test_idp should complete in ~27 minutes.

Related: https://pagure.io/freeipa/issue/9734

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-01-21 17:23:13 +01:00
Florence Blanc-Renaud 3863043fd1 Nightly tests: add test_ipahelthcheck to 389ds pipeline
Add the test to the list of nightlies run against 389ds.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-01-17 09:22:41 +01:00
Florence Blanc-Renaud 4146d77d25 Temp commit: move to fedora 41
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-01-03 08:11:16 -05:00
Rob Crittenden 9248e2df86 Add RSN-by-default test to nightly builds
Related: https://pagure.io/freeipa/issue/9661

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2024-11-22 16:30:48 +01:00
Florence Blanc-Renaud 2f1ca6db12 Nightly test def: fix topology for test_IPAMigrateADTrust
The test needs topology: *ad_master_1repl_1client
instead of topology: *master_1repl_1client
because it requires an AD server.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2024-11-07 08:36:41 +01:00
Florence Blanc-Renaud 1a47d3a906 Tests: migrate to f40/f41
Now that fedora 41 is available and fedora 39 is approaching EOL,
adjust the test pipelines:
- fedora-previous now refers to f40
- fedora-latest now refers to f41

Gating tests will now run on fedora 41.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2024-11-05 11:23:32 -05:00
Sudhir Menon e8ed1d70f7 ipatests: Updated nightly definitions for ipa-ipa-migration
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2024-10-31 14:45:35 +01:00
Mohammad Rizwan a2d498e0cb ipatests: refactor password file handling in TestHSMInstall
When token and associated certs are not being cleaned
up properly, the subsequent installation fails. Hence
Password file related scenarios moved out to new test class
so that it have fresh installation.

Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2024-10-14 21:02:29 -04:00
Alexander Bokovoy c4f3d9034d Extend nightly tests with Cockpit test
Fixes: https://pagure.io/freeipa/issue/9675

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2024-10-10 10:30:58 +02:00
Florence Blanc-Renaud df8cdb06f3 Nightly test definition: use master_1repl topology for idrange_fix
The test test_ipa_idrange_fix is installing IPA server as it sets
topology=line. Its test definition should not use a template
that pre-installs the IPA server (ipaserver preinstalls IPA server
but master_1repl does not).

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2024-10-09 11:25:00 +02:00
Aleksandr Sharov 90297c4c1a Add PR-CI definitions
fixes: https://pagure.io/freeipa/issue/9612
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2024-08-29 11:04:56 -04:00
Florence Blanc-Renaud bfefe5313f ipatests: increase the timeout for test_hsm.py::TestHSMInstall
The test is often failing on timeout. Add 15min to the test
definitions.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2024-08-05 21:22:48 +02:00
Sudhir Menon 565339803c Added new testsuite(ipa_ipa_migration) in prci definitions
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2024-07-08 15:15:46 +02:00
Anuja More d422155f43 ipatests: Test replica installation using AD admin.
Test to verify that replica connection check is not failing when
the AD administrator Administrator@AD.EXAMPLE.COM is
used for the deployment or promotion of a replica

Related: https://pagure.io/freeipa/issue/9542

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2024-07-02 17:31:52 +02:00
Anuja More b5f40a304c Added template for ad_master_1replica_1client
Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2024-07-02 17:31:52 +02:00
Florence Blanc-Renaud fd93a3b816 Gating and nightly tests: move to f39/f40
Now that fedora 40 is available and fedora 38 is EOL, adjust the test
pipelines:
- fedora-previous now refers to f39
- fedora-latest now refers to f40

Gating tests will now run on fedora 40.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
2024-06-26 07:30:20 +02:00
Alexander Bokovoy 9e861693fc batch: add keeponly option
batch(methods=Dict(), keeponly=list) will allow to execute batch of
commands and remove from the output everything but the attributes which
names were passed in the keeponly list.

This can be useful if you are only interested in getting names and
assigned random passwords, for example.

Fix batch API test in test_integration/test_idm_api.py and use it to
validate keeponly option.

Fixes: https://pagure.io/freeipa/issue/9583

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2024-05-22 10:03:38 +02:00
Rob Crittenden 879a937ddd Include the HSM tests in the nightlies
Related: https://pagure.io/freeipa/issue/9273

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2024-05-16 08:46:32 -04:00
Alexander Bokovoy 404fe1018e rpcserver: validate Kerberos principal name before running kinit
Do minimal validation of the Kerberos principal name when passing it to
kinit command line tool. Also pass it as the final argument to prevent
option injection.

Accepted Kerberos principals are:
 - user names, using the following regexp
   (username with optional @realm, no spaces or slashes in the name):
   "(?!^[0-9]+$)^[a-zA-Z0-9_.][a-zA-Z0-9_.-]*[a-zA-Z0-9_.$-]?@?[a-zA-Z0-9.-]*$"

 - service names (with slash in the name but no spaces). Validation of
   the hostname is done. There is no validation of the service name.

The regular expression above also covers cases where a principal name
starts with '-'. This prevents option injection as well.

This fixes CVE-2024-1481

Fixes: https://pagure.io/freeipa/issue/9541

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2024-02-21 17:07:33 -05:00
Florence Blanc-Renaud 717ae87a75 Nightly tests: test on f38 and f39
Fedora 39 is now officically available. Update the test definitions:
- lastest now uses f39
- previous now uses f38

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2024-01-12 18:46:41 -05:00
Florence Blanc-Renaud 5028b391f1 Integration tests: disable test_sso
Changes in ipa-tuura project are breaking the test
(removal of a script required for test preparation).
Disable the test until a solution is found in ipa-tuura.

Related: https://pagure.io/freeipa/issue/9476

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Antonio Torres <antorres@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
2023-12-04 15:58:07 +01:00
Florence Blanc-Renaud 2be07242b7 PRCI: update rawhide box
Update the rawhide Vagrant box to 0.8.3
(built May 26 2023 using fedora-39)

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2023-05-31 09:17:25 +02:00
Florence Blanc-Renaud 72cc53a22e Tests: test on f37 and f38
Fedora 38 is now available, move the testing pipelines to
- fedora 38 for the _latest definitions
- fedora 37 for the _previous definitions

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2023-05-09 18:05:24 +02:00
Florence Blanc-Renaud c7ef94c62f Nightly test: add +15min for test_ipahealthcheck
The test test_ipahealthcheck.py::TestIpaHealthcheck frequently
hits its 90min timeout. Extend by 15min to allow completion.

Fixes: https://pagure.io/freeipa/issue/9362
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
2023-05-04 08:33:53 +02:00
Florence Blanc-Renaud 07fe877525 ipatests: increase timeout for test_trust
The timeout for test_trust is too short (6000s) and
the nightly tests often fail. Increase to 7200s.

Fixes: https://pagure.io/freeipa/issue/9326

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
2023-03-24 09:28:43 +01:00
Florence Blanc-Renaud 9ee16e8acc ipatests: increase timeout for test_acme
The test test_integration/test_acme.py times out frequently
and has a current timeout set to 2h, which is roughly
the average time for a successful run.

Increase by 15 minutes, so that even the tests requiring
packages update have enough time (for instance rawhide
run needs to update all the packages to the latest version).

Also create a separate job for the new test TestACMEPrune.

Fixes: https://pagure.io/freeipa/issue/9324

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2023-02-22 15:47:26 +01:00
David Pascual b0636c5408 doc: Use case examples for PR-CI checker tool
This document showcases common usecases for the user to
interact with the PR-CI checker tool.

Signed-off-by: David Pascual <davherna@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2023-02-18 09:02:27 +01:00