Commit graph

12 commits

Author SHA1 Message Date
NickOvt
d9834776f3
fix(api-dkim): Fix empty p value in dnsText.value if no private key initially given ZMS-142 (#664)
* fix dkim issue

* make better test
2024-04-11 11:47:03 +03:00
NickOvt
3d7d0a6d6a
fix(api-dkim): DKIM now supports ED25519 keys, both in PEM and raw format as input ZMS-125 (#617)
* dkim, add support for ed25519

* add support for raw ED25519 private key

* magic value make variable. Remove unnecessary variables. Refactor

* add new tests for ED25519
2024-02-19 09:46:46 +02:00
Andris Reinman
c00cc02658
fix(api-filters): Return valid action.mailbox value for a filter object 2023-10-16 12:21:16 +03:00
NickOvt
e43ba60069
chore(tests): Zms 90 (#503)
* mailbox-handler create() returns errors, code and http status codes correctly

* mailboxes handler now correctly return errors, error codes and appropriate http status codes, fixed tests

* mailbox-handler.js codes fix + tests fix in mailboxes-test.js

* mailbox-handler.js correct error handling for update and rename

* fix mailboxes.js http status part for PUT request, fix appropriate tests

* update responseWrapper, remove unnecessary try catches, fix mailbox-handler error codes and http status response codes, fix tests

* fix imap-core create

* reverted 405 errors to 400

* fix tests
2023-09-28 12:44:06 +03:00
NickOvt
260b9ad422
chore(tests): Zms 86 mailboxes (#501)
* 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
2023-09-21 12:52:18 +03:00
NickOvt
a49bc11c45
Zms 86 storage (#498)
* 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
2023-09-18 11:15:48 +03:00
NickOvt
c60373bbfe
ZMS-85 (#495)
* 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>
2023-09-14 12:49:55 +03:00
Andris Reinman
1c17f5fefc
fix(test): Added POST storage test (#492) 2023-09-07 11:09:33 +03:00
Andris Reinman
99fe16b448 Allow defining custom metaData for filter objects 2023-06-15 11:23:26 +03:00
Andris Reinman
486a43c2a1
re-run test with 127.0.0.1 2022-12-15 11:24:09 +02:00
Andris Reinman
7ef45b2307
Added support for DES password hashes 2022-05-24 17:01:45 +03:00
Andris Reinman
6045004dc5
Backported API tests from the Hapi branch 2022-05-16 00:18:24 +03:00