mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
provider source tests: added test suite to exercise hyphenated providers (#24685)
This commit is contained in:
@@ -48,6 +48,15 @@ func TestFilesystemMirrorSourceAllAvailablePackages(t *testing.T) {
|
||||
Location: PackageLocalDir("testdata/filesystem-mirror/registry.terraform.io/hashicorp/null/2.0.0/windows_amd64"),
|
||||
},
|
||||
},
|
||||
randomBetaProvider: {
|
||||
{
|
||||
Provider: randomBetaProvider,
|
||||
Version: versions.MustParseVersion("1.2.0"),
|
||||
TargetPlatform: Platform{"linux", "amd64"},
|
||||
Filename: "terraform-provider-random-beta_1.2.0_linux_amd64.zip",
|
||||
Location: PackageLocalDir("testdata/filesystem-mirror/registry.terraform.io/hashicorp/random-beta/1.2.0/linux_amd64"),
|
||||
},
|
||||
},
|
||||
randomProvider: {
|
||||
{
|
||||
Provider: randomProvider,
|
||||
@@ -57,6 +66,7 @@ func TestFilesystemMirrorSourceAllAvailablePackages(t *testing.T) {
|
||||
Location: PackageLocalDir("testdata/filesystem-mirror/registry.terraform.io/hashicorp/random/1.2.0/linux_amd64"),
|
||||
},
|
||||
},
|
||||
|
||||
happycloudProvider: {
|
||||
{
|
||||
Provider: happycloudProvider,
|
||||
@@ -158,6 +168,11 @@ var randomProvider = addrs.Provider{
|
||||
Namespace: "hashicorp",
|
||||
Type: "random",
|
||||
}
|
||||
var randomBetaProvider = addrs.Provider{
|
||||
Hostname: svchost.Hostname("registry.terraform.io"),
|
||||
Namespace: "hashicorp",
|
||||
Type: "random-beta",
|
||||
}
|
||||
var happycloudProvider = addrs.Provider{
|
||||
Hostname: svchost.Hostname("tfe.example.com"),
|
||||
Namespace: "awesomecorp",
|
||||
|
||||
Reference in New Issue
Block a user