[ 
https://issues.apache.org/jira/browse/KNOX-3300?focusedWorklogId=1016592&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1016592
 ]

ASF GitHub Bot logged work on KNOX-3300:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Apr/26 07:00
            Start Date: 21/Apr/26 07:00
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #1202:
URL: https://github.com/apache/knox/pull/1202#issuecomment-4286524153

   ## Test Results
   50 tests   50 ✅  2s ⏱️
    1 suites   0 💤
    1 files     0 ❌
   
   Results for commit d9e49958.
   
   
[test-results]:data:application/gzip;base64,H4sIAKQg52kC/12MSQ7CMBAEvxL5zMHMxMHmM8h4kUYkMfJyQvwdJ4Es3LqqpXoxT71L7NqcTw1LhfIKtkSdKYwVoWI98nQJ/oNbKsb8mQc9q9mE19QfhIsxxK+JZVyL0z4EF7H1Zt7lZt7XTBgGyhWYVa5VSkhwrhOAHLiWHiRwgx1K8HgXyC8W2fsDK/ggcf8AAAA=
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1016592)
    Remaining Estimate: 47h 40m  (was: 47h 50m)
            Time Spent: 20m  (was: 10m)

> Add Python workflow integration tests for Health API, KnoxLDAP auth, 
> KNOXTOKEN, RemoteAuth, and global HSTS
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-3300
>                 URL: https://issues.apache.org/jira/browse/KNOX-3300
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: KnoxCLI
>            Reporter: Raghav Maheshwari
>            Priority: Major
>   Original Estimate: 48h
>          Time Spent: 20m
>  Remaining Estimate: 47h 40m
>
> Add HTTP integration tests under {{.github/workflows/tests/}} that run 
> against the gateway in CI. Tests use {{unittest}} + {{{}pytest{}}}, 
> {{requests}} (via {{{}common_utils{}}}), and assert behavior through status 
> codes, headers, and JSON only.
> h3. Scope (by file / area)
> {{test_health.py}}
>  * Health topology — ping: GET/POST {{/gateway/health/v1/ping}} (200, body 
> {{{}OK{}}}), {{{}text/plain{}}}, HSTS, Cache-Control (no-cache / no-store).
>  * Metrics: {{/gateway/health/v1/metrics}} with and without {{{}pretty{}}}; 
> JSON shape; core top-level keys (timers, histograms, counters, gauges, 
> version, meters); version string; section types 
> (timers/histograms/counters/gauges/meters as dicts).
>  * Gateway status: {{/gateway/health/v1/gateway-status}} (OK/PENDING, plain 
> text, HSTS, cache headers).
>  * Routing: unknown topology → 404.
> {{test_knoxauth_preauth_and_paths.py}}
>  * KnoxLDAP {{{}auth/api/v1/pre{}}}: unauthenticated and bad credentials → 
> 401; POST/GET with guest; GET with admin and LDAP-mapped group headers 
> ({{{}longGroupName*{}}}).
>  * KnoxLDAP {{{}auth/api/v1/extauthz{}}}: extra path segment → 404 (path not 
> ignored).
> {{test_knox_auth_service_and_LDAP.py}}
>  * Extauthz guest/admin actor and admin group headers.
>  * KNOXTOKEN under knoxldap: JWKS (JSON + {{{}keys{}}}), token v1/v2 with 
> guest (access_token, JWT-like shape), v1/v2 without auth → 401.
>  * Extauthz without credentials → 401.
> {{test_remote_auth.py}}
>  * RemoteAuth {{{}gateway/remoteauth/auth/api/v1/pre{}}}: guest 200 and 
> X-Knox-Actor-ID; admin and group headers; bad credentials → 401; POST pre 
> with guest → 200; no Authorization → 500 (error path).
> {{test_remoteauth_extauthz_additional_path.py}}
>  * RemoteAuth extauthz: guest 200; extra path segments ignored (including 
> deep path); admin actor + groups; bad creds → 401; no creds → 500.
> {{test_knox_configs.py}}
>  * Global HSTS on 404 for a non-existent gateway path (with Basic auth on the 
> request).



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

Reply via email to