Skip to content

Commit

Permalink
remove secret-looking test data to avoid triggering GitGuardian
Browse files Browse the repository at this point in the history
  • Loading branch information
metadaddy committed Jul 30, 2024
1 parent f11083d commit 3d7cf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cloudflared/tunnel/quick_tunnel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
Expand Down

0 comments on commit 3d7cf85

Please sign in to comment.