From 3d7cf85e6a219ce043f9960ba41b06ab45355217 Mon Sep 17 00:00:00 2001 From: Pat Patterson Date: Tue, 30 Jul 2024 15:02:08 -0700 Subject: [PATCH] remove secret-looking test data to avoid triggering GitGuardian --- cmd/cloudflared/tunnel/quick_tunnel_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cloudflared/tunnel/quick_tunnel_test.go b/cmd/cloudflared/tunnel/quick_tunnel_test.go index 18124eccdf8..3839fe52256 100644 --- a/cmd/cloudflared/tunnel/quick_tunnel_test.go +++ b/cmd/cloudflared/tunnel/quick_tunnel_test.go @@ -39,12 +39,12 @@ func TestQuickTunnel(t *testing.T) { { name: "200 OK response from server, valid response", statusCode: http.StatusOK, - response: `{"success":true,"result":{"id":"17ec5247-77cf-4ea2-86ee-4e02fdffaffd","name":"qt-muoQMBaKiI26W9DB1g8GFxiqgJ7uKxyg","hostname":"after-spectrum-rp-maintains.trycloudflare.com","account_tag":"5ab4e9dfbd435d24068829fda0077963","secret":"DFi6j4RZn0u29yLqecYELS+qInv/SZPk+5YIHrObeIY="},"errors":[]}`, + response: `{"success":true,"result":{"id":"0347c3ea-504b-47bc-8e2c-339961e6ea3e","name":"qt-not-a-real-name","hostname":"not-a-real-hostname.trycloudflare.com","account_tag":"not-an-account-tag","secret":"notreallyasecret"},"errors":[]}`, }, { name: "200 OK response from server, bad tunnel ID", statusCode: http.StatusOK, - response: `{"success":true,"result":{"id":"not-a-uuid","name":"qt-muoQMBaKiI26W9DB1g8GFxiqgJ7uKxyg","hostname":"after-spectrum-rp-maintains.trycloudflare.com","account_tag":"5ab4e9dfbd435d24068829fda0077963","secret":"DFi6j4RZn0u29yLqecYELS+qInv/SZPk+5YIHrObeIY="},"errors":[]}`, + response: `{"success":true,"result":{"id":"not-a-uuid","name":"qt-not-a-real-name","hostname":"not-a-real-hostname.trycloudflare.com","account_tag":"not-an-account-tag","secret":"notreallyasecret"},"errors":[]}`, wantErr: true, expectedErr: errors.New("failed to parse quick Tunnel ID: invalid UUID length: 10"), },