-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
DomainID: domain.ID, | ||
ProxyURL: "https://" + domainName + "/__clerk", | ||
}) | ||
assert.NotNil(t, err) |
There was a problem hiding this comment.
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
assert.NotNil(t, err) | |
assert.NoError(t, err) |
Name: domainName, | ||
IsSatellite: true, | ||
}) | ||
require.Nil(t, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require.Nil(t, err) | |
require.NoError(t, err) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
8a58d46
to
1a1bf2e
Compare
Type of 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)