blob: 71cf38f3effacb4bd36b274dedeccd532ab23bb2 [file] [log] [blame]
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package provider
import (
"strings"
"testing"
transport_tpg "github.com/hashicorp/terraform-provider-google-beta/google-beta/transport"
)
func TestUnitMtls_urlSwitching(t *testing.T) {
t.Parallel()
for key, bp := range transport_tpg.DefaultBasePaths {
url := getMtlsEndpoint(bp)
if !strings.Contains(url, ".mtls.") {
t.Errorf("%s: mtls conversion unsuccessful preconv - %s postconv - %s", key, bp, url)
}
}
}