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

Feat: add support for remote state access configuration #634

Merged
merged 8 commits into from
Apr 17, 2023

Conversation

TomerHeber
Copy link
Collaborator

@TomerHeber TomerHeber commented Apr 9, 2023

Issue & Steps to Reproduce / Feature Request

resolves #628

Solution

  1. Added the API calls.
  2. Added the resource.
  3. Added unit tests.
  4. Added acceptance tests.
  5. Added integration tests.
  6. Added an example.


func (client *ApiClient) RemoteStateAccessConfigurationCreate(environmentId string, payload RemoteStateAccessConfigurationCreate) (*RemoteStateAccessConfiguration, error) {
var result RemoteStateAccessConfiguration
if err := client.http.Post("/remote-backend/states/"+environmentId+"/access-control", payload, &result); err != nil {

Choose a reason for hiding this comment

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

ohhh it's also Put not post 🙈

@@ -8,7 +8,7 @@ env:
ENV0_API_ENDPOINT: ${{ secrets.ENV0_API_ENDPOINT }}
ENV0_API_KEY: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_KEY }} # API Key for organization 'TF-provider-integration-tests' @ dev
ENV0_API_SECRET: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_SECRET }}
GO_VERSION: 1.18
GO_VERSION: 1.19
Copy link
Collaborator Author

@TomerHeber TomerHeber Apr 9, 2023

Choose a reason for hiding this comment

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

updated to golang 1.19.
updated to a newer staticcheck.

This was done to avoid deprecation warnings. (Unrelated to the PR).

ItamarMalka
ItamarMalka previously approved these changes Apr 16, 2023
Copy link

@ItamarMalka ItamarMalka left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Apr 16, 2023
@ItamarMalka ItamarMalka dismissed their stale review April 16, 2023 14:45

After discussion on missing id on response gonna move to use the environmentId instead

Copy link

@ItamarMalka ItamarMalka left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@TomerHeber TomerHeber merged commit 5bca0d1 into main Apr 17, 2023
@TomerHeber TomerHeber deleted the feat-remote-state-access-#628 branch April 17, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for remote state access configuration
2 participants