Debian Codegraph @

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

raw symbols SCIP
1 {
2 "version": "1.0",
3 "testCases": [
4 {
5 "documentation": "standard region is a valid hostlabel",
6 "params": {
7 "Region": "us-east-1"
8 },
9 "expect": {
10 "endpoint": {
11 "url": "https://us-east-1.amazonaws.com"
12 }
13 }
14 },
15 {
16 "documentation": "starting with a number is a valid hostlabel",
17 "params": {
18 "Region": "3aws4"
19 },
20 "expect": {
21 "endpoint": {
22 "url": "https://3aws4.amazonaws.com"
23 }
24 }
25 },
26 {
27 "documentation": "when there are dots, only match if subdomains are allowed",
28 "params": {
29 "Region": "part1.part2"
30 },
31 "expect": {
32 "endpoint": {
33 "url": "https://part1.part2-subdomains.amazonaws.com"
34 }
35 }
36 },
37 {
38 "documentation": "a space is never a valid hostlabel",
39 "params": {
40 "Region": "part1 part2"
41 },
42 "expect": {
43 "error": "Invalid hostlabel"
44 }
45 },
46 {
47 "documentation": "an empty string is not a valid hostlabel",
48 "params": {
49 "Region": ""
50 },
51 "expect": {
52 "error": "Invalid hostlabel"
53 }
54 }
55 ]
56 }