Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Rake test for Magic Modules generated resources, gitignore #40

Merged
merged 2 commits into from
Dec 3, 2018

Conversation

slevenick
Copy link
Collaborator

Add Magic Modules resource test script to Rakefile. Add the generated files from said task to gitignore

Rakefile Outdated

task :plan_mm_integration_tests do
sh(format("cd %s/attributes/ && ruby compile_vars.rb > terraform.tfvars && mv terraform.tfvars ../terraform", integration_dir))
sh(format("cd %s/terraform/ && terraform init", integration_dir))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
sh(format("cd %s/terraform/ && terraform init", integration_dir))
sh("cd #{integration_dir}/terraform/ && terraform init")

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do for all the other formats too

Rakefile Outdated
end

desc "Integration tests for Magic Modules generated resources"
task :integration do
Copy link
Collaborator

Choose a reason for hiding this comment

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

task :integration => [:test_mm:plan_mm_integration_tests, :test_mm:setup_mm_integration_tests...]

@slevenick slevenick merged commit 8430681 into master Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants