Skip to content

Tracker Checker: console command to run tracker checks #637

@josecelano

Description

@josecelano

Parent issue: #620

Console command that runs some checks against live running trackers. It would be used for:

  • E2E testing.
  • Smoke tests after deploying the live demo.

It can be run with the following alternatives:

cargo run --bin tracker_checker -- --config-path "./share/default/config/tracker_checker.json"

TORRUST_CHECKER_CONFIG_PATH="./share/default/config/tracker_checker.json" cargo run --bin tracker_checker

TORRUST_CHECKER_CONFIG=$(cat "./share/default/config/tracker_checker.json") cargo run --bin tracker_checker

And you can pass a list of services to check in the configuration:

{
    "udp_trackers": [
        "127.0.0.1:6969"
    ],
    "http_trackers": [
        "http://127.0.0.1:7070"
    ],
    "health_checks": [
        "http://127.0.0.1:1313/health_check"
    ]
}

For UDP and HTTP trackers it will make an announce and scrape requests.

Subtasks

Metadata

Metadata

Assignees

Labels

EPICContains several subissuesTestingChecking Torrust

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions