Skip to content

[#1276] Add live-server JAX-RPC compatibility tests - #1277

Merged
maximthomas merged 4 commits into
OpenIdentityPlatform:masterfrom
maximthomas:features/1276-jaxrpc-e2e
Dec 4, 2026
Merged

maximthomas merged 4 commits into
OpenIdentityPlatform:masterfrom
maximthomas:features/1276-jaxrpc-e2e

Conversation

@maximthomas

Copy link
Copy Markdown
Contributor

Summary

  • Add five live-server Playwright checks covering SMSObjectIF, the AssertionManagerServlet trust check, and the IdentityServices WSDL.
  • Run the checks in build-docker against the WAR from build-maven. Include the recorded SOAP fixtures in the sparse checkout and use the IDP configuration store root DN.

Verification

  • Built the WAR with JDK 11 and deployed it with embedded OpenDJ. Verified the SHA-256 and the JAX-RPC RI servlet mapping in the container.
  • All five checks passed from a local sparse checkout configured with the CI paths.
  • Verified that the WSDL check rejects an additional encoded SOAP body.

Closes #1276

@maximthomas maximthomas added ci CI, GitHub Actions, or build pipeline tests Test suite: coverage, fixtures, or test infrastructure labels Dec 3, 2026
@maximthomas
maximthomas marked this pull request as ready for review December 3, 2026 15:12
@maximthomas
maximthomas requested a review from vharseko December 3, 2026 15:12

@vharseko vharseko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. [P2] Verify the namespace of the type named by xsi:type. soapResult checks the namespace of the attribute itself, then returns its value as a string. Removing xmlns:xsd from the recorded getRootSuffix response leaves xsi:type="xsd:string" and the result text unchanged, so the assertion still passes even though a SOAP decoder cannot resolve the type. The same applies to ns1:hashMap in readResponse. Please keep the literal spelling check for the legacy client and also use result.lookupNamespaceURI(...) to check each prefix against the URI in the fixture. jaxrpc-test.spec.mjs, lines 97–101

  2. [P3] Let the trust check pass on localized installations. AssertionManagerServlet obtains untrustedSite from the installation’s libSAML resource bundle. A French installation returns the expected 403 with a translated message, so the English substring assertion fails while the trust check works correctly. Please keep the HTTP 403 assertion required by #1276 and drop the English text check. jaxrpc-test.spec.mjs, lines 156–162 · French resource bundle

@maximthomas

Copy link
Copy Markdown
Contributor Author

@vharseko, I addressed both items from your review in 907b377.

  • The SOAP assertions still check the literal xsi:type spellings and now resolve the value prefixes with lookupNamespaceURI. The tests reject both missing and incorrect namespace bindings for xsd:string and ns1:hashMap.
  • The AssertionManagerServlet test now checks HTTP 403 independently of the response language, as specified in JAX-RPC: add live-server e2e coverage for the RPC/encoded endpoints #1276. In a fixture replay, the test accepted a French HTTP 403 response and rejected HTTP 200.

All five Playwright tests passed against the branch WAR with en_US and embedded OpenDJ. A separate live run with fr_FR exposed a server-side issue. ESAPI rejects the curly apostrophe in the translated message, and saml2error.jsp then looks up untrustedSite in libSAML2, where the key is absent. The live response was HTTP 500, which the test correctly rejected.

@maximthomas
maximthomas requested a review from vharseko December 3, 2026 18:12

@vharseko vharseko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both findings from my previous review are resolved in 907b3778e0. All five Playwright tests passed in a local fixture replay. Removing or changing the namespace binding for either xsd:string or ns1:hashMap made the corresponding test fail.

The trust check accepted a French-language HTTP 403 response and rejected HTTP 500. My earlier review incorrectly said that a live fr_FR installation returns 403. Your live run showed that it returns 500, which the revised test correctly flags under #1276.

I have no further findings.

@maximthomas
maximthomas merged commit e208221 into OpenIdentityPlatform:master Dec 4, 2026
16 checks passed
@maximthomas
maximthomas deleted the features/1276-jaxrpc-e2e branch December 4, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, GitHub Actions, or build pipeline tests Test suite: coverage, fixtures, or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JAX-RPC: add live-server e2e coverage for the RPC/encoded endpoints

2 participants