(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestJSONArgoTunnelTokenEmpty(t *testing.T) { |
| 34 | blocks, err := os.ReadFile("test-cert-no-token.pem") |
| 35 | require.NoError(t, err) |
| 36 | cert, err := decodeOriginCert(blocks) |
| 37 | assert.Equal(t, fmt.Errorf("missing token in the certificate"), err) |
| 38 | assert.Nil(t, cert) |
| 39 | } |
| 40 | |
| 41 | func TestJSONArgoTunnelToken(t *testing.T) { |
| 42 | // The given cert's Argo Tunnel Token was generated by base64 encoding this JSON: |
nothing calls this directly
no test coverage detected