-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.test.js
51 lines (40 loc) · 966 Bytes
/
requests.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2024 XWiki CryptPad Team <[email protected]> and contributors
/* This is a test of real-world requests, namely `GET_HISTORY` and
* `GET_METADATA`.
* The goal of this testsuite is to:
* - create a new datastore
* - populate it with some pads
* - make metadata queries
* - fill the pad with some patches
* - make metadata and history queries
* - check consistency
**/
const test = require("node:test");
test("Start a core node", (t) => {
t.todo()
});
test("Start a storage node", (t) => {
t.todo()
});
test("Initialize a storage", (t) => {
t.todo()
});
test("Populate the storage", (t) => {
t.todo()
});
test("Send patches", (t) => {
t.todo()
});
test("Get Metadata", (t) => {
t.todo()
});
test("Get History", (t) => {
t.todo()
});
test("Close storage node", (t) => {
t.todo()
});
test("Close core node and exit", (t) => {
t.todo()
});