Skip to content

Commit 3ae1320

Browse files
test: add stream_count=0 failure case
Co-Authored-By: gl_anatolii.yatsuk <gl_anatolii.yatsuk@airbyte.io>
1 parent 7b95a10 commit 3ae1320

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

unit_tests/sources/declarative/checks/test_check_stream.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,26 @@ def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapp
507507
1,
508508
id="test_stream_count_zero_checks_all_streams",
509509
),
510+
pytest.param(
511+
{
512+
"check": {
513+
"type": "CheckStream",
514+
"dynamic_streams_check_configs": [
515+
{
516+
"type": "DynamicStreamCheckConfig",
517+
"dynamic_stream_name": "http_dynamic_stream",
518+
"stream_count": 0,
519+
},
520+
],
521+
}
522+
},
523+
Status.FAILED,
524+
False,
525+
404,
526+
["Not found. The requested resource was not found on the server."],
527+
0,
528+
id="test_stream_count_zero_failed",
529+
),
510530
pytest.param(
511531
{"check": {"type": "CheckStream", "stream_names": ["non_existent_stream"]}},
512532
Status.FAILED,

0 commit comments

Comments
 (0)