diff --git a/contract-tests/client_entity.py b/contract-tests/client_entity.py index 702a6a9..9cb4e0f 100644 --- a/contract-tests/client_entity.py +++ b/contract-tests/client_entity.py @@ -30,6 +30,12 @@ def __init__(self, tag, config): if streaming.get("baseUri") is not None: opts["stream_uri"] = streaming["baseUri"] _set_optional_time_prop(streaming, "initialRetryDelayMs", opts, "initial_reconnect_delay") + else: + opts['stream'] = False + polling = config["polling"] + if polling.get("baseUri") is not None: + opts["base_uri"] = polling["baseUri"] + _set_optional_time_prop(polling, "pollIntervalMs", opts, "poll_interval") if config.get("events") is not None: events = config["events"] diff --git a/contract-tests/service.py b/contract-tests/service.py index 16a078a..507354c 100644 --- a/contract-tests/service.py +++ b/contract-tests/service.py @@ -61,6 +61,7 @@ def status(): body = { 'capabilities': [ 'server-side', + 'server-side-polling', 'all-flags-with-reasons', 'all-flags-client-side-only', 'all-flags-details-only-for-tracked-flags',