Skip to content

Run unit tests as part of Java Distribution IT #16039

@stianst

Description

@stianst

Java Distribution IT tests Keycloak running with different JDKs, but doesn't currently run unit tests.

Blocked on failing tests:

Windows - OpenJDK 17

SdJwtTest.testA1_Example2_with_nested_disclosure_and_decoy_claims:77 expected:<{"_sd":["IZOyJn0D17aK845iZ8i5hDloSkartiUlvp_hKjNbAt8","Lsx_tw-UwEZ_HsK8QcIDkCn5Wvfe5BmvcnWQB6ikqqo","QNQd3_y8o6qtdJguQDuA3zdfdYz-WgLSaje06s2UmWM","UWzvCBURYx4dSkeBCptgLtudFbLgnJoBgmaHB-76lOg","cx4toEb1qARkAf8NuD0ATk3oM6m8a0q8nAVFDtBdfoo","oUuE90DUCx3Xu_H5zQMBEqAdbMrlAZ7QoK5zIJ_B1mA","qd2G5TGH-6M1qNy8ouhXfsE7U6vWDOnp2FUvovAaW74","uNHoWYhXsZhVJCNE2Dqy-zqt7t69gJKy5QaFv7GrMX4"]}> but was:<{"_sd":["HNiX73yXiuLJblNcYiKhLQ2HEyiYBNO2DP3KnQnfn6o","IZOyJn0D17aK845iZ8i5hDloSkartiUlvp_hKjNbAt8","QNQd3_y8o6qtdJguQDuA3zdfdYz-WgLSaje06s2UmWM","UWzvCBURYx4dSkeBCptgLtudFbLgnJoBgmaHB-76lOg","ezSvJ3hwK7Z5sDyl-wsv7GN6oMFe7dQvatHng0FBHjA","hLAoieH93sM-dcjOC3cubRBsPyWnp8oYJEKve_3xMHc","oUuE90DUCx3Xu_H5zQMBEqAdbMrlAZ7QoK5zIJ_B1mA","uNHoWYhXsZhVJCNE2Dqy-zqt7t69gJKy5QaFv7GrMX4"]}>
SdJwtUtilsTest.testBase64urlEncodedObjectNoWhiteSpacedJsonArray:98 expected:<...mZhbWlseV9uYW1lIiwiT[cO2Yml1cyJd]> but was:<...mZhbWlseV9uYW1lIiwiT[fZiaXVzIl0]>
SdJwtUtilsTest.testBase64urlEncodedObjectWhiteSpacedJsonArray:77 expected:<...YW1pbHlfbmFtZSIsICJN[w7ZiaXVzIl0]> but was:<...YW1pbHlfbmFtZSIsICJN[9mJpdXMiXQ]>
UndisclosedClaimTest.testToBase64urlEncoded:56 expected:<...mZhbWlseV9uYW1lIiwiT[cO2Yml1cyJd]> but was:<...mZhbWlseV9uYW1lIiwiT[fZiaXVzIl0]>

Windows - OpenJDK 21

TrustedHostClientRegistrationPolicyTest.testLocalhostDomain:70
ResourceLoaderTest.testResource:24->assertResourceAsStream:63 expected null, but was:<java.io.BufferedInputStream@dc72335>
PlainTextVaultProviderTest.shouldPreventPathFileSeparatorInVaultSecretId:224
ResourceLoaderTest.testFiles:54 � IllegalArgument 'other' has different root

Ubuntu - OpenJDK 25

FIPS1402JWKTest>JWKTest.publicEs256P256:215->JWKTest.testPublicEs256:145 » Runtime Error creating X509v3Certificate.
FIPS1402JWKTest>JWKTest.publicEs256P384:225->JWKTest.testPublicEs256:145 » Runtime Error creating X509v3Certificate.
FIPS1402JWKTest>JWKTest.publicEs256P521:220->JWKTest.testPublicEs256:145 » Runtime Error creating X509v3Certificate.
FIPS1402JWKTest>JWKTest.testCertificateGenerationWithEcAndRsa:208 » Runtime Error creating X509v3Certificate.
FIPS1402JWKTest>JWKTest.testCertificateGenerationWithRsaAndEc:193 » Runtime Error creating X509v3Certificate.
FIPS1402SecureRandomTest.testSecureRandom:47 » NullPointer Cannot invoke "java.security.Provider$Service.getAttribute(String)" because "service" is null

Ubuntu - OpenJDK 17

XPathAttributeMapperTest.testInvalidXml:55->testMapping:102->testMapping:106->testMapping:133 » Runtime Could not parse xml element

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions