From 25649dcc93041c98b1d5a2e4bef72149f941bd20 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 2 Oct 2024 11:52:27 -0700 Subject: [PATCH] fix: as per comments --- src/datapilot/clients/altimate/client.py | 2 +- src/datapilot/clients/altimate/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datapilot/clients/altimate/client.py b/src/datapilot/clients/altimate/client.py index ee16ca6..f15711c 100644 --- a/src/datapilot/clients/altimate/client.py +++ b/src/datapilot/clients/altimate/client.py @@ -84,7 +84,7 @@ def validate_credentials(self): endpoint = "/dbt/v3/validate-credentials" return self.get(endpoint) - def validate_permissions(self): + def validate_upload_to_integration(self): endpoint = "/dbt/v1/validate-permissions" return self.get(endpoint) diff --git a/src/datapilot/clients/altimate/utils.py b/src/datapilot/clients/altimate/utils.py index e555eaa..ed7f91a 100644 --- a/src/datapilot/clients/altimate/utils.py +++ b/src/datapilot/clients/altimate/utils.py @@ -52,7 +52,7 @@ def validate_permissions( tenant, ) -> Response: api_client = APIClient(api_token=token, base_url=backend_url, tenant=tenant) - return api_client.validate_permissions() + return api_client.validate_upload_to_integration() def onboard_file(api_token, tenant, dbt_core_integration_id, dbt_core_integration_environment, file_type, file_path, backend_url) -> Dict: api_client = APIClient(api_token, base_url=backend_url, tenant=tenant)