Skip to content

Commit

Permalink
fix(sdk): fix the wrong test case assertion (#7)
Browse files Browse the repository at this point in the history
* Fix the wrong test case verify

* Fix the test case assertion
  • Loading branch information
DaveXiong authored Oct 15, 2024
1 parent 692edb0 commit 0e246d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void givenValidStageDeployment_whenDeployToProduction_thenOK() {
JsonToolkit.fromJson(
bodyStr, new TypeReference<HttpResponse<Paging<ApiMapperDeploymentDTO>>>() {});
List<ApiMapperDeploymentDTO> list = mapperPages.getData().getData();
Assertions.assertEquals(2, list.size());
Assertions.assertTrue(list.size() >= 2);
ApiMapperDeploymentDTO item = list.get(1);
Optional<UnifiedAssetEntity> tagAssetOpt =
unifiedAssetRepository.findById(UUID.fromString(item.getTagId()));
Expand Down Expand Up @@ -539,7 +539,7 @@ void givenLowerVersionStageDeployment_whenDeployToProduction_thenFailed() {
JsonToolkit.fromJson(
bodyStr, new TypeReference<HttpResponse<Paging<ApiMapperDeploymentDTO>>>() {});
List<ApiMapperDeploymentDTO> list = mapperPages.getData().getData();
Assertions.assertEquals(3, list.size());
Assertions.assertTrue(list.size() >= 3);
ApiMapperDeploymentDTO item = list.get(0);
DeployToProductionRequest deployToProductionRequest = getDeployToProductionRequest(item);
String deployToProductionPath =
Expand Down

0 comments on commit 0e246d6

Please sign in to comment.