Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mharding-hpe committed Sep 17, 2024
1 parent 8990236 commit d85a1ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cray/tests/test_modules/test_bos.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,25 @@ def test_cray_bos_v2_components_base(cli_runner, rest_mock):
assert txt in result.output


def test_cray_bos_v2_components_update_basic(cli_runner, rest_mock):
""" Test cray bos v2 components updatemany"""
runner, cli, config = cli_runner
result = runner.invoke(
cli,
['bos', 'v2', 'components', 'update', '--retry-policy', '2', 'fakexname']
)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'] == 'PATCH'
assert data['url'] == bos_url(config, ver="v2", uri='/components/fakexname')
compare_dicts(
{
'retry_policy': 2
},
data['body']
)


def test_cray_bos_v2_components_update(cli_runner, rest_mock):
""" Test cray bos v2 components updatemany"""
runner, cli, config = cli_runner
Expand Down

0 comments on commit d85a1ed

Please sign in to comment.