-
Notifications
You must be signed in to change notification settings - Fork 28
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
Return 500 when DB is not connected (fix for issue 570) (prelanding) #583
Conversation
…g-suggestions Return 500 when DB is not connected - Include suggestions into prelading PR
Co-authored-by: mapedraza <40356341+mapedraza@users.noreply.github.com>
End 2 end tests moved to a new different file + deletion of the other tests done in 9f02447 . |
Added tests expectations + more descriptive error message in 3df4d63 As an example, the error response is like the following: {"statusCode":500,"error":"Internat Server Error","message":"DB not connected"} |
test/unit/sthE2E_test.js
Outdated
entityId: 'E', | ||
attrName: 'A' | ||
}, | ||
'A' // maybe unneeded in API_OPERATION.DELETE case (see getURL method) |
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.
I already checked that, without this line, tests complete successfully
'A' // maybe unneeded in API_OPERATION.DELETE case (see getURL method) |
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.
The ,
in L122 should be removed if L123 is removed, shouldn't be?
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.
Yes, was a typo on the review
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.
Fixed in 8c49723
Co-authored-by: Fermín Galán Márquez <fgalan@users.noreply.github.com>
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.
With the last fixes the PR is ready to be merged! :)
LGTM
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.
LGTM
Issue #570. Continues the work in PR #574
It can be noted that at PR creation time (at commit 45c2186) PR has +132 -14 in changes, the same as the old PR.
CC: @Gauravp-NEC
To be completed (by @mapedraza )
it('should disconnect from the database', ...)
clause is not really a step to test but a preparation statement. It should be done in the "before" clause associated to the containingdescribe()
block.