Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The repository contains new versions of adaptors for JVM-based test frameworks.
| 5.5 | 2.8.1-TMS-5.5 | 2.8.1-TMS-5.5 | 2.8.1-TMS-5.5 | 2.8.1-TMS-5.5 |
| 5.6 | 2.9.1-TMS-5.6 | 2.9.1-TMS-5.6 | 2.9.1-TMS-5.6 | 2.9.1-TMS-5.6 |
| 5.7 | 3.0.0-TMS-5.7 | 3.0.0-TMS-5.7 | 3.0.0-TMS-5.7 | 3.0.0-TMS-5.7 |
| 5.8 | 3.2.0-TMS-5.8 | 3.2.0-TMS-5.8 | 3.2.0-TMS-5.8 | 3.2.0-TMS-5.8 |
| Cloud | 3.0.0 + | 3.0.0 + | 3.0.0 + | 3.0.0 + |

1. For current versions, see the releases tab.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=3.1.2
version=3.2.0-TMS-5.8

org.gradle.daemon=true
org.gradle.parallel=true
Expand Down
2 changes: 1 addition & 1 deletion testit-java-commons/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
java
}

var apiClientVersion = "2.4.4"
var apiClientVersion = "2.5.1-TMS-5.8"
val slf4jVersion = "1.7.36"
val jacksonVersion = "2.17.1"
val aspectjrtVersion = "1.9.22"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static TestResultUpdateV2Request testResultToTestResultUpdateModel(TestRe
model.setDuration(result.getDurationInMs());
// здесь корректное использование code из ответа с сервера
model.setStatusCode(result.getStatus().getCode());
model.setLinks(result.getLinks());
model.setLinks(convertCreateLinkApiModels(result.getLinks()));
model.setStepResults(result.getStepResults());
model.setFailureClassIds(result.getFailureClassIds());
model.setComment(result.getComment());
Expand Down Expand Up @@ -241,6 +241,22 @@ private static List<LinkCreateApiModel> convertCreateLinks(List<LinkItem> links)
).collect(Collectors.toList());
}

private static List<CreateLinkApiModel> convertCreateLinkApiModels(List<LinkApiResult> links) {
return links.stream().map(
link -> {
CreateLinkApiModel model = new CreateLinkApiModel();

model.setTitle(link.getTitle());
model.setDescription(link.getDescription());
model.setUrl(link.getUrl());
model.setType(LinkType.fromValue(link.getType() != null ? link.getType().getValue() : LinkType.RELATED.getValue()));
model.setHasInfo(false);

return model;
}
).collect(Collectors.toList());
}

public static List<LinkUpdateApiModel> convertPutLinks(List<LinkItem> links) {
return links.stream().map(
link -> {
Expand Down
Loading