Remove AWS dependency for test
@@ -48,11 +48,7 @@ func TestAboutCommands(t *testing.T) {
e.SetBackend(e.LocalURL())
createIndexTs(e)
e.RunCommand("pulumi", "stack", "init", stackName)
- e.RunCommand("yarn", "add", "@pulumi/pulumi")
- e.RunCommand("yarn", "add", "@pulumi/aws")
e.RunCommand("yarn", "install")
- e.RunCommand("yarn", "link", "@pulumi/pulumi")
- e.RunCommand("pulumi", "config", "set", "aws:region", "us-west-2")
e.RunCommand("pulumi", "up", "--non-interactive", "--yes", "--skip-preview")
_, currentStack := integration.GetStacks(e)
stdout, stderr := e.RunCommand("pulumi", "about")
@@ -64,16 +60,7 @@ func TestAboutCommands(t *testing.T) {
}
func createIndexTs(e *ptesting.Environment) {
- contents := `import * as pulumi from "@pulumi/pulumi";` + "\n" +
- `import * as aws from "@pulumi/aws";` + "\n" +
- "\n" +
- `const bucket = new aws.s3.Bucket("b", {` + "\n" +
- ` acl: "private",` + "\n" +
- ` tags: {` + "\n" +
- ` Environment: "Dev",` + "\n" +
- ` Name: "My bucket",` + "\n" +
- ` },` + "\n" +
- `});` + "\n"
+ contents := ""
filePath := "index.ts"
filePath = path.Join(e.CWD, filePath)
err := ioutil.WriteFile(filePath, []byte(contents), os.ModePerm)
