2020-04-07 04:43:16 +02:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/blang/semver"
|
2020-04-14 10:30:25 +02:00
|
|
|
"github.com/pulumi/pulumi/pkg/v2/resource/deploy/deploytest"
|
|
|
|
"github.com/pulumi/pulumi/sdk/v2/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)
|
|
|
|
}),
|
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
|
|
|
}))
|
|
|
|
}
|