rash805115 / bookeeping.rest

Access to bookeeping.backend via REST service for end users.
0 stars 0 forks source link

Test Suites #4

Open rash805115 opened 9 years ago

rash805115 commented 9 years ago

This project has no test cases available at the moment. A test scenario must make HTTP requests to the REST service and expect appropriate response. All tests are done manually by sending HTTP requests from the browser and looking at the graph and response to determine correct behaviour.

rash805115 commented 9 years ago

Without any test suites it has not been verified of what happens if a function asks for a nodeid and expects a nodeid of certain type, but is given a nodeid of other type, if the server crashes or not. E.g. in the commit file, node version, node delete and *restore needs a valid node id. However, if they are given the nodeid of a user node, either the server will die, or the graph will be incorrect. Not all cases have been thought of for such scenarios.

Had there been test cases, this would have been caught. The only reason this is still working is because I am the only one who is currently developing a frontend based on this rest service and I know logically what should be where. Other developers not might use this rest library so kindly.