ref: flip wxo ff (#12924)

* revert wxo deploy ffj

* skip deployments telemetry test when flag is off
This commit is contained in:
Jordan Frazier
2026-04-30 12:08:28 -04:00
committed by GitHub
parent bc16a400d6
commit dce21ff925
3 changed files with 8 additions and 2 deletions

View File

@ -8,6 +8,7 @@ from uuid import uuid4
import pytest
from fastapi import status
from lfx.services.settings.feature_flags import FEATURE_FLAGS
if TYPE_CHECKING:
from httpx import AsyncClient
@ -15,6 +16,11 @@ if TYPE_CHECKING:
# We'll use a mocked adapter so we don't need real credentials.
# We need to mock the adapter resolution and the telemetry service.
pytestmark = pytest.mark.skipif(
not FEATURE_FLAGS.wxo_deployments,
reason="wxo_deployments feature flag is disabled; deployment routes are not mounted.",
)
@pytest.fixture
def mock_telemetry_service():

View File

@ -251,7 +251,7 @@ async def test_get_config_unauthenticated_returns_correct_field_types(client: As
assert isinstance(result["frontend_timeout"], int), "frontend_timeout must be an integer"
assert isinstance(result["voice_mode_available"], bool), "voice_mode_available must be a boolean"
assert isinstance(result["feature_flags"], dict), "feature_flags must be an object"
assert result["feature_flags"].get("wxo_deployments") is True, "wxo_deployments flag should default to true"
assert result["feature_flags"].get("wxo_deployments") is False, "wxo_deployments flag should default to false"
assert result["event_delivery"] in ["polling", "streaming", "direct"], (
"event_delivery must be one of: polling, streaming, direct"
)

View File

@ -2,7 +2,7 @@ from pydantic_settings import BaseSettings
class FeatureFlags(BaseSettings):
wxo_deployments: bool = True
wxo_deployments: bool = False
"""
Enable Watsonx Orchestrate deployments.
"""