Commit Graph

44 Commits

Author SHA1 Message Date
James Houlahan
8f4721a3ec test: Make server status test more robust
The test HTTP client is not configured with any timeouts.
If the read fails, depending on when it happens, it can hang indefinitely.
This was unpredictable with the way the test was written before;
the message fetching was highly parallel. By replacing the message fetch
with a simple GetUser call which fails predictably, the test is made
more robust.
2023-02-17 17:45:17 +01:00
James Houlahan
0af5d2f084 feat(GODT-2361): Use simple import encrypter for simple messages 2023-02-17 14:05:33 +01:00
Xavier Michelon
4056d48a12 feat(GODT-1264): added tests. 2023-02-14 14:03:36 +01:00
Xavier Michelon
a58987d077 feat(GODT-1264): Scheduled label managed by flag in fake server. 2023-02-14 14:03:36 +01:00
James Houlahan
1cd447386a feat(GODT-2283): Limit max import size to 30MB 2023-02-09 16:00:29 +01:00
Xavier Michelon
2c958b92ff fix: allow import in 'Scheduled' on fake server. 2023-02-09 15:23:06 +01:00
James Houlahan
b185be77ce feat: Add handling for net.OpError 2023-02-09 11:55:44 +01:00
James Houlahan
7eee7f487b test: Ensure GET message returns valid API response type 2023-02-07 15:07:17 +01:00
James Houlahan
8c02ae564a test: Implement DropListener, add DropOnWrite ping test 2023-02-07 14:57:49 +01:00
Xavier Michelon
54876bdd72 feat(GODT-1264): added required labels and flags for 'Scheduled Send'. 2023-02-06 15:28:18 +01:00
James Houlahan
1849bf7d57 fix: Use URL encoding for event IDs
The event ID needs to appear in the URL request. As such,
it can't contain any forward slashes.
2023-02-03 13:04:57 +01:00
James Houlahan
ea654fa155 feat: Add basic mail settings support in fake server 2023-02-03 12:22:58 +01:00
James Houlahan
e2fc4deffe fix: Removing from inbox shouldn't remove from trash 2023-02-02 07:18:50 +01:00
Romain LE JEUNE
5110649c02 feat(GODT-1556): do not store references on server side. 2023-02-01 16:11:45 +01:00
Romain LE JEUNE
f3ca47a598 feat(GODT-1556): simulate reply behaviour on fakeAPI side. 2023-02-01 16:11:45 +01:00
Leander Beernaert
e2895f283c fix: Out of bounds page chunk access 2023-01-30 10:39:44 +01:00
Leander Beernaert
2357abb517 fix: Correct paging in test server 2023-01-30 10:39:44 +01:00
Leander Beernaert
396642be5e refactor: Track attachments sizes on server 2023-01-30 10:39:44 +01:00
Leander Beernaert
8fa71fac20 refactor(GODT-2224): Allow user to control how to download attachments
This reverts commit 35702fd064.
2023-01-30 10:39:44 +01:00
James Houlahan
3c1ac27785 fix: Optimize message metadata paging by pre-fetching total 2023-01-26 12:28:49 +01:00
Jakub
35702fd064 Revert "refactor(GODT-2224): Allow user to control how to download attachments"
This reverts commit 5e70c325c3.
2023-01-25 09:28:44 +01:00
Jakub
d965ed3660 feat(GODT-2223): Do not add updates when adding lables for new message
There is no need to send message updated event when we create new
message and add lables on creation. This reflects real API behaviour.
2023-01-25 09:28:44 +01:00
Leander Beernaert
5e70c325c3 refactor(GODT-2224): Allow user to control how to download attachments
Expose mechanism for a user of the library to control how the
attachments should be downloaded.

`AttachmentAllocator` allows the user to specify where the byte
buffers for the attachments should originate from.

`Scheduler` allows the user to control how the attachments should be
downloaded. `SequentialScheduler` and `ParallelScheduler` are provided
as reference implementations.
2023-01-24 16:18:38 +01:00
Jakub
df62623174 feat(GODT-2223): Add Message and Label Created event. 2023-01-24 10:18:10 +01:00
Jakub
f5b1ba0886 fix(GODT-2181): add filter options and change test server update draft behaviour 2023-01-19 17:00:45 +01:00
James Houlahan
93ad9245e8 feat: Add status hooks to server for overriding response status codes 2023-01-18 10:11:11 +01:00
James Houlahan
9e3bd79a8b feat: Implement NetError (and rename proton.Error to proton.APIError)
NetError is an error type returned when no response was received from
the API. This allows callers to determine whether their call failed
due to a network level error.

Additionally, proton.APIError now has Status to see what the status code
was in the response that triggered the error.
2023-01-17 12:27:51 +01:00
Jakub
668da5a814 test(GODT-2181): match API behaviour for import
When importing message without from or sender the API will add empty address.
2023-01-11 11:27:46 +01:00
Leander Beernaert
1619453137 fix(GODT-1817): Add status flag to Quark commands
Required for creating users with disabled addresses.
2023-01-09 14:03:02 +01:00
Leander Beernaert
680d85d1c3 fix: Track message header date in test server 2023-01-03 15:03:23 +01:00
James Houlahan
4d84ed761e feat: Switch from /core/v4/auth to /auth/v4 2022-12-14 08:22:45 +01:00
James Houlahan
0ed178e88e test(GODT-2181): Fix test server proxy goroutine leaks 2022-12-13 13:12:36 +01:00
James Houlahan
fd06b106da refactor: NetCtl, transport, dialer, rate limiting 2022-12-13 13:12:36 +01:00
James Houlahan
779a2ee672 feat(GODT-2181): Implement GetDomains 2022-12-13 13:12:36 +01:00
James Houlahan
a847d9b892 test(GODT-2181): Handle quark commands in test server 2022-12-13 13:12:36 +01:00
James Houlahan
586c991f0e feat: Add TOTP-enabled flag 2022-12-05 13:26:38 +01:00
James Houlahan
25457864bc feat: Perform draft encryption during upload 2022-12-02 13:33:05 +01:00
James Houlahan
82dd88184a fix: Set unread flag from draft template 2022-12-02 13:33:05 +01:00
James Houlahan
eb1de709c6 fix(GODT-2170): Create draft should set sysLabel 2022-12-02 13:33:05 +01:00
cuthix
1bec852c8c fix: simulate token rejection as API (#4) 2022-12-01 08:14:28 +01:00
James Houlahan
3029f48b34 fix: Refresh on 401 2022-11-30 16:29:30 +01:00
James Houlahan
1d9f3ca321 fix: Remove deprecated expires in 2022-11-30 16:29:30 +01:00
Jakub
707b903c9a fix(GODT-2114): check disposition before uploading an attachment. 2022-11-28 18:57:42 +01:00
James Houlahan
2323ea7360 feat: Initial open source commit 2022-11-23 12:03:04 +01:00