From cb48abdf9b7d9cf341a02037c7d4ec95c893e19a Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 18 Dec 2024 12:51:27 -0700 Subject: [PATCH] add some more cuzz.json files --- examples/stable/test/property/ic_api/arg_data_raw/cuzz.json | 4 +++- examples/stable/test/property/ic_api/candid/cuzz.json | 5 ++++- .../stable/test/property/ic_api/certified_data/cuzz.json | 2 +- examples/stable/test/property/ic_api/cycles/cuzz.json | 2 +- .../test/property/ic_api/performance_counter/cuzz.json | 2 +- examples/stable/test/property/ic_api/reject/cuzz.json | 2 +- examples/stable/test/property/ic_api/reject_code/cuzz.json | 2 +- .../stable/test/property/ic_api/reject_message/cuzz.json | 2 +- 8 files changed, 13 insertions(+), 8 deletions(-) diff --git a/examples/stable/test/property/ic_api/arg_data_raw/cuzz.json b/examples/stable/test/property/ic_api/arg_data_raw/cuzz.json index 8694070f50..e26e8ccf29 100644 --- a/examples/stable/test/property/ic_api/arg_data_raw/cuzz.json +++ b/examples/stable/test/property/ic_api/arg_data_raw/cuzz.json @@ -1,3 +1,5 @@ { - "expectedErrors": ["xUncaught: Candid parser error"] + "expectedErrors": [ + "Method: candidEncode \\(query\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Uncaught: Candid parser error: Unrecognized token" + ] } diff --git a/examples/stable/test/property/ic_api/candid/cuzz.json b/examples/stable/test/property/ic_api/candid/cuzz.json index d298ae6f98..66903fbada 100644 --- a/examples/stable/test/property/ic_api/candid/cuzz.json +++ b/examples/stable/test/property/ic_api/candid/cuzz.json @@ -1,3 +1,6 @@ { - "expectedErrors": ["xCannot parse header", "xCandid parser error"] + "expectedErrors": [ + "Method: candidEncode \\(query\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Uncaught: Cannot parse header", + "xCandid parser error" + ] } diff --git a/examples/stable/test/property/ic_api/certified_data/cuzz.json b/examples/stable/test/property/ic_api/certified_data/cuzz.json index 64e0aebcb7..4b4da7bb28 100644 --- a/examples/stable/test/property/ic_api/certified_data/cuzz.json +++ b/examples/stable/test/property/ic_api/certified_data/cuzz.json @@ -1,6 +1,6 @@ { "expectedErrors": [ "xCanister violated contract: \\\\\"ic0_certified_data_set\\\\\" cannot be executed in non replicated query mode", - "xCanister violated contract: ic0_certified_data_set failed because the passed data must be no larger than 32 bytes" + "Method: assertSetCertifiedDataTypes \\(update\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Canister violated contract: ic0_certified_data_set failed because the passed data must be no larger than 32 bytes" ] } diff --git a/examples/stable/test/property/ic_api/cycles/cuzz.json b/examples/stable/test/property/ic_api/cycles/cuzz.json index 60152709ef..c43674a5c5 100644 --- a/examples/stable/test/property/ic_api/cycles/cuzz.json +++ b/examples/stable/test/property/ic_api/cycles/cuzz.json @@ -1,6 +1,6 @@ { "expectedErrors": [ - "xUncaught Error: numChunks cannot be 0", + "Method: receiveCyclesByChunk \\(update\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Uncaught Error: numChunks cannot be 0", "xCanister trapped: heap out of bounds" ] } diff --git a/examples/stable/test/property/ic_api/performance_counter/cuzz.json b/examples/stable/test/property/ic_api/performance_counter/cuzz.json index 5b6f9544f8..1400002a00 100644 --- a/examples/stable/test/property/ic_api/performance_counter/cuzz.json +++ b/examples/stable/test/property/ic_api/performance_counter/cuzz.json @@ -1,6 +1,6 @@ { "expectedErrors": [ - "xError getting performance counter type", + "Method: assertTypes \\(query\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Canister violated contract: Error getting performance counter type", "xUncaught Error: Rejection code 2, Couldn't send message" ] } diff --git a/examples/stable/test/property/ic_api/reject/cuzz.json b/examples/stable/test/property/ic_api/reject/cuzz.json index f02a2a41ca..fc81500e70 100644 --- a/examples/stable/test/property/ic_api/reject/cuzz.json +++ b/examples/stable/test/property/ic_api/reject/cuzz.json @@ -1,3 +1,3 @@ { - "expectedErrors": ["xreject proptest message:", "xOdd numbers are rejected"] + "expectedErrors": ["reject proptest message:", "Odd numbers are rejected"] } diff --git a/examples/stable/test/property/ic_api/reject_code/cuzz.json b/examples/stable/test/property/ic_api/reject_code/cuzz.json index 2cf4497e64..bed55f78db 100644 --- a/examples/stable/test/property/ic_api/reject_code/cuzz.json +++ b/examples/stable/test/property/ic_api/reject_code/cuzz.json @@ -1,3 +1,3 @@ { - "expectedErrors": ["xThrown error", "xRejection with message"] + "expectedErrors": ["Thrown error", "Rejection with message"] } diff --git a/examples/stable/test/property/ic_api/reject_message/cuzz.json b/examples/stable/test/property/ic_api/reject_message/cuzz.json index 4c7af83889..e5163f27fe 100644 --- a/examples/stable/test/property/ic_api/reject_message/cuzz.json +++ b/examples/stable/test/property/ic_api/reject_message/cuzz.json @@ -1,3 +1,3 @@ { - "expectedErrors": ["xreject_message proptest message:"] + "expectedErrors": ["reject_message proptest message:"] }