Skip to content

Conversation

btromanova
Copy link
Contributor

This fixes issue #38 and adds 0.12.6 to the list of versions we test against.

Context: terraform show is broken since 0.12 (see hashicorp/terraform#21446), so I'm using regex on top of terraform plan to produce the plan output.

I've fixed tests to support changes in output in 0.12.

@btromanova btromanova requested a review from DragonZ August 13, 2019 08:48
Copy link
Contributor

@dansimau dansimau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left one comment but otherwise, great!

assert.Contains(t, result.Stderr.String(), "Error parsing")
errorMessage := "Error parsing"
if stringVersionMatches(version, ">=0.12") {
errorMessage = "Argument or block definition required"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string has a weird character at the end (character code 27). I'd probably just remove it.

@btromanova btromanova force-pushed the tr/support-terraform012-output branch from 83ebb48 to 37cf7c3 Compare September 24, 2019 09:16
@btromanova btromanova changed the base branch from tr/support-terraform012 to master September 24, 2019 09:21
@btromanova btromanova merged commit 8e4a1f6 into master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants