Merge pull request #22274 from hashicorp/v0.11-fix-tests

make v0.11 tests green
pull/22184/head
James Bardin 7 years ago committed by GitHub
commit 03b0df2dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,6 @@ script:
- make test
- make e2etest
- GOOS=windows go build
- make website-test
branches:
only:

@ -144,7 +144,7 @@ func TestInit_fromModule(t *testing.T) {
tf := e2e.NewBinary(terraformBin, fixturePath)
defer tf.Close()
cmd := tf.Cmd("init", "-from-module=hashicorp/vault/aws")
cmd := tf.Cmd("init", "-from-module=./init-from-module")
cmd.Stdin = nil
cmd.Stderr = &bytes.Buffer{}
@ -162,7 +162,7 @@ func TestInit_fromModule(t *testing.T) {
if err != nil {
t.Fatalf("failed to read main.tf: %s", err)
}
if !bytes.Contains(content, []byte("vault")) {
t.Fatalf("main.tf doesn't appear to be a vault configuration: \n%s", content)
if !bytes.Contains(content, []byte("null_resource")) {
t.Fatalf("main.tf doesn't appear to be a null_resource configuration: \n%s", content)
}
}

@ -0,0 +1,6 @@
resource "null_resource" "test" {
}
output "output" {
value = "${null_resource.test.id}"
}
Loading…
Cancel
Save