Commit graph

49 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 f6f5f5eb65
fix(api-autoreplies): Added logging to graylog. Autoreply docs have a created field now ZMS-127 (#633)
* Update Autoreply information api endpoint added to api docs generation

* Delete Autoreply information api endpoint added to api docs generation

* Request Autoreply information api endpoint added to api docs generation

* autoreply now contains the created field to check when it was created. Added logging to graylog

* make created timestamp second precision. Fix tests

* autoreply.js add optional chaining
2024-02-26 11:08:25 +02: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
Andris Reinman f040e5448c
Fixed attachment test 2023-10-09 14:44:34 +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
Andris Reinman 80797eebec
feat(storage): Added cid property to storage files (#502) 2023-09-21 12:37:35 +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 a32c065da5
test-failing 2023-05-24 16:29:06 +03:00
Andris Reinman 486a43c2a1
re-run test with 127.0.0.1 2022-12-15 11:24:09 +02:00
Andris Reinman b5cbad0dfa
fixed tests 2022-12-15 11:03:30 +02:00
Andris Reinman 2ebcf9d2e0
Added test for const:max:rcpt_to 2022-12-04 11:53:44 +02:00
Andris Reinman 0d327c1315
Added preauth API endpoint 2022-10-07 10:13:05 +03:00
Andris Reinman 04ba496dc7
bunch of fixes 2022-07-05 11:57:57 +03: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
Andris Reinman d95f4fe4cd allow to use predefined asp passwords 2021-06-04 10:34:26 +03:00
Andris Reinman 2d381db260 testcase for POST certs 2021-05-19 19:43:13 +03:00
Andris Reinman ce15670d7c Make sure that addressregister addresses are decoded from mime-words 2021-04-15 15:41:08 +03:00
Andris Reinman 20fda17be4 include hash value in attachment output 2021-03-26 09:58:05 +02:00
Andris Reinman b2f8c1fd41 added test for deleting queue entries 2021-01-04 17:47:57 +02:00
Andris Reinman 1e1417cedb when submitting message structures then extract embedded attachments from HTML before doing validation checks 2020-11-26 18:03:23 +02:00
Andris Reinman 399251f1fc added metaData for forwarded addresses 2020-09-28 13:45:41 +03:00
Andris Reinman f2f14ca8fc started with metaData for addresses 2020-09-25 16:49:38 +03:00
Andris Reinman 89dad94ae3 v1.30.0 2020-09-25 12:58:00 +03:00
Andris Reinman f4bbc9f958 tests 2020-07-31 14:38:46 +03:00
Andris Reinman 5abdac4c8c updated API handling for autoreplies 2020-07-31 13:36:07 +03:00
Andris Reinman 00da4bc4fa replaced browserbox with imapflow, utf7 with iconv-lite 2020-05-15 19:02:24 +03:00
Andris Reinman e0ad98e3ef v1.25.1 2020-05-08 10:55:07 +03:00
Andris Reinman 4c1cd4210a Updated fixture pgp keys to fix tests 2019-10-21 23:01:11 +03:00
Andris Reinman 07bc93bad0 fixed tests 2019-08-27 16:20:23 +03:00
Andris Reinman dcef8e22cd migrated API tests from icedfrisby to supertest 2019-07-31 16:05:59 +03:00
Andris Reinman 8e7a3f50aa v1.12.4 2019-01-13 13:13:22 +02:00
Andris Reinman 61d2813be9 v1.9.0 2018-10-22 12:00:24 +03:00
Andris Reinman 4bef7e3a10 Allow using addresses as usernames 2018-05-11 14:39:23 +03:00
Andris Reinman 7598ac2f17 fixed tests 2017-12-13 10:33:13 +02:00
Andris Reinman bd1883d9cd started running tests against actual server instead of mock server 2017-12-12 17:01:17 +02:00
Andris Reinman 101562359c Fixed tests 2017-11-30 13:57:25 +02:00
Andris Reinman 6db874255c fixed tests 2017-11-19 14:58:01 +02:00
Andris Reinman b54e110020 Added method to delete users 2017-11-17 13:37:53 +02:00
Andris Reinman 98a38fab04 allow encrypting forwarded emails 2017-10-30 13:41:53 +02:00
Andris Reinman 0342e5c179 v1.0.84 2017-10-19 23:33:36 +03:00
Andris Reinman b53ae97938 Added tests for sending messages to LMTP 2017-10-19 11:19:16 +03:00
Andris Reinman b5fdbcd3e1 Allow using external resources for default messages 2017-08-04 14:07:17 +03:00
Andris Reinman a40dce26f1 added some API integration tests 2017-07-26 15:50:54 +03:00