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

feat: add network check and UT #746

Merged
merged 3 commits into from
May 23, 2024
Merged

feat: add network check and UT #746

merged 3 commits into from
May 23, 2024

Conversation

WillieRuemmele
Copy link
Contributor

@WillieRuemmele WillieRuemmele commented May 21, 2024

What does this PR do?

adds a few network checks to verify the users machine can access

  • salesforce endpoints
  • our S3 bucket

What issues does this PR fix or reference?

@W-15758164@

// salesforce endpoints
'https://test.salesforce.com',
'https://appexchange.salesforce.com/services/data',
// npm and yarn registries
Copy link
Contributor

Choose a reason for hiding this comment

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

Definitely agree on using jsforce conn.request for the first 2, since that's what we'd do in the code

I think the last 3 should mimic whatever we're doing in the real code.
ex: plugin-trust is callling npm cli to get the info (and that's going to be influenced by the npm proxy settings, maybe not exactly what jsforce is using). https://github.com/salesforcecli/plugin-trust/blob/8b583e13dac80995058e14eabf5eff1a1646376e/src/shared/npmCommand.ts#L63-L64

oclif/plugin-update uses got and doesn't do any proxy (maybe that's a whole other issue?) so you might replicate that setup?

src/diagnostics.ts Show resolved Hide resolved
@mshanemc mshanemc merged commit 4e9f345 into main May 23, 2024
12 checks passed
@mshanemc mshanemc deleted the wr/networkCheck branch May 23, 2024 18:29
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