mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue