flag off registry ACC test

Was missing the TF_ACC check
This commit is contained in:
James Bardin 2017-10-27 08:57:06 -04:00
parent 1756b3d09f
commit 6c808347d7
1 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import (
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"net/url" "net/url"
"os"
"testing" "testing"
"time" "time"
@ -108,9 +109,10 @@ func TestLookupModuleVersions(t *testing.T) {
} }
} }
func TestACCLookupModuleVersions(t *testing.T) { func TestAccLookupModuleVersions(t *testing.T) {
server := mockTLSRegistry() if os.Getenv("TF_ACC") == "" {
defer server.Close() t.Skip()
}
regDisco := disco.NewDisco() regDisco := disco.NewDisco()
// test with and without a hostname // test with and without a hostname