Skip to content

Commit a87b586

Browse files
committed
fix: [#75] smoke test commands
1 parent 6358671 commit a87b586

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

docs/deployment.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,34 @@
55
3. Execute the smoke tests:
66

77
```console
8-
cargo run --bin udp_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
8+
# Clone Torrust Tracker
9+
[email protected]:torrust/torrust-tracker.git
10+
cd torrust-tracker
11+
```
12+
13+
Execute the following commands to run the tracker client and checker.
14+
15+
Simulate a torrent announce to the tracker using UDP:
16+
17+
```console
18+
cargo run -p torrust-tracker-client --bin udp_tracker_client announce udp://tracker.torrust-demo.com:6969/announce 9c38422213e30bff212b30c360d26f9a02136422 | jq
19+
```
920

10-
cargo run --bin http_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
21+
Simulate a torrent scrape to the tracker using HTTP:
1122

23+
```console
24+
cargo run -p torrust-tracker-client --bin http_tracker_client announce https://tracker.torrust-demo.com 9c38422213e30bff212b30c360d26f9a02136422 | jq
25+
```
26+
27+
Make a request to the health check endpoint:
28+
29+
```console
1230
TORRUST_CHECKER_CONFIG='{
13-
"udp_trackers": ["144.126.245.19:6969"],
31+
"udp_trackers": ["udp://tracker.torrust-demo.com:6969/announce"],
1432
"http_trackers": ["https://tracker.torrust-demo.com"],
1533
"health_checks": ["https://tracker.torrust-demo.com/api/health_check"]
16-
}' cargo run --bin tracker_checker
34+
}' cargo run -p torrust-tracker-client --bin tracker_checker
35+
1736
```
1837

1938
4. Check the logs of the tracker container to see if everything is working:

0 commit comments

Comments
 (0)