[#310] Extend bucket testsuite #310
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testcases#310
Loading…
Reference in a new issue
No description provided.
Delete branch "Kiriruso/frostfs-testcases:feature-extend-bucket-testsuite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Kirill Sosnovskikh k.sosnovskikh@yadro.com
efa7fcf765
to66d59d8e3e
@ -143,0 +192,4 @@
],
)
def test_create_bucket_with_invalid_name(self, s3_client: S3ClientWrapper, prefix: str, postfix: str | None):
bucket_name = prefix if postfix is None else string_utils.unique_name(prefix, postfix)
since it's negative, we don't need unique names here, all the names should be in parameters
@ -143,0 +173,4 @@
with pytest.raises(Exception, match=".*(?:InvalidBucketName|Invalid bucket name).*"):
s3_client.create_bucket(bucket_name)
@allure.title("[NEGATIVE] Create bucket with invalid name (s3_client={s3_client}, prefix={prefix}, postfix={postfix})")
[NEGATIVE] Buckets with invalid names should not be created (blah-blah)
@ -143,0 +188,4 @@
["bucket_", "-10"],
["127.10.5.11", None],
["xn--bucket-", "-12"],
["bucket-13-", "-s3alias"],
not all cases from https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html covered
@ -143,0 +194,4 @@
def test_create_bucket_with_invalid_name(self, s3_client: S3ClientWrapper, prefix: str, postfix: str | None):
bucket_name = prefix if postfix is None else string_utils.unique_name(prefix, postfix)
with reporter.step("Create bucket with invalid name and catch exception"):
with pytest.raises(Exception, match=".*(?:InvalidBucketName|Invalid bucket name|argument --bucket: expected one argument).*"):
I guess
InvalidBucketName
andInvalid bucket name
comes from boto3 and aws, but why we haveargument --bucket: expected one argument
here?66d59d8e3e
toe698af2731
e698af2731
to52eafc3d70
52eafc3d70
to930176f544
New commits pushed, approval review dismissed automatically according to repository settings
@ -143,0 +216,4 @@
object_path = generate_file(simple_object_size.value)
object_name = s3_helper.object_key_from_file_path(object_path)
with reporter.step("Create bucket"):
Please use bucket fixture
@ -143,0 +206,4 @@
with pytest.raises(Exception, match=".*(?:InvalidBucketName|Invalid bucket name).*"):
s3_client.create_bucket(bucket_name)
@allure.title("Non-empty bucket is available after attempting to delete it (s3_client={s3_client})")
simplier
[NEGATIVE] Delete non-empty bucket (...)
930176f544
to0d6b54a656