smolnar82 opened a new pull request, #1316:
URL: https://github.com/apache/knox/pull/1316

   [KNOX-3388](https://issues.apache.org/jira/browse/KNOX-3388) - Batch 
credential-store alias creation in single-EKU test entrypoint
   
   ## What changes were proposed in this pull request?
   
   `gateway-single-eku.sh` created its 5 credential-store aliases via 5 
separate `knoxcli.sh create-alias` calls. Each is a cold JVM boot (~6-8s), so 
~30-40s was spent before the gateway JVM started. CI's `sleep 30` (measured 
from container
   start) was consumed by alias creation, so the gateway bound 8443 only after 
`pytest` connected → intermittent `Connection refused` in the single-EKU mTLS 
suite.
   
   Replaced the loop with a single batch `knoxcli.sh create-aliases --alias ... 
--value ...` invocation (one JVM boot). Container-start → `Started gateway on 
port 8443` dropped from ~35s to ~9s, leaving comfortable margin under the 
existing wait.
   
   ## How was this patch tested?
   
   - Recreated the single-EKU knox locally and timed startup: gateway bound 
8443 in ~9s (was ~35s).
   - Ran the single-EKU mTLS suite: `pytest test_single_eku_mtls.py` → 3 passed.
   
   ## Integration Tests
   
   No test changes needed — this fixes flakiness in the existing 
`test_single_eku_mtls.py` suite under `.github/workflows/tests`.
   
   ## UI changes
   N/A
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to