This commit adds a validation to the DCManager CLI to ensure that
`--force` and `--sysadmin-password` can only be used together with
`--with-prestage` when creating a sw-deploy strategy.
Test Plan:
PASS: Run `dcmanager sw-deploy-strategy create --with-prestage
--force` and verify it succeeds.
PASS: Run `dcmanager sw-deploy-strategy create --with-prestage
--sysadmin-password <pwd>` and verify it succeeds.
PASS: Run `dcmanager sw-deploy-strategy create --force` without
`--with-prestage` and verify it fails with the expected
error message.
PASS: Run `dcmanager sw-deploy-strategy create --sysadmin-password
without `--with-prestage` and verify it fails with the expected
error message.
PASS: Run standard strategy creation without these options and confirm
normal behavior.
Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/966687
Story: 2011552
Task: 53098
Change-Id: I478e277a3f4b047a083f8326f9ba1de60351a4c1
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
Description
StarlingX Distributed Cloud Client
Languages
Python
99.9%
Makefile
0.1%