[
https://issues.apache.org/jira/browse/KNOX-3482?focusedWorklogId=1043661&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1043661
]
ASF GitHub Bot logged work on KNOX-3482:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Sep/26 06:27
Start Date: 24/Sep/26 06:27
Worklog Time Spent: 10m
Work Description: Raghav-Mah3shwari opened a new pull request, #1426:
URL: https://github.com/apache/knox/pull/1426
## What changes were proposed in this pull request?
Added integration coverage for Knox health endpoints:
- Verify `POST /gateway/health/v1/ping`.
- Verify formatted metrics using `?pretty=true`.
- Verify gateway readiness states (`OK` or `PENDING`).
- Verify required response headers.
- Verify unknown health endpoint paths return `404`.
## How was this patch tested?
The Maven build completed successfully.
The Docker Compose integration test suite was rebuilt and executed using:
mvn clean -Ppackage,release install -T 1C \
-Dmaven.test.skip=true -Dpmd.skip=true -Dcpd.skip=true \
-Dcheckstyle.skip=true -Dspotbugs.skip=true -Drat.skip=true \
-Dforbiddenapis.skip=true -Denforcer.skip=true -Djacoco.skip=true \
-Dmaven.javadoc.skip=true -Dmaven.source.skip=true \
-Dshellcheck.skip=true -Dxml.skip=true \
-s .github/workflows/build/settings.xml
docker compose -f ./.github/workflows/compose/docker-compose.yml \
build --no-cache knox-dev
docker compose -f ./.github/workflows/compose/docker-compose.yml \
down --remove-orphans
docker compose -f ./.github/workflows/compose/docker-compose.yml \
up --exit-code-from tests tests
## Results:
•Maven build: BUILD SUCCESS
•Integration tests: 106 passed, 0 failed
•Pylint: 10.00/10
## Integration Tests
Updated .github/workflows/tests/test_health.py. The tests are automatically
discovered and executed by the Docker Compose test job configured through
.github/workflows/tests.
## UI changes
No UI changes.
Issue Time Tracking
-------------------
Worklog Id: (was: 1043661)
Remaining Estimate: 0h
Time Spent: 10m
> Expand Knox health endpoint integration coverage
> ------------------------------------------------
>
> Key: KNOX-3482
> URL: https://issues.apache.org/jira/browse/KNOX-3482
> Project: Apache Knox
> Issue Type: Task
> Reporter: Raghav Maheshwari
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Add integration tests to the Docker-based test suite referenced by
> .github/workflows/tests.yml. The tests cover POST health probes, formatted
> metrics responses, gateway readiness states, response headers, and invalid
> endpoint paths.
> Scope:
> •Verify POST /gateway/health/v1/ping returns 200 OK.
> •Verify GET /gateway/health/v1/metrics?pretty=true returns formatted JSON
> equivalent to compact output.
> •Verify /gateway/health/v1/gateway-status returns OK or PENDING with required
> headers.
> •Verify unknown gateway-status suffixes return 404.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)