Skip to content

Commit 3d7cf85

Browse files
committed
remove secret-looking test data to avoid triggering GitGuardian
1 parent f11083d commit 3d7cf85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cloudflared/tunnel/quick_tunnel_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func TestQuickTunnel(t *testing.T) {
3939
{
4040
name: "200 OK response from server, valid response",
4141
statusCode: http.StatusOK,
42-
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":[]}`,
42+
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":[]}`,
4343
},
4444
{
4545
name: "200 OK response from server, bad tunnel ID",
4646
statusCode: http.StatusOK,
47-
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":[]}`,
47+
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":[]}`,
4848
wantErr: true,
4949
expectedErr: errors.New("failed to parse quick Tunnel ID: invalid UUID length: 10"),
5050
},

0 commit comments

Comments
 (0)