wso2-extensions / identity-outbound-auth-x509

Apache License 2.0
1 stars 55 forks source link

Update Authentication Context Caches after Setting the Cert in the Servlet #81

Closed dhaura closed 6 months ago

dhaura commented 7 months ago

Purpose

Related Issues

[1] - https://github.com/wso2/product-is/issues/18437#issuecomment-1929320969

jenkins-is-staging commented 7 months ago

PR builder started Link: https://github.com/wso2/product-is/actions/runs/7899151090

jenkins-is-staging commented 7 months ago

PR builder completed Link: https://github.com/wso2/product-is/actions/runs/7899151090 Status: failure

dhaura commented 7 months ago

PR builder failed due to reason that unit tests of this repo are written in PoweMock version 1 which is incompatible with Java 11 [1]. When the repo is built against Java 8, all unit tests pass with a successful build.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for WSO2 Carbon Extension - X509 Certificate POM 3.1.14-SNAPSHOT:
[INFO] 
[INFO] WSO2 Carbon Extension - X509 Certificate POM ....... SUCCESS [  2.718 s]
[INFO] WSO2 Carbon - X509Certificate Authenticator ........ SUCCESS [ 29.181 s]
[INFO] WSO2 Carbon - X509Certificate Authenticator Feature  SUCCESS [  0.510 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.341 s
[INFO] Finished at: 2024-02-14T15:40:48+05:30
[INFO] ------------------------------------------------------------------------

[1] - https://itecnote.com/tecnote/java-powermock-java-11/

jenkins-is-staging commented 7 months ago

PR builder started Link: https://github.com/wso2/product-is/actions/runs/7910444938

piraveena commented 7 months ago

@dhaura We should be able to trigger PR builds using java8.

jenkins-is-staging commented 7 months ago

PR builder completed Link: https://github.com/wso2/product-is/actions/runs/7910444938 Status: failure

piraveena commented 7 months ago
index.html
[ERROR] Tests run: 1979, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 4,487.476 s <<< FAILURE! - in TestSuite
[ERROR] testInit(org.wso2.identity.integration.test.saml.RegistryMountTestCase)  Time elapsed: 4.009 s  <<< FAILURE!
java.lang.AssertionError: Tenant creation failed expected:<201> but was:<500>
    at org.wso2.identity.integration.test.saml.RegistryMountTestCase.addRegistryMountTenant(RegistryMountTestCase.java:264)
    at org.wso2.identity.integration.test.saml.RegistryMountTestCase.testInit(RegistryMountTestCase.java:114)

[ERROR] testClear(org.wso2.identity.integration.test.saml.RegistryMountTestCase)  Time elapsed: 0.005 s  <<< FAILURE!
java.lang.NullPointerException
    at org.wso2.identity.integration.test.saml.RegistryMountTestCase.deleteApplication(RegistryMountTestCase.java:290)
    at org.wso2.identity.integration.test.saml.RegistryMountTestCase.testClear(RegistryMountTestCase.java:136)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   RegistryMountTestCase.testClear:136->deleteApplication:290 NullPointer
[ERROR]   RegistryMountTestCase.testInit:114->addRegistryMountTenant:264 Tenant creation failed expected:<201> but was:<500>
[INFO] 
[ERROR] Tests run: 1979, Failures: 2, Errors: 0, Skipped: 1
jenkins-is-staging commented 7 months ago

PR builder started Link: https://github.com/wso2/product-is/actions/runs/7911585184

jenkins-is-staging commented 7 months ago

PR builder completed Link: https://github.com/wso2/product-is/actions/runs/7911585184 Status: success