Skip to content

Commit

Permalink
updated expected stderr messages
Browse files Browse the repository at this point in the history
  • Loading branch information
adal-chiriliuc-reef committed Apr 25, 2024
1 parent 3ffff9f commit e6d5a4c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/unit/test_console_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,19 +660,19 @@ def test_deprecated_buckets(self):

# Make a bucket with an illegal name
expected_stderr = (
'WARNING: create-bucket command is deprecated. Use bucket instead.\n'
'WARNING: `create-bucket` command is deprecated. Use `bucket create` instead.\n'
'ERROR: Bad request: illegal bucket name: bad/bucket/name\n'
)
self._run_command(['create-bucket', 'bad/bucket/name', 'allPublic'], '', expected_stderr, 1)

# Make two buckets
self._run_command(
['create-bucket', 'my-bucket', 'allPrivate'], 'bucket_0\n',
'WARNING: create-bucket command is deprecated. Use bucket instead.\n', 0
'WARNING: `create-bucket` command is deprecated. Use `bucket create` instead.\n', 0
)
self._run_command(
['create-bucket', 'your-bucket', 'allPrivate'], 'bucket_1\n',
'WARNING: create-bucket command is deprecated. Use bucket instead.\n', 0
'WARNING: `create-bucket` command is deprecated. Use `bucket create` instead.\n', 0
)

# Update one of them
Expand All @@ -693,7 +693,8 @@ def test_deprecated_buckets(self):

self._run_command(
['update-bucket', 'my-bucket', 'allPublic'],
expected_stderr='WARNING: update-bucket command is deprecated. Use bucket instead.\n',
expected_stderr=
'WARNING: `update-bucket` command is deprecated. Use `bucket update` instead.\n',
expected_json_in_stdout=expected_json
)

Expand All @@ -705,15 +706,15 @@ def test_deprecated_buckets(self):

self._run_command(
['list-buckets'], expected_stdout,
'WARNING: list-buckets command is deprecated. Use bucket instead.\n', 0
'WARNING: `list-buckets` command is deprecated. Use `bucket list` instead.\n', 0
)

# Delete one
expected_stdout = ''

self._run_command(
['delete-bucket', 'your-bucket'], expected_stdout,
'WARNING: delete-bucket command is deprecated. Use bucket instead.\n', 0
'WARNING: `delete-bucket` command is deprecated. Use `bucket delete` instead.\n', 0
)

def test_encrypted_buckets(self):
Expand Down

0 comments on commit e6d5a4c

Please sign in to comment.