-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Adding Missing Cloud Build Attributes #3627
Changes from 7 commits
0c5cfb4
82c5986
c5fe3be
c19718d
fa67b48
67d19d9
75a8217
2caf210
538232b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
resource "google_cloudbuild_trigger" "<%= ctx[:primary_resource_id] %>" { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test generated from this example fails:
My guess is even when that is fixed, the test will probably still fail because some of the references in this example are to things that don't exist. https://github.com/GoogleCloudPlatform/magic-modules#testing-your-changes talks about testing changes. We can run the tests for you, but it's obviously faster if you can iterate on them yourself before sending it back :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh this is strange I thought I did run all the tests and confirm they passed before making PRs ready. Will look at this again this evening 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danawillow okay I see it was because I was testing with the general Terraform provider, when I ran the test on the Terraform beta provider I got the same error. I made a the correction to the test example here and now all tests are passing again 🤷 Anything else to look at? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Want to note I still need to fill out some of the specific sub resources mentioned in the original ticket. Just want to ensure things are looking good before I proceed and knock the rest out (including a test that includes a comprehensive build example) |
||
build { | ||
step { | ||
name = "gcr.io/cloud-builders/gsutil" | ||
args = ["cp", "gs://mybucket/remotefile.zip", "localfile.zip"] | ||
timeout = "120s" | ||
} | ||
|
||
source { | ||
storage_source { | ||
bucket = "mybucket" | ||
object = "source_code.tar.gz" | ||
} | ||
} | ||
tags = ["build", "newFeature"] | ||
substitutions = { | ||
_FOO = "bar" | ||
_BAZ = "qux" | ||
} | ||
queue_ttl = "20s" | ||
logs_bucket = "gs://mybucket/logs" | ||
secret { | ||
kms_key_name = "projects/myProject/locations/global/keyRings/keyring-name/cryptoKeys/key-name" | ||
secret_env = { | ||
PASSWORD = "ZW5jcnlwdGVkLXBhc3N3b3JkCg==" | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this and
object
be required?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point - wasn't explicitly called out in REST reference which may explain why I missed it.