2020-04-07 04:43:16 +02:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/blang/semver"
|
2021-03-17 14:20:05 +01:00
|
|
|
"github.com/pulumi/pulumi/pkg/v3/resource/deploy/deploytest"
|
|
|
|
"github.com/pulumi/pulumi/sdk/v3/go/common/resource/plugin"
|
2020-04-07 04:43:16 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewHost(schemaDirectoryPath string) plugin.Host {
|
|
|
|
return deploytest.NewPluginHost(nil, nil, nil,
|
|
|
|
deploytest.NewProviderLoader("aws", semver.MustParse("1.0.0"), func() (plugin.Provider, error) {
|
|
|
|
return AWS(schemaDirectoryPath)
|
2020-06-30 03:10:34 +02:00
|
|
|
}),
|
2020-10-06 07:57:52 +02:00
|
|
|
deploytest.NewProviderLoader("azure", semver.MustParse("3.24.0"), func() (plugin.Provider, error) {
|
|
|
|
return Azure(schemaDirectoryPath)
|
|
|
|
}),
|
2021-04-16 14:04:42 +02:00
|
|
|
deploytest.NewProviderLoader("azure-native", semver.MustParse("1.0.0"), func() (plugin.Provider, error) {
|
|
|
|
return AzureNative(schemaDirectoryPath)
|
|
|
|
}),
|
2020-06-30 03:10:34 +02:00
|
|
|
deploytest.NewProviderLoader("random", semver.MustParse("1.0.0"), func() (plugin.Provider, error) {
|
|
|
|
return Random(schemaDirectoryPath)
|
2020-08-05 18:15:36 +02:00
|
|
|
}),
|
|
|
|
deploytest.NewProviderLoader("kubernetes", semver.MustParse("1.0.0"), func() (plugin.Provider, error) {
|
|
|
|
return Kubernetes(schemaDirectoryPath)
|
2020-04-07 04:43:16 +02:00
|
|
|
}))
|
|
|
|
}
|