Repository navigation
test: integration suite against real GLPI 10, 11 and 12 in CI - #6
Merged
Merged
Conversation
- tests/integration: legacy and High-Level API clients (sync + async) against a live server: version, session helpers, pagination past the HL API default limit of 100, ticket lifecycle with Followup/Task/ Solution sub-items, search engine and RSQL filter, purge -> 404, SoftwareLicense route; HL API runs on every version the server offers (default, 2.3, 3.0). Skipped unless GLPI_IT_URL is set. - .github/scripts/glpi_it_setup.sh + glpi_oauth_client.php: prepare a fresh glpi/glpi container (APIs, open API client, OAuth client). - .github/workflows/integration.yaml: matrix glpi/glpi:10.0, 11.0, 12.0 on PRs, pushes to main and weekly, so new GLPI patch releases that break the client show up within a week. Verified locally on fresh containers: 10.0.28 6 passed (HL API skipped), 11.0.11 20 passed, 12.0.0 27 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Giovanny Rodriguez <giovanny.rodriguez@imagunet.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs both clients (sync and async) against official
glpi/glpicontainers on every PR, every push tomainand once a week. The matrix uses floating tags10.0,11.0and12.0, so each run tests the latest patch of each branch.Each of the four real bugs fixed in 1.5.0 has a test here that fails against the old behaviour:
get_version()returning0.0.0;search()returning 404;add_sub_itemfailing with a permission error.Verified locally on fresh containers (podman), same script as CI: 10.0.28: 6 passed (HL API tests skipped); 11.0.11: 20 passed; 12.0.0: 27 passed. GLPI setup takes about 1 minute per version.
The suite is skipped without
GLPI_IT_URL, so plainpytestis unchanged (336 passed, 13 skipped).🤖 Generated with Claude Code