Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/test-cases/fns.json

raw symbols SCIP
1 {
2 "version": "1.0",
3 "testCases": [
4 {
5 "documentation": "test where URI is set and flows to URI and header",
6 "params": {
7 "Uri": "https://www.example.com",
8 "Arn": "arn:aws:s3:us-east-2:012345678:outpost:op-1234"
9 },
10 "expect": {
11 "endpoint": {
12 "url": "https://www.example.com",
13 "headers": {
14 "x-uri": [
15 "https://www.example.com"
16 ],
17 "x-arn-region": [
18 "us-east-2"
19 ]
20 }
21 }
22 }
23 },
24 {
25 "documentation": "test where explicit error is set",
26 "params": {
27 "CustomError": "This is an error!"
28 },
29 "expect": {
30 "error": "This is an error!"
31 }
32 },
33 {
34 "documentation": "test where an ARN field is used in the error directly",
35 "params": {
36 "Arn": "arn:This is an error!:s3:us-east-2:012345678:outpost:op-1234"
37 },
38 "expect": {
39 "error": "This is an error!"
40 }
41 },
42 {
43 "documentation": "test case where no fields are set",
44 "params": {},
45 "expect": {
46 "error": "No fields were set"
47 }
48 }
49 ]
50 }