Skip to content

Commit

Permalink
[CDS-58214]: fix test for env ref migration in service overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaurasiya committed Apr 28, 2023
1 parent 4d4994d commit 123687c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,12 @@ func testAccEnvServiceOverridesOrgScope(id string, name string) string {
}
resource "harness_platform_environment_service_overrides" "test" {
identifier = "org.%[1]s-%[1]s"
org_id = harness_platform_organization.test.id
env_id = harness_platform_environment.test.id
env_id = "org.${harness_platform_environment.test.id}"
service_id = "org.${harness_platform_service.test.id}"
yaml = <<-EOT
serviceOverrides:
environmentRef: harness_platform_environment.test.id
environmentRef: "org.${harness_platform_environment.test.id}"
serviceRef: "org.${harness_platform_service.test.id}"
variables:
- name: asda
Expand Down Expand Up @@ -376,12 +375,11 @@ func testAccEnvServiceOverridesAccountScope(id string, name string) string {
}
resource "harness_platform_environment_service_overrides" "test" {
identifier = "account.%[1]s-%[1]s"
env_id = harness_platform_environment.test.id
env_id = "account.${harness_platform_environment.test.id}"
service_id = "account.${harness_platform_service.test.id}"
yaml = <<-EOT
serviceOverrides:
environmentRef: ${harness_platform_environment.test.id}
environmentRef: "account.${harness_platform_environment.test.id}"
serviceRef: "account.${harness_platform_service.test.id}"
variables:
- name: asda
Expand Down

0 comments on commit 123687c

Please sign in to comment.