Publish target assign event (#1136)
* Throw the TargetAssignDistributionSetEvent even if there are actions in CANCELING state present. Filter the actions on the receiver side. In this case at the DMF. Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Fix deploymentManagementTest Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Add debug logs and fix tests to verify correct DMF message behaviour Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Extend test case for the DMF in case the cancel is confirmed by the device Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Remove unsued import Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Fix review findings by filtering the list of targets first before querying the database for distribution set and software module. Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * flip list verification logic Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io> * Refactor amqp tests Signed-off-by: Michael Herdt <Michael.Herdt@bosch.io>
This commit is contained in:
@@ -945,8 +945,8 @@ public class DeploymentManagementTest extends AbstractJpaIntegrationTest {
|
||||
@Expect(type = CancelTargetAssignmentEvent.class, count = 4 * 2),
|
||||
@Expect(type = DistributionSetCreatedEvent.class, count = 3),
|
||||
@Expect(type = SoftwareModuleCreatedEvent.class, count = 9),
|
||||
@Expect(type = TargetAssignDistributionSetEvent.class, count = 2) })
|
||||
public void mutipleDeployments() throws InterruptedException {
|
||||
@Expect(type = TargetAssignDistributionSetEvent.class, count = 3) })
|
||||
public void multipleDeployments() throws InterruptedException {
|
||||
final String undeployedTargetPrefix = "undep-T";
|
||||
final int noOfUndeployedTargets = 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user