Files
OpenJarvis/tests/test_docker.py
T
Jon Saad-FalconandClaude Opus 4.6 301e9cd2d4 Implement OpenJarvis v1.0 — all five pillars, SDK, benchmarks, Docker
Complete implementation across six development phases (v0.1 through v1.0):

- Core: Registry system, config, event bus, types (Phase 0)
- Intelligence + Inference: Model routing, Ollama/vLLM/llama.cpp/Cloud engines (Phase 1)
- Memory: SQLite/FAISS/ColBERT/BM25/Hybrid backends, document ingest, context injection (Phase 2)
- Agents: Simple/Orchestrator/Custom/OpenClaw agents, tool system (Phase 3)
- Learning: HeuristicRouter, reward functions, GRPO stub, telemetry aggregation (Phase 4)
- SDK: Jarvis class, OpenClaw protocol/transport, benchmarks, Docker deployment (Phase 5)

520 tests passing, 8 skipped (optional deps). Ruff lint clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 00:52:48 +00:00

50 lines
1.4 KiB
Python

"""Tests for Docker and deployment files."""
from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
class TestDockerFiles:
def test_dockerfile_exists(self):
assert (ROOT / "Dockerfile").is_file()
def test_dockerfile_gpu_exists(self):
assert (ROOT / "Dockerfile.gpu").is_file()
def test_dockerfile_has_entrypoint(self):
content = (ROOT / "Dockerfile").read_text()
assert "ENTRYPOINT" in content
assert "jarvis" in content
def test_docker_compose_valid_yaml(self):
import importlib
yaml_mod = None
try:
yaml_mod = importlib.import_module("yaml")
except ImportError:
pass
compose_path = ROOT / "docker-compose.yml"
assert compose_path.is_file()
content = compose_path.read_text()
# Basic structural checks without requiring PyYAML
assert "services:" in content
assert "jarvis:" in content
if yaml_mod is not None:
data = yaml_mod.safe_load(content)
assert "services" in data
def test_docker_compose_has_services(self):
content = (ROOT / "docker-compose.yml").read_text()
assert "jarvis:" in content
assert "ollama:" in content
def test_systemd_service_exists(self):
assert (ROOT / "deploy" / "systemd" / "openjarvis.service").is_file()