Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/DES-2374: fix service account url for getting files #108

Merged

Conversation

nathanfranklin
Copy link
Collaborator

Overview:

Fix regression (caused by #99) where the service account was using the wrong URL for getting files.

PR Status:

  • Ready.

Related Jira tickets:

Testing Steps:

  1. On prod/staging, try to import a file on My Data and confirms it fails
  2. Use this branch locally, and then try to import one of those failing files.

Copy link
Contributor

@duckonomy duckonomy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

requests_mock.get(AgaveUtils.BASE_URL + f"/files/media/system/{system}/{path}", responses)
path = "path.jpg"
# api prod fails with 403 (i.e. CS_169)
api_prod_mocked_file_service = requests_mock.get(AgaveUtils.BASE_URL + f"/files/media/system/{system}/{path}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@nathanfranklin nathanfranklin merged commit 0546272 into master Dec 6, 2022
@taoteg taoteg deleted the task/DES-2374-fix-service-account-url-for-getting-files branch July 6, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants