From 3eaf2c308d0a4ba9f1bce6dc26a38fefba237a0b Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 16 Oct 2018 08:08:29 -0700 Subject: [PATCH] plugin/discovery: Use mockos_mockarch when testing installation If we don't override these then the tests can only pass on one platform. --- plugin/discovery/get_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/discovery/get_test.go b/plugin/discovery/get_test.go index 0bf18e8cd8..ce833ee36a 100644 --- a/plugin/discovery/get_test.go +++ b/plugin/discovery/get_test.go @@ -254,6 +254,8 @@ func TestProviderInstallerGet(t *testing.T) { SkipVerify: true, Ui: cli.NewMockUi(), registry: registry.NewClient(Disco(server), nil), + OS: "mockos", + Arch: "mockarch", } { @@ -452,8 +454,8 @@ var versionList = response.TerraformProvider{ Protocols: []string{"4"}, Platforms: []*response.TerraformProviderPlatform{ { - OS: "darwin", - Arch: "amd64", + OS: "mockos", + Arch: "mockarch", }, }, },