From 266c4ee512306f2b5bb7776de4f2f7c5ec5003d1 Mon Sep 17 00:00:00 2001 From: Martin Rode Date: Tue, 4 Jun 2024 09:07:54 +0200 Subject: [PATCH] fix tests for "make apitest" --- .../preprocess_file_exiftool_xml.json | 12 +++++----- .../preprocess_file_exiftool_xml_collect.json | 12 +++++----- test/semver/test_semver_compare.json | 23 ------------------- 3 files changed, 12 insertions(+), 35 deletions(-) diff --git a/test/response/preprocess/preprocess_file_exiftool_xml.json b/test/response/preprocess/preprocess_file_exiftool_xml.json index 10a4af2..55c5849 100644 --- a/test/response/preprocess/preprocess_file_exiftool_xml.json +++ b/test/response/preprocess/preprocess_file_exiftool_xml.json @@ -31,32 +31,32 @@ }, "xmlns:Composite": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/Composite/1.0/" + "match": "http://ns.exiftool.(org|ca)/Composite/1.0/" } }, "xmlns:ExifTool": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/ExifTool/1.0/" + "match": "http://ns.exiftool.(org|ca)/ExifTool/1.0/" } }, "xmlns:File": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/File/1.0/" + "match": "http://ns.exiftool.(org|ca)/File/1.0/" } }, "xmlns:ICC_Profile": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/ICC_Profile/ICC_Profile/1.0/" + "match": "http://ns.exiftool.(org|ca)/ICC_Profile/ICC_Profile/1.0/" } }, "xmlns:JFIF": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/JFIF/JFIF/1.0/" + "match": "http://ns.exiftool.(org|ca)/JFIF/JFIF/1.0/" } }, "xmlns:et": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/1.0/" + "match": "http://ns.exiftool.(org|ca)/1.0/" } } }, diff --git a/test/response/preprocess/preprocess_file_exiftool_xml_collect.json b/test/response/preprocess/preprocess_file_exiftool_xml_collect.json index 993b242..29ab872 100644 --- a/test/response/preprocess/preprocess_file_exiftool_xml_collect.json +++ b/test/response/preprocess/preprocess_file_exiftool_xml_collect.json @@ -32,32 +32,32 @@ }, "xmlns:Composite": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/Composite/1.0/" + "match": "http://ns.exiftool.(org|ca)/Composite/1.0/" } }, "xmlns:ExifTool": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/ExifTool/1.0/" + "match": "http://ns.exiftool.(org|ca)/ExifTool/1.0/" } }, "xmlns:File": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/File/1.0/" + "match": "http://ns.exiftool.(org|ca)/File/1.0/" } }, "xmlns:ICC_Profile": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/ICC_Profile/ICC_Profile/1.0/" + "match": "http://ns.exiftool.(org|ca)/ICC_Profile/ICC_Profile/1.0/" } }, "xmlns:JFIF": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/JFIF/JFIF/1.0/" + "match": "http://ns.exiftool.(org|ca)/JFIF/JFIF/1.0/" } }, "xmlns:et": { "#text:control": { - "regex": "http://ns.exiftool.(org|ca)/1.0/" + "match": "http://ns.exiftool.(org|ca)/1.0/" } } }, diff --git a/test/semver/test_semver_compare.json b/test/semver/test_semver_compare.json index b2eb619..2b4a362 100644 --- a/test/semver/test_semver_compare.json +++ b/test/semver/test_semver_compare.json @@ -17,34 +17,11 @@ "statuscode": 200, "body": { "body": { - "semver_easydb_release:control": { - "is_integer": true - }, "semver_easydb_release": -1, - - "semver_easydb_patch:control": { - "is_integer": true - }, "semver_easydb_patch": -1, - - "semver_lt:control": { - "is_integer": true - }, "semver_lt": -1, - - "semver_eq:control": { - "is_integer": true - }, "semver_eq": 0, - - "semver_gt:control": { - "is_integer": true - }, "semver_gt": 1, - - "semver_eq2:control": { - "is_integer": true - }, "semver_eq2": 0 } }