From 0fd83b9bf7b573be56b4c00f557d31c68edc08cc Mon Sep 17 00:00:00 2001 From: Ritek <140505097+ritek01@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:34:49 +0530 Subject: [PATCH] fix: [CDS-101927]: Fixed Endpoint Assertion (#1092) --- .../service/cd/account/current_account_data_source_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/service/cd/account/current_account_data_source_test.go b/internal/service/cd/account/current_account_data_source_test.go index 8b8bc8fdd..7f051f5ce 100644 --- a/internal/service/cd/account/current_account_data_source_test.go +++ b/internal/service/cd/account/current_account_data_source_test.go @@ -13,6 +13,7 @@ func TestAccDataSourceCurrentAccount(t *testing.T) { var ( resourceName = "data.harness_current_account.test" accountId = os.Getenv("HARNESS_ACCOUNT_ID") + endpoint = os.Getenv("HARNESS_ENDPOINT") ) resource.UnitTest(t, resource.TestCase{ @@ -23,7 +24,7 @@ func TestAccDataSourceCurrentAccount(t *testing.T) { Config: testAccDataSourceCurrentAccount(), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(resourceName, "account_id", accountId), - resource.TestCheckResourceAttr(resourceName, "endpoint", "https://app.harness.io/gateway"), + resource.TestCheckResourceAttr(resourceName, "endpoint", endpoint), ), }, },