mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 21:48:22 +08:00
ref: flip wxo ff (#12924)
* revert wxo deploy ffj * skip deployments telemetry test when flag is off
This commit is contained in:
@ -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():
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
@ -2,7 +2,7 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class FeatureFlags(BaseSettings):
|
||||
wxo_deployments: bool = True
|
||||
wxo_deployments: bool = False
|
||||
"""
|
||||
Enable Watsonx Orchestrate deployments.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user