-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ephemeral
: add ephemeral_google_service_account_key
#12143
base: FEATURE-BRANCH-ephemeral-resource
Are you sure you want to change the base?
ephemeral
: add ephemeral_google_service_account_key
#12143
Conversation
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Errors
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
View the build log |
6b8f7e5
to
083f850
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Errors
|
@SarahFrench when it comes to testing this ephemeral we'll have to do the following: Get in contact with the google team to setup a key that we can have access for testing purposes (in order for us to consistently be able to test the ephemeral resource with a single service account key) This is necessary since we are unable to have the ephemeral wait for a rsource to create a service key that we can use (it is called at plan/apply time and would result in getting an empty value) I'm unsure of another approach. let me know your thoughts on this! I was also thinking about the value assertion which is also another option I can look at in the morning. |
Does the ephemeral resource not get affected by the resource graph? I.e. like in this test for the equivalent data source the dependency on the I'd be surprised if ephemeral resource are not affected by the resource graph, but if they aren't we can just split the test into 2 steps:
|
I'll separate it into 2 steps then. @SarahFrench I had attempted to replicate what you linked in terms of creating a |
🤯 that's unexpected that they don't use the resource graph! Then definitely a test with 2 steps seems to be the only option for now, until subsequent updates happen. |
083f850
to
994bf3c
Compare
Marking ready for review after rebasing and adding tests: (base) ┌─(~/Dev/terraform-provider-google)───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(mau@mau-JKDT676NCP:s101)─┐
└─(01:14:02 on main ✹ ✭)──> envchain GCLOUD make test TESTARGS='-run=TestAccEphemeralServiceAccountKey_basic ./google/services/resourcemanager/...' ──(Fri,Nov08)─┘
sh -c "'/Users/mau/Dev/terraform-provider-google/scripts/gofmtcheck.sh'"
==> Checking that code complies with gofmt requirements...
go vet
go test -run=TestAccEphemeralServiceAccountKey_basic ./google/services/resourcemanager/... -timeout=30s $(go list -e ./... | grep -v github.com/hashicorp/terraform-provider-google/scripts)
ok github.com/hashicorp/terraform-provider-google/google/services/resourcemanager 1.481s |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 4268 Click here to see the affected service packages
Action takenFound 16 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Let's focus on the other PRs you have in flight before moving on to reviewing this one |
994bf3c
to
546b01b
Compare
after rebasing no other changes were needed in order for this to be ready for review. I'll leave it as draft until the two PRs in review have been merged: |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 4268 Click here to see the affected service packages
Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.