From 990e4bdf94a3375cb7013d3ee499e93500983bf2 Mon Sep 17 00:00:00 2001 From: John Stairs Date: Mon, 19 Jan 2026 14:51:46 +0000 Subject: [PATCH] Haden HTTP proxy tests --- cli/integrationtest/httpproxy_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/integrationtest/httpproxy_test.go b/cli/integrationtest/httpproxy_test.go index 37973618..89cd21ec 100644 --- a/cli/integrationtest/httpproxy_test.go +++ b/cli/integrationtest/httpproxy_test.go @@ -101,7 +101,7 @@ func TestHttpProxy(t *testing.T) { t.Log("stdErr", stdErr) } require.Error(t, err, "curl should fail because the proxy is not used") - s.ShellExecSucceeds("tyger-proxy", fmt.Sprintf("curl --retry 5 --proxy %s --fail %s/metadata", squidProxy, tygerUrl)) + s.ShellExecSucceeds("tyger-proxy", fmt.Sprintf("curl --retry 5 --retry-connrefused --retry-delay 1 --proxy %s --fail %s/metadata", squidProxy, tygerUrl)) // Specify the proxy via environment variable s.ShellExecSucceeds("tyger-proxy", fmt.Sprintf("export HTTPS_PROXY=%s && tyger login -f /creds.yml --log-level trace && tyger buffer read %s > /dev/null", squidProxy, bufferId)) @@ -149,7 +149,7 @@ func TestHttpProxy(t *testing.T) { _, _, err = s.ShellExec("tyger-proxy", fmt.Sprintf("curl --proxy %s --fail %s/metadata", squidProxy, tygerUrl)) require.Error(t, err, "curl should fail because the root CA certificates have been removed") - s.ShellExecSucceeds("tyger-proxy", fmt.Sprintf("curl --retry 5 --proxy %s --insecure --fail %s/metadata", squidProxy, tygerUrl)) + s.ShellExecSucceeds("tyger-proxy", fmt.Sprintf("curl --retry 5 --retry-connrefused --retry-delay 1 --proxy %s --insecure --fail %s/metadata", squidProxy, tygerUrl)) // Use CA certificates that are embedded in the tyger binary s.ShellExecSucceeds("tyger-proxy", "echo 'tlsCaCertificates: embedded' >> /creds.yml")