Skip to content

Commit e00eb3b

Browse files
committed
Fix regex for unzipping REST API spec tests
1 parent b6cfc71 commit e00eb3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_elasticsearch_serverless/test_server/test_rest_api_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def remove_implicit_resolver(cls, tag_to_remove):
555555
)
556556

557557
for yaml_file in package_zip.namelist():
558-
if not re.match(r"^tests/.*\.ya?ml$", yaml_file):
558+
if not re.match(r"^.*\/tests\/.*\.ya?ml$", yaml_file):
559559
continue
560560
yaml_tests = list(
561561
yaml.load_all(package_zip.read(yaml_file), Loader=NoDatesSafeLoader)

0 commit comments

Comments
 (0)