-
Notifications
You must be signed in to change notification settings - Fork 13
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
fest: Environment Resource - configuration variables read & delete #182
Conversation
f85670a
to
a8a97d7
Compare
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.
Looks good
please also add this use case to the integration tests
and generate the docs
Also your CI is failing
d.SetId(environment.Id) | ||
setEnvironmentSchema(d, environment) | ||
setEnvironmentSchema(d, environment, client.ConfigurationChanges{}) |
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.
Cursed language
Why no optional parameters?
damn you go
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.
hate this
also no Ternary Operator ?:
as for the integration tests will be added on a different ticket to unblock the QA PARTY 🎉
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.
Thats not a blocker, as those are terraform files we need to update
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.
update this file
https://github.com/env0/terraform-provider-env0/blob/main/tests/integration/012_environment/main.tf
add the configuration part for the resource
to create it and also data
to read it
then expose a output
and you need to assert the output
is as you expect using this file
https://github.com/env0/terraform-provider-env0/blob/main/tests/integration/012_environment/expected_outputs.json
really small part
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.
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.
Why not here?
thats really small change
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.
@eranelbaz its not tried alot but its not
since on deploying the scope of the configuration variable changes to DEPLOYMENT and we can’t search by this scope
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.
lets work this out in a next pr
7379180
to
4dc342f
Compare
Issue & Steps to Reproduce / Feature Request
Environment Resource - configuration variables read & delete
Solution
Added Read logic for configuration variables
Added delete and update logic for configuration variables