diff --git a/internal/service/platform/service_overrides_v2/data_source_service_overrides_v2_test.go b/internal/service/platform/service_overrides_v2/data_source_service_overrides_v2_test.go index 43b34cda5..1780f704a 100644 --- a/internal/service/platform/service_overrides_v2/data_source_service_overrides_v2_test.go +++ b/internal/service/platform/service_overrides_v2/data_source_service_overrides_v2_test.go @@ -124,30 +124,33 @@ variables: - name: v1 type: String value: val1 + required: false manifests: - manifest: identifier: manifest1 type: Values spec: store: - type: Github spec: - connectorRef: "<+input>" + connectorRef: <+input> gitFetchType: Branch + branch: master + commitId: null paths: - files1 - repoName: "<+input>" - branch: master - skipResourceVersioning: false + folderPath: null + repoName: <+input> + type: Github configFiles: - configFile: identifier: configFile1 spec: store: - type: Harness spec: files: - - "<+org.description>" + - <+org.description> + secretFiles: null + type: Harness EOT } @@ -167,6 +170,7 @@ variables: - name: v2 type: String value: val2 + required: false EOT } `, id, name) diff --git a/internal/service/platform/service_overrides_v2/resource_service_overrides_v2_test.go b/internal/service/platform/service_overrides_v2/resource_service_overrides_v2_test.go index 302c338c1..cefaba30c 100644 --- a/internal/service/platform/service_overrides_v2/resource_service_overrides_v2_test.go +++ b/internal/service/platform/service_overrides_v2/resource_service_overrides_v2_test.go @@ -26,7 +26,7 @@ func TestAccServiceOverrides_ProjectScope(t *testing.T) { { Config: testAccServiceOverridesProjectScope(id, name), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr(resourceName, "org_id", id), + resource.TestCheckResourceAttr(resourceName, "org_id", id), resource.TestCheckResourceAttr(resourceName, "project_id", id), ), }, @@ -104,8 +104,7 @@ func TestAccRemoteServiceOverrides(t *testing.T) { Steps: []resource.TestStep{ { Config: testRemoteServiceOverrides(id, name), - Check: resource.ComposeTestCheckFunc( - ), + Check: resource.ComposeTestCheckFunc(), }, { ResourceName: resourceName, @@ -223,30 +222,33 @@ variables: - name: v1 type: String value: val1 + required: false manifests: - manifest: identifier: manifest1 type: Values spec: store: - type: Github spec: - connectorRef: "<+input>" + connectorRef: <+input> gitFetchType: Branch + branch: master + commitId: null paths: - files1 + folderPath: null repoName: "<+input>" - branch: master - skipResourceVersioning: false + type: Github configFiles: - configFile: identifier: configFile1 spec: store: - type: Harness spec: files: - - "<+org.description>" + - <+org.description> + secretFiles: null + type: Harness EOT } `, id, name) @@ -312,7 +314,6 @@ func testRemoteServiceOverrides(id string, name string) string { }`, id, name) } - func testAccServiceOverridesOrgScope(id string, name string) string { return fmt.Sprintf(` resource "harness_platform_organization" "test" { @@ -377,31 +378,33 @@ variables: - name: v1 type: String value: val1 + required: false manifests: - manifest: identifier: manifest1 type: Values spec: store: - type: Github spec: - connectorRef: "<+input>" + connectorRef: <+input> gitFetchType: Branch + branch: master + commitId: null paths: - files1 - repoName: "<+input>" - branch: master - skipResourceVersioning: false + folderPath: null + repoName: <+input> + type: Github configFiles: - configFile: identifier: configFile1 spec: store: - type: Harness spec: files: - - "<+org.description>" - + - <+org.description> + secretFiles: null + type: Harness EOT } `, id, name) @@ -463,30 +466,33 @@ variables: - name: v1 type: String value: val1 + required: false manifests: - manifest: identifier: manifest1 type: Values spec: store: - type: Github spec: - connectorRef: "<+input>" + connectorRef: <+input> gitFetchType: Branch + branch: master + commitId: null paths: - files1 - repoName: "<+input>" - branch: master - skipResourceVersioning: false + folderPath: null + repoName: <+input> + type: Github configFiles: - configFile: identifier: configFile1 spec: store: - type: Harness spec: files: - - "<+org.description>" + - <+org.description> + secretFiles: null + type: Harness EOT } `, id, name)