168 Commits

Author SHA1 Message Date
Lukas Hanusovsky
d9b4bd047f
[Keycloak Test Framework] Infinispan cache + ClusterlessTestSuite configuration (#42172)
* [Keycloak Test Framework] Infinispan server + ClusterlessTestSuite and MultisiteTestSuite configuration

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

* Utilise ClientIntelligence.BASIC to ensure that internal docker IPs
never used by Infinispan client

Signed-off-by: Ryan Emerson <remerson@ibm.com>

* Code refactoring + properties utility

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

---------

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
Signed-off-by: Ryan Emerson <remerson@ibm.com>
Co-authored-by: Ryan Emerson <remerson@ibm.com>
2025-09-17 07:13:11 +00:00
Pedro Igor
58990a5544 Add a policy condition based on user attributes
Closes #42118

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2025-09-09 12:07:59 -03:00
mposolda
5a05d2123e Unbounded login_hint parameter Can Corrupt KC_RESTART Cookie
closes #40857

Signed-off-by: mposolda <mposolda@gmail.com>
2025-09-09 11:05:19 +02:00
Lukas Hanusovsky
de50a15a2f
Test framework - Fix for wrongly placed custom KeycloakServerConfig (#42422)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-09-08 11:23:46 +02:00
Steven Hawkins
05c7c625d3
fix: don't show the local access screen if a service account exists (#42218)
closes: #42201

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-09-05 18:22:31 +02:00
Stian Thorgersen
320ea5a9a7
Experimental SPIFFE identity provider (#42314)
Closes #42313

Signed-off-by: stianst <stianst@gmail.com>
2025-09-04 14:48:18 +02:00
stianst
57242d2497 Experimental federated client authentication
Closes #42228

Signed-off-by: stianst <stianst@gmail.com>
2025-09-02 10:02:51 -03:00
Alexander Schwartz
ca1e61047a
Adding TiDB dialect for Quarkus
Closes #41897

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Signed-off-by: Dennis Kniep <kniepdennis@gmail.com>
Co-authored-by: Dennis Kniep <kniepdennis@gmail.com>
2025-08-26 17:44:45 -03:00
Šimon Vacek
42520d8409
Refactor test database config in the new framework (#41320)
* Refactor test database config in the new framework

Closes #41319

Signed-off-by: Simon Vacek <simonvacky@email.cz>

# Conflicts:
#	tests/base/src/test/java/org/keycloak/tests/db/CaseSensitiveSchemaTest.java
#	tests/base/src/test/java/org/keycloak/tests/db/PreserveSchemaCaseLiquibaseTest.java

* Moved test method to the abstract class

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Conform to conventions

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Add lifecycle class to custom DBs to prevent containers with re-use from running after tests

Signed-off-by: Stian Thorgersen <stian@redhat.com>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
Signed-off-by: Stian Thorgersen <stian@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
2025-08-15 09:29:08 +02:00
Dennis Kniep
d74a10d87a
Add TiDB as supported db
Closes #41455

Signed-off-by: Dennis Kniep <kniepdennis@gmail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-08-14 07:27:21 +00:00
Lukas Hanusovsky
5b3b36e300
Move RealmRolesTest.java to the new testsuite (#41404)
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-08-13 12:56:23 +02:00
Peter Skopek
651d651c30 Add missing artifact descriptions to allow Maven Central Portal Publisher pass validation process. (#40822)
Signed-off-by: Peter Skopek <pskopek@redhat.com>
2025-08-12 16:50:17 +02:00
Šimon Vacek
e664e56b62
Test framework config builders name unification (#41727)
* Test framework config builders name unification

Closes #37275

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* Update test-framework/core/src/main/java/org/keycloak/testframework/realm/RealmConfigBuilder.java

Signed-off-by: Stian Thorgersen <stian@redhat.com>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
Signed-off-by: Stian Thorgersen <stian@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
2025-08-11 12:56:33 +00:00
Stian Thorgersen
b71b1f5fea
Disable tests for specific databases and servers in test framework (#41358)
Closes #41357

Signed-off-by: stianst <stianst@gmail.com>
2025-07-24 09:34:15 +02:00
Stian Thorgersen
bd676ea845
Test suites config for the new test framework (#41318)
Closes #41316

Signed-off-by: stianst <stianst@gmail.com>
2025-07-23 09:23:16 +02:00
Václav Muzikář
50a5d9afe6
Return global scope to @InjectHttpClient (#38586)
Signed-off-by: Václav Muzikář <vmuzikar@redhat.com>
2025-07-23 08:54:18 +02:00
Lukas Hanusovsky
d7273e6b1f
Move ConsentsTest.java to the new testsuite (#40323)
* Moving files to the new test suite

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

* Move ConsentsTest.java, UserRoleTest.java to the new testsuite

Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

---------

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-22 12:31:59 +02:00
Ryan Emerson
52a83509dc
Default jdbc-ping cluster setup for distributed caches fails in Oracle
* Add DatabaseConfig to TestDatabase so the underlying DB can be
  configured per test
* Allow DB initScripts to be configured by tests

Closes #40784
Closes #41105

Signed-off-by: Ryan Emerson <remerson@redhat.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-07-17 15:57:25 +00:00
Lukas Hanusovsky
788e981917 Move UserTest.java to the new testsuite
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-16 08:13:30 +02:00
Lukas Hanusovsky
17beaa1359 Migrate FineGrainAdminUnitTest.java to the new testsuite
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-15 13:38:03 +02:00
Lukas Hanusovsky
660a4aa48a Move IdentityProviderTest.java to the new testsuite
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-14 15:55:50 +02:00
Lukas Hanusovsky
d2b45373d3 Move PartialImportTest.java to the new testsuite
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-14 14:00:17 +02:00
Lukas Hanusovsky
cabd7cd474 Move ConcurrencyTest.java, AbstractConcurrencyTest.java to the new testsuite
Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-07-14 11:10:54 +02:00
Stian Thorgersen
8a694a585b
Add generic update methods for builders (#40312)
Closes #40311

Signed-off-by: stianst <stianst@gmail.com>
2025-07-11 09:03:28 +02:00
Pascal Knüppel
f39a37d8d1
[OID4VCI] Move realm attributes to clientScope and protocol-mappers (#39768)
fixes #39527


Signed-off-by: Pascal Knüppel <pascal.knueppel@governikus.de>
Signed-off-by: Captain-P-Goldfish <captain.p.goldfish@gmx.de>
2025-07-10 14:46:36 +02:00
Martin Kanis
5a42390341 Make UPDATE_EMAIL a supported feature
Closes #40227

Signed-off-by: Martin Kanis <mkanis@redhat.com>
2025-07-09 10:15:48 -03:00
Ryan Emerson
f0c623598e
Run clustering compatibility tests on release/x.y branches
Closes #39966

Signed-off-by: Ryan Emerson <remerson@redhat.com>
2025-07-07 21:08:11 +02:00
Ryan Emerson
f8f561a435
Check cluster is correctly formed in ClusteredKeycloakServer
Closes #40858

Signed-off-by: Ryan Emerson <remerson@redhat.com>
Co-authored-by: Pedro Ruivo <pruivo@users.noreply.github.com>
2025-07-04 09:12:51 +00:00
Ryan Emerson
9543008899
Create clustering test cases for OIDC flows (#40623)
Closes #39965

Signed-off-by: Ryan Emerson <remerson@redhat.com>
Signed-off-by: Michal Hajas <mhajas@redhat.com>
Co-authored-by: Michal Hajas <mhajas@redhat.com>
2025-06-25 15:06:10 +02:00
Michal Hajas
d2f4635ea0
Add clustering tests to new test framework
Closes #39962

Signed-off-by: Michal Hajas <mhajas@redhat.com>
Co-authored-by: Pedro Ruivo <pruivo@redhat.com>
2025-06-13 20:26:07 +02:00
Steven Hawkins
f40cb88db4
fix: removing KeycloakApplication usage of keycloak-add-user.json (#39460)
* fix: removing KeycloakApplication usage of keycloak-add-user.json

closes:#39428

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Removing the test keycloak-add-user.json

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-05-08 07:58:09 +00:00
Simon Vacek
ba150ed0f9 Split GroupTest into multiple files
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-04-29 11:52:15 +02:00
Simon Vacek
a8e33732cd Move AbstractGroupTest.java, GroupMappersTest.java, GroupTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

# Conflicts:
#	test-framework/core/src/main/java/org/keycloak/testframework/realm/RealmConfigBuilder.java
#	test-framework/core/src/main/java/org/keycloak/testframework/realm/UserConfigBuilder.java

# Conflicts:
#	test-framework/core/src/main/java/org/keycloak/testframework/realm/ClientConfigBuilder.java
2025-04-29 11:52:15 +02:00
Šimon Vacek
666868a08d
Move ClientTest.java to the new testsuite (#38933)
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-04-29 09:18:49 +02:00
vramik
602258d935 [FGAP] Switch the feature from Experimental to Supported
Closes #38651

Signed-off-by: vramik <vramik@redhat.com>
2025-04-08 13:00:47 -03:00
Lukas Hanusovsky
f5323fec24
[Test framework] AdminConsoleWhoAmILocaleTest migration (#38158)
* Moving files to the new test suite

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

* Move AdminConsoleWhoAmILocaleTest.java, DeclarativeUserTest.java to the new testsuite

Part of: #34494

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>

---------

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-04-07 12:45:52 +02:00
Václav Muzikář
2a0ce46471
Prevent frontend endpoint redirect to admin endpoint (#38464)
Closes #38463

Signed-off-by: Václav Muzikář <vmuzikar@redhat.com>
2025-03-28 18:44:43 +01:00
Alexander Schwartz
83e99f7617 Set the mail.from to avoid looking up the local hostname
Closes #38353

Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
2025-03-24 09:38:03 +01:00
Sebastian Rose
4fb1c41155 Sending Mails via SMTP and XOAUTH2 authentication mechanism
Closes #17432

Signed-off-by: Sebastian Rose <sebastian.rose@gmail.com>
2025-03-21 10:12:18 +01:00
Stian Thorgersen
d7e3d480fb
Sort test classes by server config (#38215)
Signed-off-by: stianst <stianst@gmail.com>
2025-03-20 10:41:31 +01:00
Stian Thorgersen
80e5c37969
Managed resource not injected if a dependency is incompatibl (#38196)
Closes #38193

Signed-off-by: stianst <stianst@gmail.com>
2025-03-20 08:31:03 +01:00
Stian Thorgersen
3cdb8d12ae
Updating a client with rollback in a test doesn't reset all values (#38244)
Closes #38243

Signed-off-by: stianst <stianst@gmail.com>
2025-03-19 13:44:13 +01:00
Stian Thorgersen
588cf0f6c2
Attribute added to managed test client with rollback is not removed (#38213)
Closes #38208

Signed-off-by: stianst <stianst@gmail.com>
2025-03-18 15:43:46 +01:00
Stian Thorgersen
221d21639d
Re-use HttpClient across multiple tests (#38197)
Closes #38195

Signed-off-by: stianst <stianst@gmail.com>
2025-03-18 10:04:24 +01:00
Simon Vacek
546724ddf8 Move AdminEventTest.java, LoginEventsTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>

# Conflicts:
#	test-framework/core/src/main/java/org/keycloak/testframework/realm/RealmConfigBuilder.java
2025-03-17 12:38:57 +01:00
stianst
b2925f36e4 Add UUID matcher and check event id always
Signed-off-by: stianst <stianst@gmail.com>
2025-03-14 11:25:07 +01:00
Simon Vacek
e1fdd1dab6 Move ServiceAccountClientTest.java to the new testsuite
Part of: #34494

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2025-03-14 10:21:02 +01:00
Lukas Hanusovsky
8f0bc985f6
[Test framework] AttackDetectionResourceTest migration (#38010)
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
2025-03-13 13:50:24 +01:00
vramik
872a691757 Remove permissions and resources when their corresponding objects are deleted
Closes #37242

Signed-off-by: vramik <vramik@redhat.com>
2025-03-11 14:58:03 -03:00
Stian Thorgersen
7a0fcb6187
Refactor logout methods and move to AbstractOAuthClient (#37882)
Closes #37881

Signed-off-by: stianst <stianst@gmail.com>
2025-03-07 12:15:56 +01:00