Introduced deleted flag in REST API (#665)
* — refactored distribution set update test, changed rollout test steps to check if deleted flag is set to false — added deleted json property for soft deletion of rollout, distribution set, distribution set type, software module, software module type, covered relevant get and put requests with tests Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com> * Changed deleted flag json property to primitive boolean type, tests refactoring Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com> * Deleted flag getters renaming Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch-si.com>
This commit is contained in:
committed by
Dominic Schabel
parent
607cf92a9e
commit
d9fc3c0e31
@@ -1028,4 +1028,22 @@ public class TestdataFactory {
|
||||
return createRolloutByVariables(prefix, prefix + " description", 10, "controllerId==" + prefix + "*",
|
||||
createDistributionSet(prefix), "50", "5");
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the soft deleted {@link Rollout} with a new
|
||||
* {@link DistributionSet} and {@link Target}s.
|
||||
*
|
||||
* @param prefix
|
||||
* for rollouts name, description,
|
||||
* {@link Target#getControllerId()} filter
|
||||
* @return created {@link Rollout}
|
||||
*/
|
||||
public Rollout createSoftDeletedRollout(final String prefix) {
|
||||
final Rollout newRollout = createRollout(prefix);
|
||||
rolloutManagement.start(newRollout.getId());
|
||||
rolloutManagement.handleRollouts();
|
||||
rolloutManagement.delete(newRollout.getId());
|
||||
rolloutManagement.handleRollouts();
|
||||
return newRollout;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user