[
https://issues.apache.org/jira/browse/KNOX-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072331#comment-18072331
]
ASF subversion and git services commented on KNOX-3293:
-------------------------------------------------------
Commit 3bca5f10bb2f3e7214f25626fe203791121fd7ce in knox's branch
refs/heads/master from Raghav Maheshwari
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=3bca5f10b ]
KNOX-3293: Add integration tests: health metrics JSON, KnoxLDAP
preauth/extauthz paths, RemoteAuth extauthz (#1194)
* KNOX-3293: Add integration tests: health metrics JSON, KnoxLDAP
preauth/extauthz paths, RemoteAuth extauthz
* Refactoered tests and made a common util file
> Add 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
> Priority: Major
> Original Estimate: 24h
> Time Spent: 50m
> Remaining Estimate: 23h 10m
>
> 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)