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

SNOW-1781419: when proxy is set in Connection, driver does send traffic through the proxy to S3, but not to Azure blob / GCS bucket (only Snowflake). Works with proxy envvar (Azure) #964

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-ext-simba-jy
Copy link
Collaborator

@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy commented Nov 18, 2024

Description

Please explain the changes you made here.

  • Added the proxy setting in Azure_util
  • Separate the proxy util functions from util.js. Created proxy_util.js and proxy_util_test.js
  • Added connectionConfig in AzureUtil tests.
  • Refactored the code to validate and obtain proxy info in NoteHttpClient, Azure_util, and S3_util.

Checklist

  • Format code according to the existing code style (run npm run lint:check -- CHANGED_FILES and fix problems in changed code)
  • Create tests which fail without the change (if possible)
  • Make all tests (unit and integration) pass (npm run test:unit and npm run test:integration)
  • Extend the README / documentation and ensure is properly displayed (if necessary)
  • Provide JIRA issue id (if possible) or GitHub issue id in commit message

@sfc-gh-ext-simba-jy sfc-gh-ext-simba-jy requested a review from a team as a code owner November 18, 2024 21:47
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 91.42857% with 12 lines in your changes missing coverage. Please review.

Project coverage is 88.90%. Comparing base (bada542) to head (1cea678).

Files with missing lines Patch % Lines
lib/proxy_util.js 91.45% 10 Missing ⚠️
lib/file_transfer_agent/azure_util.js 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #964      +/-   ##
==========================================
- Coverage   88.93%   88.90%   -0.03%     
==========================================
  Files          69       70       +1     
  Lines        6748     6805      +57     
==========================================
+ Hits         6001     6050      +49     
- Misses        747      755       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

lib/proxy_util.js Outdated Show resolved Hide resolved
lib/proxy_util.js Show resolved Hide resolved
lib/proxy_util.js Outdated Show resolved Hide resolved
lib/proxy_util.js Show resolved Hide resolved
lib/proxy_util.js Outdated Show resolved Hide resolved
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.

2 participants