Skip to content

Commit

Permalink
fix up tests
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth committed Nov 15, 2023
1 parent ed574e6 commit 844a987
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/dependency_decisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@
- 1.0.1
- 1.0.3
- 1.0.4
- 1.0.5-rc0006
:when: 2023-24-10 11:43:10.781625468 Z
- - :approve
- Monai.Deploy.Messaging.RabbitMQ
Expand All @@ -772,6 +773,7 @@
- 1.0.1
- 1.0.3
- 1.0.4
- 1.0.5-rc0006
:when: 2023-24-10 11:43:20.975488411 Z
- - :approve
- Monai.Deploy.Security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2685,7 +2685,7 @@ public async Task ProcessPayload_WithExternalAppTask_Dispatches()

var result = await WorkflowExecuterService.ProcessPayload(workflowRequest, new Payload() { Id = Guid.NewGuid().ToString() });

_messageBrokerPublisherService.Verify(w => w.Publish($"{_configuration.Value.Messaging.Topics.ExportRequestPrefix}.{_configuration.Value.Messaging.DicomAgents.ScuAgentName}", It.IsAny<Message>()), Times.Exactly(1));
_messageBrokerPublisherService.Verify(w => w.Publish($"{_configuration.Value.Messaging.Topics.ExternalAppRequest}", It.IsAny<Message>()), Times.Exactly(1));

Assert.True(result);
Assert.NotNull(messageSent);
Expand Down Expand Up @@ -3213,7 +3213,7 @@ public async Task ProcessArtifactReceived_Calls_WorkflowInstanceRepository_Updat
.ReturnsAsync(workflowTemplate);

_storageService.Setup(s => s.VerifyObjectsExistAsync(It.IsAny<string>(), It.IsAny<List<string>>(), It.IsAny<CancellationToken>()))
.ReturnsAsync(new Dictionary<string, bool> { { $"{message.PayloadId}/{artifactPath}", true } });
.ReturnsAsync(new Dictionary<string, bool> { { $"{artifactPath}", true } });

//previously received artifacts
_artifactReceivedRepository.Setup(r => r.GetAllAsync(workflowInstance.WorkflowId, taskTemplate.Id))
Expand Down

0 comments on commit 844a987

Please sign in to comment.