Skip to content

Commit

Permalink
Add extra test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Sep 13, 2023
1 parent 9262fb8 commit a177c9e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
}
}
},
{
"documentation": "bucket--with-multiple-dash: isVirtualHostable",
"params": {
"BucketName": "bucket--with-multiple-dash"
},
"expect": {
"endpoint": {
"url": "https://bucket--with-multiple-dash.s3.amazonaws.com"
}
}
},
{
"documentation": "BucketName: not isVirtualHostable (uppercase characters)",
"params": {
Expand Down Expand Up @@ -143,6 +154,15 @@
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
},
{
"documentation": "bucket..name: not isVirtualHostable (consequetive dots)",
"params": {
"BucketName": "bucket..name"
},
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,33 @@
"expect": {
"error": "Invalid hostlabel"
}
},
{
"documentation": "ending with a dot is not a valid hostlabel",
"params": {
"Region": "part1."
},
"expect": {
"error": "Invalid hostlabel"
}
},
{
"documentation": "multiple consecutive dots are not allowed",
"params": {
"Region": "part1..part2"
},
"expect": {
"error": "Invalid hostlabel"
}
},
{
"documentation": "labels cannot start with a dash",
"params": {
"Region": "part1.-part2"
},
"expect": {
"error": "Invalid hostlabel"
}
}
]
}

0 comments on commit a177c9e

Please sign in to comment.