Skip to content

Add proxy integration test - #754

Merged
Link- merged 1 commit into
mainfrom
Link-/add-proxy-integration-tests
Jan 30, 2026
Merged

Add proxy integration test#754
Link- merged 1 commit into
mainfrom
Link-/add-proxy-integration-tests

Conversation

@Link-

@Link- Link- commented Jan 30, 2026

Copy link
Copy Markdown
Member

Proxy Integration Test for upload-artifact

This test validates that the upload-artifact action properly honors http_proxy and https_proxy environment variables.

How it works

  1. Environment Setup: Runs in an Ubuntu container with a Squid proxy service container
  2. Traffic Blocking: Uses iptables to block all direct HTTP/HTTPS traffic (ports 80/443), allowing only traffic through the proxy
  3. Verification: Confirms direct HTTPS requests fail while proxy requests succeed
  4. Test Execution: Uploads a timestamped test artifact file

Key point

If the action ignores the proxy configuration and attempts direct connections, the upload will fail due to iptables blocking. Success indicates the action correctly routes traffic through the configured proxy.