Raghav Maheshwari created KNOX-3293:
---------------------------------------
Summary: dd integration tests: health metrics JSON, KnoxLDAP
preauth/extauthz paths, RemoteAuth extauthz
Key: KNOX-3293
URL: https://issues.apache.org/jira/browse/KNOX-3293
Project: Apache Knox
Issue Type: Improvement
Components: KnoxShell
Reporter: Raghav Maheshwari
New/extended pytest coverage under {{.github/workflows/tests/}} for the Docker
Compose–driven Knox stack (health, {{{}knoxldap{}}}, {{remoteauth}} topologies).
{{test_health.py}}
* {{test_health_metrics_returns_json}} — {{GET
/gateway/health/v1/metrics?pretty=true}} returns 200, response is JSON
({{{}Content-Type{}}} and parseable body as an object).
{{test_knoxauth_preauth_and_paths.py}} (KnoxLDAP)
* {{test_preauth_requires_auth}} — preauth without credentials → 401.
* {{test_preauth_bad_credentials_unauthorized}} — invalid Basic auth → 401.
* {{test_preauth_post_supported}} — POST to preauth with valid credentials
works.
* {{test_extauthz_additional_path_not_ignored_in_knoxldap}} — extra path under
extauthz is not treated as the base resource (404 vs success).
{{test_remoteauth_extauthz_additional_path.py}} (RemoteAuth)
* {{test_extauthz_success}} — valid Basic auth → 200 and expected
{{{}X-Knox-Actor-ID{}}}.
* {{test_extauthz_additional_path_is_ignored}} — with ignore-additional-path,
extra segments still succeed.
* {{test_extauthz_bad_credentials_unauthorized}} — bad credentials → 401.
* {{test_extauthz_missing_credentials_server_error}} — no {{Authorization}}
header → 500 (current behavior).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)