Skip to content

Commit

Permalink
updated vanilla test files and rename provider test file (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlm6693 authored Sep 28, 2022
1 parent d9a5e06 commit 5aa876e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,33 @@
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
},
{
"documentation": "192.168.5.4: not isVirtualHostable (formatted like an ip address)",
"params": {
"BucketName": "192.168.5.4"
},
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
},
{
"documentation": "bucket-.name: not isVirtualHostable (invalid label, ends with a -)",
"params": {
"BucketName": "bucket-.name"
},
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
},
{
"documentation": "bucket.-name: not isVirtualHostable (invalid label, starts with a -)",
"params": {
"BucketName": "bucket.-name"
},
"expect": {
"error": "not isVirtualHostableS3Bucket"
}
}
]
}
}
9 changes: 9 additions & 0 deletions tests/unit/data/endpoints/test-cases/valid-hostlabel.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
"expect": {
"error": "Invalid hostlabel"
}
},
{
"documentation": "an empty string is not a valid hostlabel",
"params": {
"Region": ""
},
"expect": {
"error": "Invalid hostlabel"
}
}
]
}
File renamed without changes.

0 comments on commit 5aa876e

Please sign in to comment.