Skip to content

Commit

Permalink
fix: [CDS-81697]: GitOps app project mapping name update (#712)
Browse files Browse the repository at this point in the history
* fix: [CDS-81307]: GitOps app project mapping name update

* updating the go mod and adding changelog

* reverting the change in policyset
  • Loading branch information
manavjot-harness committed Oct 23, 2023
1 parent b18daba commit 78cb911
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/709.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
harness_platform_gitops_app_project_mapping - Fix field name of argo project.
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "harness_platform_gitops_app_project_mapping" "test" {
data "harness_platform_gitops_app_project_mapping" "example" {
identifier = "identifier"
account_id = "account_id"
org_id = "organization_id"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "harness_platform_gitops_app_project_mapping" "test" {
resource "harness_platform_gitops_app_project_mapping" "example" {
account_id = "account_id"
org_id = "organization_id"
project_id = "project_id"
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/harness/harness-go-sdk v0.3.52 h1:jXeGkBFBNRhQ3VvEcFZFl8+T5mVNPTrkeGAvqjgz3Ro=
github.com/harness/harness-go-sdk v0.3.52/go.mod h1:CPXydorp4zd5Dz2u2FXiHyWL4yd5PQafOMN69cgPSvk=
github.com/harness/harness-go-sdk v0.3.55 h1:54vNEpOEVHnK6RCMs0kz86/tNMxDFDNhh5FNtDFQ/5c=
github.com/harness/harness-go-sdk v0.3.55/go.mod h1:CPXydorp4zd5Dz2u2FXiHyWL4yd5PQafOMN69cgPSvk=
github.com/harness/harness-openapi-go-client v0.0.19 h1:8XuZvSPZrNqKRLh7Qksdz78WvRMRzRf88LgzxoT5u7k=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package agent_yaml_test

import (
"fmt"
"github.com/harness/harness-go-sdk/harness/utils"
"os"
"strings"
"testing"

"github.com/harness/harness-go-sdk/harness/utils"

"github.com/harness/terraform-provider-harness/internal/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down Expand Up @@ -51,6 +52,7 @@ func testAccDataSourceGitopsAgentDeployYaml(agentId string, accountId string, ag
org_id = harness_platform_organization.test.id
name = "%[3]s"
type = "MANAGED_ARGO_PROVIDER"
operator = "ARGO"
metadata {
namespace = "%[4]s"
high_availability = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package app_project_test

import (
"fmt"
"github.com/harness/harness-go-sdk/harness/utils"
"github.com/harness/terraform-provider-harness/internal/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"os"
"strings"
"testing"

"github.com/harness/harness-go-sdk/harness/utils"
"github.com/harness/terraform-provider-harness/internal/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDatasourceGitopsAppProjectMapping(t *testing.T) {
Expand Down Expand Up @@ -54,6 +55,7 @@ func testAccDatasourceGitopsAppProjectMapping(agentId string, accountId string,
project_id = harness_platform_project.test.id
name = "%[1]s"
type = "MANAGED_ARGO_PROVIDER"
operator = "ARGO"
metadata {
namespace = "%[1]s"
high_availability = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func testAccResourceGitopsAppProjectMapping(agentId string, accountId string, ar
project_id = harness_platform_project.test.id
name = "%[1]s"
type = "MANAGED_ARGO_PROVIDER"
operator = "ARGO"
metadata {
namespace = "%[1]s"
high_availability = false
Expand Down

0 comments on commit 78cb911

Please sign in to comment.