Raghav Maheshwari created KNOX-3296:
---------------------------------------

             Summary: Expand CI integration tests: health metrics, HSTS, and 
KnoxLDAP auth paths
                 Key: KNOX-3296
                 URL: https://issues.apache.org/jira/browse/KNOX-3296
             Project: Apache Knox
          Issue Type: Improvement
          Components: KnoxCLI
            Reporter: Raghav Maheshwari


* Health API tests ({{{}test_health.py{}}})

 ** {{/gateway/health/v1/metrics}}: JSON response, alignment with Java 
{{GatewayHealthFuncTest}} top-level keys (timers, histograms, counters, gauges, 
version, meters), with and without {{{}pretty=true{}}}.
 ** {{/gateway/health/v1/ping}}: {{Content-Type}} is plain text; existing ping 
+ HSTS checks retained.
 * KnoxLDAP auth tests ({{{}test_knoxauth_preauth_and_paths.py{}}})

 ** Preauth ({{{}/gateway/knoxldap/auth/api/v1/pre{}}}): unauthenticated → 401; 
bad credentials → 401; POST and GET with valid guest credentials → 200 and 
{{{}x-knox-actor-username{}}}; admin → 200 and expected group headers 
({{{}longGroupName1{}}}, {{{}longGroupName2{}}}).
 ** Extauthz path behavior: GET under {{extauthz}} with an extra path segment 
returns 404 (path not ignored), guarding routing/regression for KnoxLDAP.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to