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:
parent
8e51363f04
commit
3eaf2c308d
|
@ -254,6 +254,8 @@ func TestProviderInstallerGet(t *testing.T) {
|
||||||
SkipVerify: true,
|
SkipVerify: true,
|
||||||
Ui: cli.NewMockUi(),
|
Ui: cli.NewMockUi(),
|
||||||
registry: registry.NewClient(Disco(server), nil),
|
registry: registry.NewClient(Disco(server), nil),
|
||||||
|
OS: "mockos",
|
||||||
|
Arch: "mockarch",
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -452,8 +454,8 @@ var versionList = response.TerraformProvider{
|
||||||
Protocols: []string{"4"},
|
Protocols: []string{"4"},
|
||||||
Platforms: []*response.TerraformProviderPlatform{
|
Platforms: []*response.TerraformProviderPlatform{
|
||||||
{
|
{
|
||||||
OS: "darwin",
|
OS: "mockos",
|
||||||
Arch: "amd64",
|
Arch: "mockarch",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue