Skip to content

Commit

Permalink
fix: as per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed Oct 2, 2024
1 parent 5f3c9cd commit 25649dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datapilot/clients/altimate/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/datapilot/clients/altimate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25649dc

Please sign in to comment.