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(jobs): verify test exists before creating/updating job #29

Merged
merged 7 commits into from
Feb 4, 2019

Conversation

enudler
Copy link
Collaborator

@enudler enudler commented Feb 4, 2019

re #26

tests/system-tests/logs/cassandra.log Outdated Show resolved Hide resolved
await testsManager.getTest(jobBody.test_id);
} catch (error) {
if (error.statusCode === 404) {
return res.status(400).json({ message: `test with id: ${jobBody.test_id} does not exist` });
Copy link
Member

Choose a reason for hiding this comment

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

use global error handler

if (error.statusCode === 404) {
return res.status(400).json({ message: `test with id: ${jobBody.test_id} does not exist` });
} else {
return res.status(500).json({ message: error.message });
Copy link
Member

Choose a reason for hiding this comment

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

use global error handler

@@ -21,21 +21,21 @@ Success. You can now start the database server using:

Copy link
Member

Choose a reason for hiding this comment

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

remove file

@NivLipetz NivLipetz merged commit dd62517 into master Feb 4, 2019
@NivLipetz NivLipetz deleted the jobschecktestid branch March 6, 2019 14:19
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