903cf15622
CI / Template validation (static) (push) Successful in 9s
CI / Adapter unit tests (push) Successful in 8s
CI / Template validation (static) (pull_request) Successful in 8s
CI / Adapter unit tests (pull_request) Successful in 10s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 13s
CI / Template validation (runtime) (push) Successful in 6m17s
CI / Template validation (runtime) (pull_request) Successful in 6m0s
CI / T4 tier-4 conformance (live) (push) Successful in 6m9s
CI / T4 tier-4 conformance (live) (pull_request) Successful in 5m29s
CI / validate (pull_request) Successful in 5s
CI / validate (push) Successful in 6s
19 lines
494 B
Python
19 lines
494 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_dockerfile_bakes_native_display_control_tools():
|
|
dockerfile = (ROOT / "Dockerfile").read_text()
|
|
|
|
for package in ("xdotool", "scrot"):
|
|
assert package in dockerfile
|
|
|
|
|
|
def test_entrypoint_prepares_agent_downloads_dir():
|
|
entrypoint = (ROOT / "entrypoint.sh").read_text()
|
|
|
|
assert "mkdir -p /home/agent/Downloads" in entrypoint
|
|
assert "chown agent:agent /home/agent/Downloads" in entrypoint
|