Commit 89f1d5de authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Remove Agentic manifest file check from unit tests

parent 7896f651
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from pathlib import Path
from types import SimpleNamespace

from agentic.Config import (
@@ -35,9 +34,6 @@ from agentic.service.tools.service_workflow import (
from common.Settings import is_deployed_agentic


REPO_ROOT = Path(__file__).resolve().parents[3]


def test_agentic_default_config(monkeypatch) -> None:
    monkeypatch.delenv("ADK_MODEL", raising=False)
    monkeypatch.delenv("ADK_AGENT_GRAPH", raising=False)
@@ -76,25 +72,6 @@ def test_agentic_deployment_detection_accepts_http_only(monkeypatch) -> None:
    assert is_deployed_agentic() is True


def test_agentic_manifest_exposes_adk_web_a2a_runtime() -> None:
    manifest = REPO_ROOT.joinpath(
        "manifests", "agenticservice.yaml"
    ).read_text(encoding="utf-8")

    assert "- name: server" in manifest
    assert "workingDir: /var/teraflow/adk_apps" in manifest
    assert "- agentic.service.adk_web" in manifest
    assert 'ADK_HTTP_ROOT_PATH: "/agentic"' in manifest
    assert 'value: "/var/teraflow"' in manifest
    assert "number: 8000" in manifest
    assert "number: 8800" not in manifest
    assert "tfs-ingress-agentic-api" not in manifest
    assert "tfs-ingress-agentic-web" not in manifest
    assert "tfs-ingress-agentic" in manifest
    assert "rewrite-target" not in manifest
    assert "path: /agentic/dev-ui/" in manifest


def test_adk_web_sets_prefixed_fastapi_root_path(monkeypatch) -> None:
    from agentic.service import adk_web