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: Proxy checks service #169

Merged
merged 1 commit into from
Oct 25, 2023
Merged

feat: Proxy checks service #169

merged 1 commit into from
Oct 25, 2023

Conversation

gkats
Copy link
Member

@gkats gkats commented Oct 25, 2023

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🌟 New feature (non-breaking change which adds functionality)
  • 🔨 Breaking change (fix or feature that would cause existing functionality)
  • 📖 Docs change / refactoring / dependency upgrade to change)

Description

Added a ProxyChecksService with a method to Create a proxy check. Triggers a request to the Backend API POST /v1/proxy_checks endpoint.

Related Issue (optional)

@gkats gkats requested a review from a team as a code owner October 25, 2023 10:21
DomainID: domain.ID,
ProxyURL: "https://" + domainName + "/__clerk",
})
assert.NotNil(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

Or maybe require is more appropriate

Suggested change
assert.NotNil(t, err)
assert.NoError(t, err)

Name: domainName,
IsSatellite: true,
})
require.Nil(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
require.Nil(t, err)
require.NoError(t, err)

Copy link
Contributor

Choose a reason for hiding this comment

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

There's a linter for these types of checks: https://github.com/Antonboom/testifylint#require-error

Should we enable it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to use require.

Re: linter. I don't think it's necessary, but I have no objections.

Added a ProxyChecksService with a method to Create a proxy check.
Triggers a request to the Backend API POST /v1/proxy_checks endpoint.
@gkats gkats force-pushed the usr-383-create-proxy-checks branch from 8a58d46 to 1a1bf2e Compare October 25, 2023 13:11
@gkats gkats merged commit 3ec7814 into main Oct 25, 2023
1 check passed
@gkats gkats deleted the usr-383-create-proxy-checks branch October 25, 2023 13:15
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.

4 participants