Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all of the custom AWS template engines to GeneratedData for use b… #9751

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

SwampDragons
Copy link
Contributor

Add amazon template engine options to the build variable for use in amazon provisioners

Closes #9750

@SwampDragons SwampDragons requested a review from a team as a code owner August 11, 2020 22:09
@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #9751 into master will increase coverage by 0.01%.
The diff coverage is 29.78%.

Impacted Files Coverage Δ
builder/amazon/common/step_set_generated_data.go 0.00% <0.00%> (ø)
builder/amazon/ebsvolume/builder.go 14.35% <20.00%> (-0.29%) ⬇️
builder/amazon/ebs/builder.go 14.50% <25.00%> (-0.17%) ⬇️
builder/amazon/ebssurrogate/builder.go 15.87% <25.00%> (-0.17%) ⬇️
builder/amazon/instance/builder.go 29.11% <25.00%> (-0.28%) ⬇️
builder/amazon/common/interpolate_build_info.go 76.92% <43.75%> (-23.08%) ⬇️
builder/amazon/chroot/builder.go 33.57% <50.00%> (+0.12%) ⬆️
packer/rpc/mux_broker.go 65.09% <0.00%> (+3.77%) ⬆️
packer/rpc/server.go 95.45% <0.00%> (+4.54%) ⬆️
... and 2 more

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Nicely done. This looks great!

Copy link
Contributor

@sylviamoss sylviamoss left a comment

Choose a reason for hiding this comment

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

really nice!

@sylviamoss sylviamoss merged commit 54469c4 into master Aug 12, 2020
@sylviamoss sylviamoss deleted the fix_9750 branch August 12, 2020 08:43
@SwampDragons SwampDragons added this to the 1.6.2 milestone Aug 13, 2020
Comment on lines +230 to +245
if generatedData[1] != "BuildRegion" {
t.Fatalf("Generated data should contain BuildRegion")
}
if generatedData[2] != "SourceAMI" {
t.Fatalf("Generated data should contain SourceAMI")
}
if generatedData[3] != "SourceAMICreationDate" {
t.Fatalf("Generated data should contain SourceAMICreationDate")
}
if generatedData[4] != "SourceAMIOwner" {
t.Fatalf("Generated data should contain SourceAMIOwner")
}
if generatedData[5] != "SourceAMIOwnerName" {
t.Fatalf("Generated data should contain SourceAMIOwnerName")
}
if generatedData[6] != "Device" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really important right now but, this test could be using cmp.Diff !

@ghost
Copy link

ghost commented Sep 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Amazon build template data available via the build template engine
4 participants