* added new file to test git repo setup
* added mailboxes tests part 1, POST to /users/{user}/mailboxes
* mailboxes tests GET /users/{user}/mailboxes
* remove .only
* fix returned value check
* remove text.txt. Fix mailboxes-test.js test run name
* fix GET request tests. Add tests for GET /users/{user}/mailboxes/{mailbox}
* added tests for PUT /users/{user}/mailboxes/{mailbox}
* added couple more PUT tests. Added tests for DELETE /users/{user}/mailboxes/{mailbox}. Fixed namings in some places
* remove unnecessary .send(), add generated md file to gitignore
* add new line to gitignore
* added new file to test git repo setup
* added multiple tests for all storage api endpoints. Both positive and negative tests
* added tests for GET /addresses and GET users/:user/addresses
* added storage tests and fixes for them, fixed addresses tests
* add test overview file
* added new file to test git repo setup
* update Grunt mochaTest structure to run two separate test runs instead of one
* remove test.txt
---------
Co-authored-by: Nikolai Ovtsinnikov <nikolai@zone.ee>
* added new file to test git repo setup
* remove test.txt
Add api-tests-table.md file to keep track of api endpoints, method and their test count + test types (and their count)
* add js script to parse files in the /lib/api folder and retrieve a map of apiPath -> apiMethod
* delete parseApiFiles.js as it is unneeded
* add global (per test run) beforeEach and after hooks to collect test data and create an overview table
* update tests to conform to new test title structure
* add expectations to tests
* remove old api-tests-table.md that was handmade
* add expectations to tests in the api-test.js file
* add GET endpoint /api-methods/:arg to fetch all api endpoints for testing purposes only
* add and fix and refactor _globals-test.js file in the api test/api folder. Use global beforeEach and after hook to generate test overview table in api-test-overview.md file
* add missing newline at the end of file
* fix with prettier
* api.js fix style, remove unnecessary comments, remove :arg
* make first post,put,delete,get regex case insensitive, fix call to /api-methods
* _globals-test.js fixes
* fix some test titles
---------
Co-authored-by: Nikolai Ovtsinnikov <nikolai@zone.ee>
Having the OpenAPI verification badge on the README is not only a sign of quality of a great feature but also a good indicator to quickly catch errors in the OpenAPI file.