You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ENVIRONMENT.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,16 @@
4
4
Complement-Crypto is configured exclusively through the use of environment variables. These variables are described below. Additional environment variables can be used, and are outlined at https://github.com/matrix-org/complement/blob/main/ENVIRONMENT.md
5
5
Complement-Crypto always runs in dirty mode (homeservers exist for the entire duration of the test suite) for performance reasons.
6
6
7
+
#### `COMPLEMENT_CRYPTO_MITMDUMP`
8
+
The path to dump the output from `mitmdump`. This file can then be used with mitmweb to view all the HTTP flows in the test.
9
+
- Type: `string`
10
+
- Default: ""
11
+
7
12
#### `COMPLEMENT_CRYPTO_RPC_BINARY`
8
13
The absolute path to the pre-built rpc binary file. This binary is generated via `go build -tags=jssdk,rust ./cmd/rpc`. This binary is used when running multiprocess tests. If this environment variable is not supplied, tests which try to use multiprocess clients will be skipped, making this environment variable optional.
9
14
- Type: `string`
10
15
- Default: ""
11
16
12
-
#### `COMPLEMENT_CRYPTO_TCPDUMP`
13
-
If 1, automatically attempts to run `tcpdump` when the containers are running. Stops dumping when tests complete. This will probably require you to run `go test` with `sudo -E`. The `.pcap` file is written to `tests/test.pcap`.
14
-
- Type: `bool`
15
-
- Default: 0
16
-
17
17
#### `COMPLEMENT_CRYPTO_TEST_CLIENT_MATRIX`
18
18
The client test matrix to run. Every test is run for each given permutation. The default matrix tests all JS/Rust permutations _ignoring federation_.
Copy file name to clipboardExpand all lines: FAQ.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Now you can look around those log lines for any warnings/errors or unexpected be
23
23
24
24
Sometimes the bug cannot be found via log files alone. You may want to see server logs. To do this, [enable writing container logs](https://github.com/matrix-org/complement-crypto/blob/main/ENVIRONMENT.md#complement_crypto_write_container_logs) then re-run the test.
25
25
26
-
Sometimes, even that isn't enough. Perhaps server logs aren't giving enough information. In that case, [enable tcpdump](https://github.com/matrix-org/complement-crypto/blob/main/ENVIRONMENT.md#complement_crypto_tcpdump) and open the `.pcap` file in Wireshark to see the raw HTTP request/responses made by all clients.
26
+
Sometimes, even that isn't enough. Perhaps server logs aren't giving enough information. In that case, [enable mitmdump](https://github.com/matrix-org/complement-crypto/blob/main/ENVIRONMENT.md#complement_crypto_mitmdump) and open the dump file in mitmweb to see the raw HTTP request/responses made by all clients. If you don't have mitmweb, run `./open_mitmweb.sh` which will use the mitmproxy image.
27
27
28
28
If you need to add console logging to clients, see below.
0 commit comments