Fix terraform add test failure due to bad merge

This commit is contained in:
Alisdair McDiarmid 2021-09-17 14:46:44 -04:00
parent d425c26d77
commit 9a7bbdab6f
1 changed files with 23 additions and 2 deletions

View File

@ -136,9 +136,23 @@ resource "test_instance" "new" {
fmt.Println(output.Stderr()) fmt.Println(output.Stderr())
t.Fatalf("wrong exit status. Got %d, want 0", code) t.Fatalf("wrong exit status. Got %d, want 0", code)
} }
expected := `resource "test_instance" "new" { expected := `# NOTE: The "terraform add" command is currently experimental and offers only a
# starting point for your resource configuration, with some limitations.
#
# The behavior of this command may change in future based on feedback, possibly
# in incompatible ways. We don't recommend building automation around this
# command at this time. If you have feedback about this command, please open
# a feature request issue in the Terraform GitHub repository.
resource "test_instance" "new" {
value = null # REQUIRED string value = null # REQUIRED string
} }
# NOTE: The "terraform add" command is currently experimental and offers only a
# starting point for your resource configuration, with some limitations.
#
# The behavior of this command may change in future based on feedback, possibly
# in incompatible ways. We don't recommend building automation around this
# command at this time. If you have feedback about this command, please open
# a feature request issue in the Terraform GitHub repository.
resource "test_instance" "new2" { resource "test_instance" "new2" {
value = null # REQUIRED string value = null # REQUIRED string
} }
@ -261,7 +275,14 @@ resource "test_instance" "new" {
fmt.Println(output.Stderr()) fmt.Println(output.Stderr())
t.Fatalf("wrong exit status. Got %d, want 0", code) t.Fatalf("wrong exit status. Got %d, want 0", code)
} }
expected := `resource "test_instance" "exists" { expected := `# NOTE: The "terraform add" command is currently experimental and offers only a
# starting point for your resource configuration, with some limitations.
#
# The behavior of this command may change in future based on feedback, possibly
# in incompatible ways. We don't recommend building automation around this
# command at this time. If you have feedback about this command, please open
# a feature request issue in the Terraform GitHub repository.
resource "test_instance" "exists" {
value = null # REQUIRED string value = null # REQUIRED string
} }
` `