-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathremote-client.ts
45 lines (42 loc) · 994 Bytes
/
remote-client.ts
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
import { SkipHttpAccessV1, run, type Step } from "./utils.js";
function scenarios() {
return [
[
{
type: "write",
payload: [{ collection: "input1", entries: [["v1", [2]]] }],
},
{
type: "write",
payload: [{ collection: "input2", entries: [["v1", [3]]] }],
},
{
type: "delete",
payload: [{ collection: "input1", keys: ["v1"] }],
},
{
type: "write",
payload: [
{
collection: "input1",
entries: [
["v1", [2]],
["v2", [6]],
],
},
],
},
{
type: "write",
payload: [{ collection: "input2", entries: [["v2", [0]]] }],
},
{
type: "write",
payload: [{ collection: "input1", entries: [["v1", [8]]] }],
},
] as Step[],
];
}
const access = new SkipHttpAccessV1(3589, 3590);
access.request("data", {});
run(scenarios(), 3587, 3588);