test descriptions
This commit is contained in:
@@ -84,6 +84,7 @@ def _wait_for_completion(port, session, timeout=90.0):
|
||||
|
||||
|
||||
def test_endpoints_require_admin(tmp_path):
|
||||
"Endpoints require admin\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
tracker, port, _admin, user = _start_tracker(tmp_path)
|
||||
try:
|
||||
assert _request(port, "GET", "/v1/tests")[0] == 401
|
||||
@@ -99,6 +100,7 @@ def test_endpoints_require_admin(tmp_path):
|
||||
|
||||
|
||||
def test_disabled_by_default_even_for_admin(monkeypatch):
|
||||
"Disabled by default even for admin\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
monkeypatch.delenv("MESHNET_ENABLE_TEST_RUNNER", raising=False)
|
||||
tracker, port, admin, _user = _start_tracker(None)
|
||||
try:
|
||||
@@ -116,6 +118,7 @@ def test_disabled_by_default_even_for_admin(monkeypatch):
|
||||
|
||||
|
||||
def test_enable_flag_constructs_runner_against_real_repo(monkeypatch):
|
||||
"Enable flag constructs runner against real repo\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
monkeypatch.delenv("MESHNET_ENABLE_TEST_RUNNER", raising=False)
|
||||
tracker = TrackerServer(enable_test_runner=True)
|
||||
assert tracker._test_runner is not None
|
||||
@@ -124,6 +127,7 @@ def test_enable_flag_constructs_runner_against_real_repo(monkeypatch):
|
||||
|
||||
|
||||
def test_runner_uses_configured_project_python(monkeypatch, tmp_path):
|
||||
"Runner uses configured project python\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
python = tmp_path / "python"
|
||||
python.touch(mode=0o755)
|
||||
monkeypatch.setenv("MESHNET_PYTHON", str(python))
|
||||
@@ -134,6 +138,7 @@ def test_runner_uses_configured_project_python(monkeypatch, tmp_path):
|
||||
|
||||
|
||||
def test_collection_lists_tests_and_excludes_real_inference(tmp_path, monkeypatch):
|
||||
"Collection lists tests and excludes real inference\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
monkeypatch.delenv("MESHNET_ENABLE_REAL_INFERENCE_TESTS", raising=False)
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
@@ -158,6 +163,7 @@ def test_collection_lists_tests_and_excludes_real_inference(tmp_path, monkeypatc
|
||||
|
||||
|
||||
def test_run_selected_test_to_completion(tmp_path):
|
||||
"Run selected test to completion\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
assert _request(port, "GET", "/v1/tests", token=admin)[0] == 200
|
||||
@@ -184,6 +190,7 @@ def test_run_selected_test_to_completion(tmp_path):
|
||||
|
||||
|
||||
def test_run_approved_suite_without_prior_collection(tmp_path):
|
||||
"Run approved suite without prior collection\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
status, started = _request(
|
||||
@@ -200,6 +207,7 @@ def test_run_approved_suite_without_prior_collection(tmp_path):
|
||||
|
||||
|
||||
def test_run_all_and_tag_targets(tmp_path):
|
||||
"Run all and tag targets\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
assert _request(port, "GET", "/v1/tests", token=admin)[0] == 200
|
||||
@@ -234,6 +242,7 @@ def test_run_all_and_tag_targets(tmp_path):
|
||||
"suite:no-such-suite",
|
||||
])
|
||||
def test_rejects_arbitrary_or_uncollected_targets(tmp_path, target, monkeypatch):
|
||||
"Rejects arbitrary or uncollected targets\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
monkeypatch.delenv("MESHNET_ENABLE_REAL_INFERENCE_TESTS", raising=False)
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
@@ -250,6 +259,7 @@ def test_rejects_arbitrary_or_uncollected_targets(tmp_path, target, monkeypatch)
|
||||
|
||||
|
||||
def test_rejects_concurrent_runs(tmp_path):
|
||||
"Rejects concurrent runs\n\nTags: dashboard, routing, test-runner, tracker"
|
||||
tracker, port, admin, _user = _start_tracker(tmp_path)
|
||||
try:
|
||||
assert _request(port, "GET", "/v1/tests", token=admin)[0] == 200
|
||||
|
||||
Reference in New Issue
Block a user