Raise exception when a strategy is created with no steps
It is possible for a user to create and apply a strategy with no
strategy steps. This commit raises an exception in such a scenario
to make it more intuitive and user friendly.
Additionally, this commit also fixes the stage numbering.
Test Plan:
1) Strategy raises exception when there are no steps
2) Strategy numbering starts with 1 for all type of strategies
Reviewed: https:/ /review. opendev. org/c/starlingx /distcloud/ +/816536 /opendev. org/starlingx/ distcloud/ commit/ 952ad5fc7b75df4 f51c7f603d3e3c6 bcd071af0e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 952ad5fc7b75df4 f51c7f603d3e3c6 bcd071af0e
Author: Jessica Castelino <email address hidden>
Date: Mon Nov 1 09:53:00 2021 -0400
Raise exception when a strategy is created with no steps
It is possible for a user to create and apply a strategy with no
strategy steps. This commit raises an exception in such a scenario
to make it more intuitive and user friendly.
Additionally, this commit also fixes the stage numbering.
Test Plan:
1) Strategy raises exception when there are no steps
2) Strategy numbering starts with 1 for all type of strategies
Change-Id: I2b9c0a757129aa 165512718cb93cc df31d1b69dc
Signed-off-by: Jessica Castelino <email address hidden>
Closes-Bug: 1949478