Skip to content

Commit 45fc0da

Browse files
committed
Skip failing cluster/cluster_info test
1 parent 7e1e9e9 commit 45fc0da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test_elasticsearch_serverless/test_server/test_rest_api_spec.py

+5
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ def remove_implicit_resolver(cls, tag_to_remove):
572572
# Skip either 'test_name' or 'test_name[x]'
573573
if pytest_test_name in FAILING_TESTS or pytest_param_id in FAILING_TESTS:
574574
pytest_param["fail"] = True
575+
# https://github.com/elastic/elasticsearch-serverless-python/issues/63
576+
elif pytest_param_id == "cluster/cluster_info[0]":
577+
pytest_param["skip"] = True
575578

576579
YAML_TEST_SPECS.append(pytest.param(pytest_param, id=pytest_param_id))
577580

@@ -593,5 +596,7 @@ def _pytest_param_sort_key(param: pytest.param) -> Tuple[Union[str, int], ...]:
593596
def test_rest_api_spec(test_spec, sync_runner):
594597
if test_spec.get("fail", False):
595598
pytest.xfail("Manually marked as failing in 'FAILING_TESTS'")
599+
elif test_spec.get("skip", False):
600+
pytest.skip("Manually marked as skipped")
596601
sync_runner.use_spec(test_spec)
597602
sync_runner.run()

0 commit comments

Comments
 (0)