Skip to content

Instantly share code, notes, and snippets.

@jmfontaine
Last active October 21, 2018 21:30
Show Gist options
  • Save jmfontaine/135b4d9291e14e8bfa41c30ee2222b04 to your computer and use it in GitHub Desktop.
Save jmfontaine/135b4d9291e14e8bfa41c30ee2222b04 to your computer and use it in GitHub Desktop.
Test Output for Terratest PR #180
go test -run TestOutputMap
TestOutputMap 2018-10-21T17:26:37-04:00 retry.go:69: Running terraform [init -upgrade=false]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:52: Running command terraform with args [init -upgrade=false]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: Terraform has been successfully initialized!
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: You may now begin working with Terraform. Try running "terraform plan" to see
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: any changes that are required for your infrastructure. All Terraform commands
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: should now work.
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: If you ever set or change modules or backend configuration for Terraform,
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: rerun this command to reinitialize your working directory. If you forget, other
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: commands will detect it and remind you to do so if necessary.
TestOutputMap 2018-10-21T17:26:37-04:00 retry.go:69: Running terraform [get -update]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:52: Running command terraform with args [get -update]
TestOutputMap 2018-10-21T17:26:37-04:00 retry.go:69: Running terraform [apply -input=false -lock=false -auto-approve]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:52: Running command terraform with args [apply -input=false -lock=false -auto-approve]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: Outputs:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96:
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: mogwai = {
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: bass = Dominic Aitchison
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: drums = Martin Bulloch
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: guitar_1 = Stuart Braithwaite
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: guitar_2 = Barry Burns
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: }
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: not_a_map = This is not a map.
TestOutputMap 2018-10-21T17:26:37-04:00 retry.go:69: Running terraform [output -no-color -json mogwai]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:52: Running command terraform with args [output -no-color -json mogwai]
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: {
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "sensitive": false,
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "type": "map",
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "value": {
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "bass": "Dominic Aitchison",
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "drums": "Martin Bulloch",
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "guitar_1": "Stuart Braithwaite",
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: "guitar_2": "Barry Burns"
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: }
TestOutputMap 2018-10-21T17:26:37-04:00 command.go:96: }
PASS
ok github.com/jmfontaine/terratest/modules/terraform 0.405s
go test -run TestOutputNotMapError
TestOutputNotMapError 2018-10-21T17:28:09-04:00 retry.go:69: Running terraform [init -upgrade=false]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:52: Running command terraform with args [init -upgrade=false]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: Terraform has been successfully initialized!
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: You may now begin working with Terraform. Try running "terraform plan" to see
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: any changes that are required for your infrastructure. All Terraform commands
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: should now work.
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: If you ever set or change modules or backend configuration for Terraform,
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: rerun this command to reinitialize your working directory. If you forget, other
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: commands will detect it and remind you to do so if necessary.
TestOutputNotMapError 2018-10-21T17:28:09-04:00 retry.go:69: Running terraform [get -update]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:52: Running command terraform with args [get -update]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 retry.go:69: Running terraform [apply -input=false -lock=false -auto-approve]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:52: Running command terraform with args [apply -input=false -lock=false -auto-approve]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: Outputs:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96:
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: mogwai = {
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: bass = Dominic Aitchison
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: drums = Martin Bulloch
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: guitar_1 = Stuart Braithwaite
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: guitar_2 = Barry Burns
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: }
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: not_a_map = This is not a map.
TestOutputNotMapError 2018-10-21T17:28:09-04:00 retry.go:69: Running terraform [output -no-color -json not_a_map]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:52: Running command terraform with args [output -no-color -json not_a_map]
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: {
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: "sensitive": false,
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: "type": "string",
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: "value": "This is not a map."
TestOutputNotMapError 2018-10-21T17:28:09-04:00 command.go:96: }
PASS
ok github.com/jmfontaine/terratest/modules/terraform 0.459s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment