Skip to content

Fix Groovy script test order dependency - #198

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/groovy-script-test-order
Nov 23, 2026
Merged

vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix/groovy-script-test-order

Conversation

@vharseko

Copy link
Copy Markdown
Member

Summary

Use the test classpath root in ScriptTest so the shared Groovy engine can find file-backed test scripts when the permissions tests run first. This addresses the six Cannot open URL failures seen in CI for #197.

Validation

  • Reproduced all six failures on master with ScriptTest first. After the change, all 40 tests passed in both class orders on JDK 11.
  • mvn -pl openig-core -am verify passed all 1,072 tests on JDK 11.

@vharseko vharseko added bug java Pull requests that update Java code tests Adds or updates tests labels Nov 23, 2026
@vharseko
vharseko requested a review from maximthomas November 23, 2026 16:06

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

praise: Using the test classpath root gives the shared Groovy engine access to file-backed fixtures when ScriptTest initializes it first. The permission assertions examine the separate cache created by Script.fromSource. Setup at reviewed HEAD

@vharseko
vharseko merged commit 5ed6411 into OpenIdentityPlatform:master Nov 23, 2026
24 of 25 checks passed
@vharseko
vharseko deleted the fix/groovy-script-test-order branch November 23, 2026 21:35
vharseko added a commit that referenced this pull request Nov 24, 2026
## Summary

Use the latest release tag from `OpenIdentityPlatform/OpenIG` in the
Docker build. Upstream runs read `tag_name` with `gh api` and the
workflow token. Fork pushes use the same public release endpoint and
keep their own image repository, so forks without published releases can
still run the Docker smoke test.

Fail the version lookup step if the API request fails or the tag is
missing or empty. In #198, an empty version reached the Docker smoke
test and produced `invalid reference format`.

## Validation

- Ran the workflow step on Ubuntu 26.04 in upstream and fork contexts
with a valid tag, HTTP 403, a missing tag, and an empty tag.
- Confirmed that the live public lookup in the fork context returned
`6.2.0` and set the image repository to `vharseko/openig`.
- Passed `mvn verify` on JDK 11, `actionlint`, and `git diff --check`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug java Pull requests that update Java code tests Adds or updates tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants