Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 2a9139c

Browse files
committed
Merge torrust#82: Fix smoke test commands
a87b586 fix: [torrust#75] smoke test commands (Jose Celano) Pull request description: Fix smoke test commands. ACKs for top commit: josecelano: ACK a87b586 Tree-SHA512: e1b715e634095e96db6830891742ce377120ea27dc92d14a8e1e26769790997e7303c60f767759a3687a874a05a3244a98044d43c62dc98e0fce756af0681710
2 parents 6358671 + a87b586 commit 2a9139c

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)