plugin/discovery: Use mockos_mockarch when testing installation

If we don't override these then the tests can only pass on one platform.
This commit is contained in:
Martin Atkins 2018-10-16 08:08:29 -07:00
parent 8e51363f04
commit 3eaf2c308d
1 changed files with 4 additions and 2 deletions

View File

@ -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",
},
},
},