Skip to content

Commit

Permalink
test: Add missing description to bucket key
Browse files Browse the repository at this point in the history
We need to check that when a bucket key is created with a description,
the description is saved correctly to the DB.

Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Sep 2, 2024
1 parent 6c4953c commit cb010e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/suites/storage_buckets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ test_storage_buckets() {

# Test creating a bucket key with YAML bucket key config.
creds=$(lxc storage bucket key create "${poolName}" "${bucketPrefix}.foo" yaml-key << EOF
description: yaml-key-desc
role: read-only
EOF
)
Expand All @@ -96,6 +97,7 @@ EOF
lxc storage bucket key list "${poolName}" "${bucketPrefix}.foo" | grep -F "ro-key"
lxc storage bucket key show "${poolName}" "${bucketPrefix}.foo" admin-key
lxc storage bucket key show "${poolName}" "${bucketPrefix}.foo" ro-key
lxc storage bucket key show "${poolName}" "${bucketPrefix}.foo" yaml-key | grep "description: yaml-key-desc"

# Test listing buckets via S3.
s3cmdrun "${lxd_backend}" "${adAccessKey}" "${adSecretKey}" ls | grep -F "${bucketPrefix}.foo"
Expand Down

0 comments on commit cb010e8

Please sign in to comment.