Files

75 lines
3.2 KiB
Gherkin
Raw Permalink Normal View History

@env-config
Feature: blobstore check and get via CLI
As an administrator
I want to verify blobstore connectivity
So that I can ensure my storage backend is working correctly
Scenario: administrator checks the blobstore
When the administrator checks the blobstore using the CLI
Then the command should be successful
And the CLI response should contain the following message:
"""
Upload: OK
Download and verify: OK
Delete: OK
Blobstore check successful.
"""
Scenario: administrator checks the blobstore with a valid blob size
When the administrator checks the blobstore with blob size "1KB" using the CLI
Then the command should be successful
And the CLI response should contain the following message:
"""
Upload: OK
Download and verify: OK
Delete: OK
Blobstore check successful.
"""
Scenario: administrator checks the blobstore with an invalid blob size
When the administrator checks the blobstore with blob size "abc" using the CLI
Then the command should be unsuccessful
And the command output should contain "invalid --blob-size"
Scenario: administrator tries to get a blob without providing required flags
When the administrator tries to get a blob from the blobstore using the CLI
Then the command should be unsuccessful
And the command output should contain "either --path or both --blob-id and --space-id must be set"
Scenario: administrator tries to get a non-existent blob from the blobstore
When the administrator tries to get a non-existent blob from the blobstore using the CLI
Then the command should be unsuccessful
And the command output should contain "download failed: could not read blob"
@skipOnOcis-S3NG-Storage
Scenario: administrator gets a blob from the blobstore using the --path flag
Given user "Alice" has been created with default attributes
And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
When the administrator gets a blob from the blobstore using the --path flag via the CLI
Then the command should be successful
And the command output should contain "Download: OK"
@skipOnOcis-S3NG-Storage
Scenario: administrator gets a blob from the blobstore by ID
Given user "Alice" has been created with default attributes
And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
When the administrator gets a blob from the blobstore by ID using the CLI
Then the command should be successful
And the command output should contain "Download: OK"
Scenario: administrator tries to get a blob with a malformed ocis blob path
When the administrator tries to get a blob from the blobstore with path "/spaces/b1/9ec764-/nope" using the CLI
Then the command should be unsuccessful
And the command output should contain "missing /blobs/ segment"
Scenario: administrator tries to get a blob with a malformed s3ng blob path
When the administrator tries to get a blob from the blobstore with path "notas3ngpath" using the CLI
Then the command should be unsuccessful
And the command output should contain "expected <spaceID>/<pathified_blobID>"