Skip to content

Commit

Permalink
update many cuzz.json files to use regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Dec 18, 2024
1 parent a234d94 commit 4b7ec54
Show file tree
Hide file tree
Showing 24 changed files with 3,942 additions and 24,142 deletions.

Large diffs are not rendered by default.

8,946 changes: 1,259 additions & 7,687 deletions examples/experimental/test/end_to_end/candid_rpc/simple_erc20/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"expectedErrors": [
"Method: canisterCrossCanisterCall \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 3, No route to canister",
"Method: canisterCrossCanisterCall \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 5, IC0536: Management canister has no method"
"Method: canisterCrossCanisterCall \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 5, IC0536: Management canister has no method",
"Method: canisterCrossCanisterCall \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 3, Canister .* not found"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Method: createReaction \\(update\\)[\\s\\S]*Uncaught TypeError: cannot read property 'Symbol.iterator' of undefined",
"Method: createThread \\(update\\)[\\s\\S]*Uncaught TypeError: cannot read property 'Symbol.iterator' of undefined",
"Method: createReaction \\(update\\)[\\s\\S]*Uncaught Error: Post not found",
"xThread not found",
"xCanister trapped: heap out of bounds"
"Method: getAllPosts \\(query\\)[\\s\\S]*Canister trapped: heap out of bounds",
"xThread not found"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xCanister violated contract: \\\\\"ic0_call_new\\\\\" cannot be executed in non replicated query mode",
"Method: simpleQuery \\(query\\)[\\s\\S]*Canister violated contract: \\\\\"ic0_call_new\\\\\" cannot be executed in non replicated query mode",
"xComposite query cannot be called in replicated mode",
"xCanister has no query method 'updateQuery'"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xhahahaha",
"Method: trap \\(update\\)[\\s\\S]*Canister called `ic0.trap` with message: hahahaha",
"xUncaught TypeError: cannot convert to bigint",
"xFailed to encode Candid arguments"
]
Expand Down
2 changes: 1 addition & 1 deletion examples/stable/test/end_to_end/candid_rpc/date/cuzz.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"expectedErrors": [
"Method: dateToJSONString \\(query\\)[\\s\\S]*Uncaught Error: Failed to encode Candid arguments: Error: Invalid text argument: null",
"xDate value is NaN",
"xUncaught Error: Failed to encode Candid arguments: Error: Invalid nat32 argument: null",
"xUncaught Error: Failed to encode Candid arguments: Error: Invalid text argument: null",
"xUncaught RangeError: cannot convert NaN or Infinity to BigInt",
"xUncaught Error: Failed to encode Candid arguments: Error: Invalid nat64 argument"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xCanister violated contract: ic0_certified_data_set failed because the passed data must be no larger than 32 bytes",
"Method: setCertifiedData \\(update\\)[\\s\\S]*Canister violated contract: ic0_certified_data_set failed because the passed data must be no larger than 32 bytes",
"Method: reject \\(query\\)",
"Method: trap \\(query\\)"
]
Expand Down
2 changes: 1 addition & 1 deletion examples/stable/test/end_to_end/candid_rpc/icrc/cuzz.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xassertion failed at ICRC1.mo:262.5-262.37",
"Method: icrc1_transfer \\(update\\)[\\s\\S]*assertion failed at ICRC1.mo:262.5-262.37",
"xassertion failed at ICRC1.mo:268.20-268.59",
"xis larger than the max allowed 2097152"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xInvalid account identifier: Checksum failed for",
"Method: executeTransfer \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 5, IC0503: Error from Canister bd3sg-teaaa-aaaaa-qaaba-cai: Canister called `ic0.trap` with message: Invalid account identifier: Checksum failed for .*, expected check bytes 081f456e but found 0c000000",
"xDeserialization Failed"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xUncaught Error: Rejection code 3, Unable to route management canister request",
"Method: executeClearChunkStore \\(update\\)[\\s\\S]*Uncaught Error: Rejection code 3, Unable to route management canister request",
"xnot found"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"expectedErrors": ["xUncaught Error: Invalid nat32 argument: 4294967296"]
"expectedErrors": [
"Method: inc \\(update\\)[\\s\\S]*Uncaught Error: Invalid nat32 argument: 4294967296"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"expectedErrors": ["xCanister trapped: heap out of bounds"]
"expectedErrors": [
"Method: fac \\(update\\)[\\s\\S]*Canister trapped: heap out of bounds"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"expectedErrors": ["xshould not happen"]
"expectedErrors": [
"Method: http_streaming \\(query\\)[\\s\\S]*should not happen"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"expectedErrors": ["xmessageHash must be 32 bytes"]
"expectedErrors": [
"Method: sign \\(update\\)[\\s\\S]*messageHash must be 32 bytes"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"expectedErrors": [
"xUncaught: Anything you want",
"xError: Invalid empty argument: undefined"
"Method: getEmpty \\(query\\)[\\s\\S]*\"Status\":[\\s\\S]*\"Code\":[\\s\\S]*\"Message\":.*Uncaught: Anything you want",
"Error: Invalid empty argument: undefined"
]
}
Loading

0 comments on commit 4b7ec54

Please sign in to comment.