-
Notifications
You must be signed in to change notification settings - Fork 19
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
test(integration): fix test cases for integrations #875
base: main
Are you sure you want to change the base?
Conversation
Just panicking won't return an error for the command (which is odd as behaviour), and we're failing outside of a check. There are 2 approaches here: Checking the response before using itThis is more specific to our problem and good practice in general. We're fetching the information assuming the HTTP request will succeed, which we shouldn't do. var id = "github";
var cdResp = http.request("GET", `${pipelinePublicHost}/v1beta/connector-definitions/${id}`, null, null);
check(cdResp, {
"GET /v1beta/connector-definitions/github response status is 200": (r) => r.status === 200,
});
var cdef = cdResp.json().connectorDefinition; Using
|
Because
This commit:
Note: