Hugo Brito 68f4cbcb5d Add validation for --with-prestage in sw-deploy-strategy
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>
2025-11-14 10:56:36 -03:00
2019-04-19 19:52:34 +00:00
2018-08-07 11:51:16 -04:00
2018-09-23 16:31:32 +08:00
2024-06-24 09:52:54 -03:00
Description
StarlingX Distributed Cloud Client
5.6 MiB
Languages
Python 99.9%
Makefile 0.1%