Skip to content

Commit

Permalink
feature(chore):884 - added retry for submodelclient.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jul 3, 2024
1 parent c9c672f commit 703a8be
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,14 @@ void givenValidFile_whenPublishData_thenStatusShouldChangeToInPublishedToCX() th

// then
eventually(() -> {
AssetBase asset = assetAsBuiltRepository.getAssetById("urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f");
assertThat(asset.getPolicyId()).isEqualTo("default-policy");
assertThat(asset.getImportState()).isEqualTo(ImportState.PUBLISHED_TO_CORE_SERVICES);
dtrApiSupport.verifyDtrCreateShellCalledTimes(1);
try {
AssetBase asset = assetAsBuiltRepository.getAssetById("urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f");
assertThat(asset.getPolicyId()).isEqualTo("default-policy");
assertThat(asset.getImportState()).isEqualTo(ImportState.PUBLISHED_TO_CORE_SERVICES);
dtrApiSupport.verifyDtrCreateShellCalledTimes(1);
} catch (AssertionFailedError exception) {
return false;
}
return true;
});

Expand Down

0 comments on commit 703a8be

Please sign in to comment.