This includes a few changes: * The repo name -- and hence the Go modules -- changes from pulumi-fabric to pulumi. * The Node.js SDK package changes from @pulumi/pulumi-fabric to just pulumi. * The CLI is renamed from lumi to pulumi.
35 lines
726 B
Go
35 lines
726 B
Go
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
package examples
|
|
|
|
import (
|
|
"os"
|
|
"path"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/pulumi/pulumi/pkg/testing/integration"
|
|
)
|
|
|
|
func TestExamples(t *testing.T) {
|
|
cwd, err := os.Getwd()
|
|
if !assert.NoError(t, err, "expected a valid working directory: %v", err) {
|
|
return
|
|
}
|
|
examples := []integration.LumiProgramTestOptions{
|
|
{
|
|
Dir: path.Join(cwd, "basic/minimal"),
|
|
Dependencies: []string{"pulumi"},
|
|
Config: map[string]string{
|
|
"minimal:config:name": "Pulumi",
|
|
},
|
|
},
|
|
}
|
|
for _, ex := range examples {
|
|
example := ex
|
|
t.Run(example.Dir, func(t *testing.T) {
|
|
integration.LumiProgramTest(t, example)
|
|
})
|
|
}
|
|
}
|