Commit graph libervia-backend/tests/e2e/libervia-cli
Author SHA1 Message Date
Goffi
d2685ba11b refactoring: renamed sat package to libervia.backend 2023-06-02 11:49:51 +02:00
Goffi
6a6f15707a massive refactoring to switch from camelCase to snake_case:
historically, Libervia (SàT before) was using camelCase as allowed by PEP8 when using a
pre-PEP8 code, to use the same coding style as in Twisted.

However, snake_case is more readable and it's better to follow PEP8 best practices, so it
has been decided to move on full snake_case. Because Libervia has a huge codebase, this
ended with a ugly mix of camelCase and snake_case.

To fix that, this patch does a big refactoring by renaming every function and method
(including bridge) that are not coming from Twisted or Wokkel, to use fully snake_case.

This is a massive change, and may result in some bugs.
2023-04-08 13:54:42 +02:00
Goffi
e735ae6a58 tests (e2e/cli): test for Pubsub Targeted Encryption:
rel 382
2022-10-31 13:48:31 +01:00
Goffi
27e9655898 tests (e2e/cli): add tests for JET:
rel 378
2022-10-31 04:09:38 +01:00
Goffi
8cf01c8569 tests (e2e/cli): add a test for Pubsub Signing:
rel 381
2022-10-30 01:06:55 +02:00
Goffi
2e46d08225 tests (e2e/cli): add test for pubsub encryption:
test encryption and keys sharing.

rel 380
2022-10-15 20:38:33 +02:00
Goffi
fca541a2f1 tests (e2e/cli/cache_search): make the test more resilient:
the caching is triggered by `li.blog.get`, but it is done in parallel without blocking the
command, thus there is a possibility that the data is not yet in cache when the following
test is done.

A loop with delay is done, to be sure that cache is filled before doing the assertion.
2022-05-13 19:27:21 +02:00
Goffi
589468041a tests (e2e/CLI/set_get): fix RSM request:
items are stored in chronological order in Pubsub, and as we want the more recent one, we
need to set `before=''`. Otherwise, we can get a wrong item from a previous test.
2022-01-31 18:35:52 +01:00
Goffi
33d452e0cc tests (e2e/CLI): tests for Pubsub Cache Search
fix 361
2021-09-08 17:58:48 +02:00
Goffi
9293c7259d tests (e2e/cli): update JSON and XML outputs following changes in Libervia CLI 2021-09-08 11:18:01 +02:00
Goffi
29e76c1adb test (e2e/cli): use max_items instead of max when retrieving blog items:
RSM `max` alone will return first (oldest) items, while `max_items` will return latest
ones. As Libervia Pubsub as been fixed in this regard, tests are now fixed too.
2021-09-08 11:17:51 +02:00
Goffi
adb09a719f tests: update following names change 2021-04-16 18:32:34 +02:00