Skip to content

Commit b4e7992

Browse files
authored
Merge branch 'main' into feat-add-filter-for-teams-#982
2 parents 927c8aa + 03602fe commit b4e7992

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1872
-849
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
ENV0_API_ENDPOINT: ${{ secrets.ENV0_API_ENDPOINT }}
99
ENV0_API_KEY: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_KEY }} # API Key for organization 'TF-provider-integration-tests' @ dev
1010
ENV0_API_SECRET: ${{ secrets.TF_PROVIDER_INTEGRATION_TEST_API_SECRET }}
11-
GO_VERSION: "1.21"
11+
GO_VERSION: "1.23"
1212
TERRAFORM_VERSION: 1.1.7
1313

1414
jobs:
@@ -44,11 +44,11 @@ jobs:
4444
integration-tests:
4545
name: Integration Tests
4646
runs-on: ubuntu-20.04
47-
container: golang:1.21-alpine3.18
47+
container: golang:1.23-alpine
4848
timeout-minutes: 20
4949
steps:
50-
- name: Install Terraform
51-
run: apk add terraform
50+
- name: Install Opentofu
51+
run: apk add opentofu
5252
- name: Checkout code
5353
uses: actions/checkout@v4
5454
- name: Run Harness tests

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
GO_VERSION: "1.21"
9+
GO_VERSION: "1.23"
1010

1111
jobs:
1212
generate-docs:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- "v*.*.*"
1717

1818
env:
19-
GO_VERSION: "1.21"
19+
GO_VERSION: "1.23"
2020

2121
jobs:
2222
goreleaser:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ resource "env0_template" "example" {
9292

9393
## Development Setup
9494

95-
> **Supported Go Version: 1.21**
95+
> **Supported Go Version: 1.23**
9696
9797
### Build
9898

@@ -185,7 +185,7 @@ export PATH=$PATH:$(go env GOPATH) # if not
185185
2. Install mockgen
186186

187187
```
188-
go install go.uber.org/mock/mockgen@v0.3.0
188+
go install go.uber.org/mock/mockgen@v0.5.0
189189
```
190190

191191
3. Make sure to add this line in files that include the interface you'd wish to mock:

client/api_client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ type ApiClientInterface interface {
170170
CloudAccount(id string) (*CloudAccount, error)
171171
CloudAccounts() ([]CloudAccount, error)
172172
VcsToken(vcsType string, repository string) (*VscToken, error)
173+
VcsConnection(id string) (*VcsConnection, error)
174+
VcsConnectionCreate(payload VcsConnectionCreatePayload) (*VcsConnection, error)
175+
VcsConnectionUpdate(id string, payload VcsConnectionUpdatePayload) (*VcsConnection, error)
176+
VcsConnectionDelete(id string) error
177+
VcsConnections() ([]VcsConnection, error)
173178
}
174179

175180
func NewApiClient(client http.HttpClientInterface, defaultOrganizationId string) ApiClientInterface {

client/api_client_mock.go

Lines changed: 615 additions & 540 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/cloud_credentials.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "strings"
55
type AwsCredentialsType string
66
type GcpCredentialsType string
77
type AzureCredentialsType string
8-
type VaultCrednetialsType string
8+
type VaultCredentialsType string
99

1010
type Credentials struct {
1111
Id string `json:"id"`
@@ -92,7 +92,7 @@ type VaultCredentialsValuePayload struct {
9292
type VaultCredentialsCreatePayload struct {
9393
Name string `json:"name,omitempty"`
9494
OrganizationId string `json:"organizationId,omitempty"`
95-
Type VaultCrednetialsType `json:"type"`
95+
Type VaultCredentialsType `json:"type"`
9696
Value VaultCredentialsValuePayload `json:"value"`
9797
}
9898

@@ -127,7 +127,7 @@ const (
127127
AzureCostCredentialsType AzureCredentialsType = "AZURE_CREDENTIALS"
128128
AzureServicePrincipalCredentialsType AzureCredentialsType = "AZURE_SERVICE_PRINCIPAL_FOR_DEPLOYMENT"
129129
AzureOidcCredentialsType AzureCredentialsType = "AZURE_OIDC"
130-
VaultOidcCredentialsType VaultCrednetialsType = "VAULT_OIDC"
130+
VaultOidcCredentialsType VaultCredentialsType = "VAULT_OIDC"
131131
)
132132

133133
func (client *ApiClient) CloudCredentials(id string) (Credentials, error) {

client/cloud_credentials_project_assignment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var _ = Describe("Credentials Project Assignment", func() {
1515

1616
Describe("AssignCloudCredentialsToProject", func() {
1717
expectedResponse := CloudCredentialsProjectAssignment{
18-
Id: "assigment id",
18+
Id: "assignment id",
1919
CredentialId: "credentialId",
2020
ProjectId: projectId,
2121
}

client/cost_credentials_project_assignment_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var _ = Describe(" Cost Credentials Project Assignment", func() {
1515

1616
Describe("AssignCostCredentialsToProject", func() {
1717
expectedResponse := CostCredentialProjectAssignment{
18-
ProjectId: "assigment id",
18+
ProjectId: "assignment id",
1919
CredentialsId: "credentialId",
2020
CredentialsType: "GCP_CREDENTIALS",
2121
}
@@ -79,13 +79,13 @@ var _ = Describe(" Cost Credentials Project Assignment", func() {
7979
var actualResult []CostCredentialProjectAssignment
8080

8181
firstResulteResponse := CostCredentialProjectAssignment{
82-
ProjectId: "assigment id",
82+
ProjectId: "assignment id",
8383
CredentialsId: "credentialId",
8484
CredentialsType: "GCP_CREDENTIALS",
8585
}
8686

8787
secondResulteResponse := CostCredentialProjectAssignment{
88-
ProjectId: "assigment id",
88+
ProjectId: "assignment id",
8989
CredentialsId: "credentialId-2",
9090
CredentialsType: "GCP_CREDENTIALS",
9191
}

client/custom_flow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (client *ApiClient) CustomFlowCreate(payload CustomFlowCreatePayload) (*Cus
5454
return nil, err
5555
}
5656

57-
payloadWithOrganzationId := struct {
57+
payloadWithOrganizationId := struct {
5858
OrganizationId string `json:"organizationId"`
5959
CustomFlowCreatePayload
6060
}{
@@ -63,7 +63,7 @@ func (client *ApiClient) CustomFlowCreate(payload CustomFlowCreatePayload) (*Cus
6363
}
6464

6565
var result CustomFlow
66-
if err := client.http.Post("/custom-flow", &payloadWithOrganzationId, &result); err != nil {
66+
if err := client.http.Post("/custom-flow", &payloadWithOrganizationId, &result); err != nil {
6767
return nil, err
6868
}
6969

0 commit comments

Comments
 (0)