Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

863 B
Raw Blame
"""E2E tests: health and basic startup verification."""

import json
import urllib.request


class TestHealth:
    """Verify the container starts and responds."""

    def test_health_endpoint(self, api_url):
        resp = urllib.request.urlopen(f"{api_url}/health", timeout=5)
        assert resp.status == 200
        data = json.loads(resp.read())
        assert data["status"] == "ok"

    def test_version_endpoint(self, api_url):
        # Version is a JSON API route, migrated to /api/* in this PR. (/health
        # and /status stay at the root as auth-exempt startup probes.)
        resp = urllib.request.urlopen(f"{api_url}/api/version", timeout=5)
        assert resp.status == 200
        data = json.loads(resp.read())
        # Version should be present (may be "0.0.0" in dev/editable mode)
        assert "version" in data or "current" in data