From 23574e2cdc38d5e95fcff52d28125c7a03e8d229 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 23 Dec 2021 11:37:52 +0300 Subject: [PATCH 1/7] Client version update --- CHANGELOG.md | 2 ++ README.md | 2 +- README_TEMPLATE.md | 2 +- build.gradle | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index adfdb54..4a081a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +### Changed +- Client version updated on [5.1.0](https://github.com/reportportal/client-java/releases/tag/5.1.0) ## [5.1.1] ### Fixed diff --git a/README.md b/README.md index 8f76e2b..d091ff8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > ReportPortal team only and is not supposed for sharing with 3rd parties. [![Maven Central](https://img.shields.io/maven-central/v/com.epam.reportportal/agent-java-jbehave.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.epam.reportportal%22%20AND%20a:%22agent-java-jbehave%22) -![CI Build](https://github.com/reportportal/agent-java-jbehave/workflows/CI%20Build/badge.svg?branch=develop) +[![CI Build](https://github.com/reportportal/agent-java-jbehave/actions/workflows/ci.yml/badge.svg)](https://github.com/reportportal/agent-java-jbehave/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/reportportal/agent-java-jbehave/branch/develop/graph/badge.svg?token=BCglguEcoR)](https://codecov.io/gh/reportportal/agent-java-jbehave) [![Join Slack chat!](https://reportportal-slack-auto.herokuapp.com/badge.svg)](https://reportportal-slack-auto.herokuapp.com) [![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal) diff --git a/README_TEMPLATE.md b/README_TEMPLATE.md index d9e9bc9..fd9914f 100644 --- a/README_TEMPLATE.md +++ b/README_TEMPLATE.md @@ -5,7 +5,7 @@ > ReportPortal team only and is not supposed for sharing with 3rd parties. [![Maven Central](https://img.shields.io/maven-central/v/com.epam.reportportal/agent-java-jbehave.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.epam.reportportal%22%20AND%20a:%22agent-java-jbehave%22) -![CI Build](https://github.com/reportportal/agent-java-jbehave/workflows/CI%20Build/badge.svg?branch=develop) +[![CI Build](https://github.com/reportportal/agent-java-jbehave/actions/workflows/ci.yml/badge.svg)](https://github.com/reportportal/agent-java-jbehave/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/reportportal/agent-java-jbehave/branch/develop/graph/badge.svg?token=BCglguEcoR)](https://codecov.io/gh/reportportal/agent-java-jbehave) [![Join Slack chat!](https://reportportal-slack-auto.herokuapp.com/badge.svg)](https://reportportal-slack-auto.herokuapp.com) [![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal) diff --git a/build.gradle b/build.gradle index bfec4c0..332635d 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ repositories { } dependencies { - api 'com.epam.reportportal:client-java:5.1.0' + api 'com.epam.reportportal:client-java:5.1.1' api 'com.epam.reportportal:commons-model:5.0.0' api ("org.jbehave:jbehave-core:${project.jbehave_version}") { exclude group: 'org.hamcrest' From a7c7b10fe2e57906da742dac2957161dc68ad403 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 30 Dec 2021 10:00:14 +0300 Subject: [PATCH 2/7] Client version update, test util version update --- CHANGELOG.md | 2 +- build.gradle | 4 +-- .../epam/reportportal/jbehave/BaseTest.java | 25 +++++++++---------- .../jbehave/CallbackReportingTest.java | 3 ++- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a081a1..4da04c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [Unreleased] ### Changed -- Client version updated on [5.1.0](https://github.com/reportportal/client-java/releases/tag/5.1.0) +- Client version updated on [5.1.3](https://github.com/reportportal/client-java/releases/tag/5.1.3) ## [5.1.1] ### Fixed diff --git a/build.gradle b/build.gradle index 332635d..e029934 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ repositories { } dependencies { - api 'com.epam.reportportal:client-java:5.1.1' + api 'com.epam.reportportal:client-java:5.1.3' api 'com.epam.reportportal:commons-model:5.0.0' api ("org.jbehave:jbehave-core:${project.jbehave_version}") { exclude group: 'org.hamcrest' @@ -48,7 +48,7 @@ dependencies { api 'com.google.code.findbugs:jsr305:3.0.2' implementation 'org.slf4j:slf4j-api:1.7.25' - testImplementation 'com.github.reportportal:agent-java-test-utils:ddcf50ee20' + testImplementation 'com.github.reportportal:agent-java-test-utils:236a68c' testImplementation 'org.aspectj:aspectjweaver:1.9.2' testImplementation 'org.hamcrest:hamcrest-core:2.2' testImplementation "org.mockito:mockito-core:${project.mockito_version}" diff --git a/src/test/java/com/epam/reportportal/jbehave/BaseTest.java b/src/test/java/com/epam/reportportal/jbehave/BaseTest.java index 58959a2..82e4a00 100644 --- a/src/test/java/com/epam/reportportal/jbehave/BaseTest.java +++ b/src/test/java/com/epam/reportportal/jbehave/BaseTest.java @@ -58,7 +58,6 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import static com.epam.reportportal.util.test.CommonUtils.createMaybe; import static com.epam.reportportal.util.test.CommonUtils.generateUniqueId; import static java.util.Optional.ofNullable; import static org.hamcrest.MatcherAssert.assertThat; @@ -139,8 +138,8 @@ public static void mockLaunch(@Nonnull final ReportPortalClient client, @Nullabl public static > void mockLaunch(@Nonnull final ReportPortalClient client, @Nullable final String launchUuid, @Nullable final String storyUuid, @Nonnull final Collection> testSteps) { String launch = ofNullable(launchUuid).orElse(CommonUtils.namedId("launch_")); - when(client.startLaunch(any())).thenReturn(createMaybe(new StartLaunchRS(launch, 1L))); - when(client.finishLaunch(eq(launch), any())).thenReturn(createMaybe(new OperationCompletionRS())); + when(client.startLaunch(any())).thenReturn(Maybe.just(new StartLaunchRS(launch, 1L))); + when(client.finishLaunch(eq(launch), any())).thenReturn(Maybe.just(new OperationCompletionRS())); mockStory(client, storyUuid, testSteps); } @@ -158,16 +157,16 @@ public static > void mockStories(@Nonnull final Rep return; } String firstStory = stories.get(0).getKey(); - Maybe first = createMaybe(new ItemCreatedRS(firstStory, firstStory)); + Maybe first = Maybe.just(new ItemCreatedRS(firstStory, firstStory)); Maybe[] other = (Maybe[]) stories.subList(1, stories.size()) .stream() .map(Pair::getKey) - .map(s -> createMaybe(new ItemCreatedRS(s, s))) + .map(s -> Maybe.just(new ItemCreatedRS(s, s))) .toArray(Maybe[]::new); when(client.startTestItem(any())).thenReturn(first, other); stories.forEach(i -> { - Maybe rootFinishMaybe = createMaybe(new OperationCompletionRS()); + Maybe rootFinishMaybe = Maybe.just(new OperationCompletionRS()); when(client.finishTestItem(same(i.getKey()), any())).thenReturn(rootFinishMaybe); mockScenario(client, i.getKey(), i.getValue()); }); @@ -178,7 +177,7 @@ public static > void mockScenario(@Nonnull final Re @Nonnull final String storyUuid, @Nonnull final Collection> testSteps) { List> testResponses = testSteps.stream() .map(Pair::getKey) - .map(uuid -> createMaybe(new ItemCreatedRS(uuid, uuid))) + .map(uuid -> Maybe.just(new ItemCreatedRS(uuid, uuid))) .collect(Collectors.toList()); Maybe first = testResponses.get(0); @@ -189,23 +188,23 @@ public static > void mockScenario(@Nonnull final Re String testClassUuid = test.getKey(); List> stepResponses = test.getValue() .stream() - .map(uuid -> createMaybe(new ItemCreatedRS(uuid, uuid))) + .map(uuid -> Maybe.just(new ItemCreatedRS(uuid, uuid))) .collect(Collectors.toList()); - when(client.finishTestItem(same(testClassUuid), any())).thenReturn(createMaybe(new OperationCompletionRS())); + when(client.finishTestItem(same(testClassUuid), any())).thenReturn(Maybe.just(new OperationCompletionRS())); if (!stepResponses.isEmpty()) { Maybe myFirst = stepResponses.get(0); Maybe[] myOther = stepResponses.subList(1, stepResponses.size()).toArray(new Maybe[0]); when(client.startTestItem(same(testClassUuid), any())).thenReturn(myFirst, myOther); new HashSet<>(test.getValue()).forEach(testMethodUuid -> when(client.finishTestItem(same(testMethodUuid), any() - )).thenReturn(createMaybe(new OperationCompletionRS()))); + )).thenReturn(Maybe.just(new OperationCompletionRS()))); } }); } @SuppressWarnings("unchecked") public static void mockBatchLogging(final ReportPortalClient client) { - when(client.log(any(List.class))).thenReturn(createMaybe(new BatchSaveOperatingRS())); + when(client.log(any(List.class))).thenReturn(Maybe.just(new BatchSaveOperatingRS())); } public static void mockNestedSteps(final ReportPortalClient client, final Pair parentNestedPair) { @@ -218,7 +217,7 @@ public static void mockNestedSteps(final ReportPortalClient client, final List

{ List> responses = v.stream() - .map(uuid -> createMaybe(new ItemCreatedRS(uuid, uuid))) + .map(uuid -> Maybe.just(new ItemCreatedRS(uuid, uuid))) .collect(Collectors.toList()); Maybe first = responses.get(0); @@ -227,7 +226,7 @@ public static void mockNestedSteps(final ReportPortalClient client, final List

when(client.finishTestItem(same(p.getValue()), any() - )).thenAnswer((Answer>) invocation -> createMaybe(new OperationCompletionRS()))); + )).thenAnswer((Answer>) invocation -> Maybe.just(new OperationCompletionRS()))); } public static ListenerParameters standardParameters() { diff --git a/src/test/java/com/epam/reportportal/jbehave/CallbackReportingTest.java b/src/test/java/com/epam/reportportal/jbehave/CallbackReportingTest.java index 6555232..8c30cef 100644 --- a/src/test/java/com/epam/reportportal/jbehave/CallbackReportingTest.java +++ b/src/test/java/com/epam/reportportal/jbehave/CallbackReportingTest.java @@ -24,6 +24,7 @@ import com.epam.ta.reportportal.ws.model.EntryCreatedAsyncRS; import com.epam.ta.reportportal.ws.model.FinishTestItemRQ; import com.epam.ta.reportportal.ws.model.log.SaveLogRQ; +import io.reactivex.Maybe; import org.apache.commons.lang3.tuple.Pair; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -62,7 +63,7 @@ public class CallbackReportingTest extends BaseTest { @BeforeEach public void setup() { mockLaunch(client, launchId, suiteId, tests); - when(client.log(any(SaveLogRQ.class))).thenReturn(CommonUtils.createMaybe(new EntryCreatedAsyncRS())); + when(client.log(any(SaveLogRQ.class))).thenReturn(Maybe.just(new EntryCreatedAsyncRS())); } private static final String STORY_PATH = "stories/CallbackReportingScenario.story"; From 11c5a9bba6aaec8d702c0de22e641a5e77550b26 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 6 Jan 2022 16:51:03 +0300 Subject: [PATCH 3/7] Client version update, Slf4j version update --- CHANGELOG.md | 3 ++- build.gradle | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da04c5..d320878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## [Unreleased] ### Changed -- Client version updated on [5.1.3](https://github.com/reportportal/client-java/releases/tag/5.1.3) +- Client version updated on [5.1.4](https://github.com/reportportal/client-java/releases/tag/5.1.4) +- Slf4j version updated on 1.7.32 to support newer versions of Logback with security fixes ## [5.1.1] ### Fixed diff --git a/build.gradle b/build.gradle index e029934..62f1c24 100644 --- a/build.gradle +++ b/build.gradle @@ -39,22 +39,22 @@ repositories { } dependencies { - api 'com.epam.reportportal:client-java:5.1.3' + api 'com.epam.reportportal:client-java:5.1.4' api 'com.epam.reportportal:commons-model:5.0.0' api ("org.jbehave:jbehave-core:${project.jbehave_version}") { exclude group: 'org.hamcrest' exclude group: 'junit' } api 'com.google.code.findbugs:jsr305:3.0.2' - implementation 'org.slf4j:slf4j-api:1.7.25' + implementation 'org.slf4j:slf4j-api:1.7.32' testImplementation 'com.github.reportportal:agent-java-test-utils:236a68c' testImplementation 'org.aspectj:aspectjweaver:1.9.2' testImplementation 'org.hamcrest:hamcrest-core:2.2' testImplementation "org.mockito:mockito-core:${project.mockito_version}" testImplementation "org.mockito:mockito-junit-jupiter:${project.mockito_version}" - testImplementation 'ch.qos.logback:logback-classic:1.2.3' - testImplementation 'com.epam.reportportal:logger-java-logback:5.0.3' + testImplementation 'ch.qos.logback:logback-classic:1.2.10' + testImplementation 'com.epam.reportportal:logger-java-logback:5.1.0' testImplementation ("org.junit.platform:junit-platform-runner:${project.junit5_launcher_version}") { exclude module: 'junit' } From 2cff2c48602aa99f41eadd9466d1db6839976e71 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Mon, 10 Jan 2022 16:59:58 +0300 Subject: [PATCH 4/7] Logger version update --- README.md | 4 ++-- README_TEMPLATE.md | 4 ++-- build.gradle | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d091ff8..712be7e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ dependencies { testCompile "org.jbehave:jbehave-core:${jbehaveVersion}" testCompile "org.jbehave:jbehave-navigator:${jbehaveVersion}" testCompile 'com.epam.reportportal:agent-java-jbehave:5.1.1' - testCompile 'com.epam.reportportal:logger-java-logback:5.1.0' + testCompile 'com.epam.reportportal:logger-java-logback:5.1.1' } test { @@ -246,7 +246,7 @@ To route your logs into Report Portal you should add `logger-java-logback` depen ```groovy // inside 'dependencies' section -testCompile 'com.epam.reportportal:logger-java-logback:5.1.0' +testCompile 'com.epam.reportportal:logger-java-logback:5.1.1' ``` It should be already here if you used gradle configuration listed above. diff --git a/README_TEMPLATE.md b/README_TEMPLATE.md index fd9914f..147854d 100644 --- a/README_TEMPLATE.md +++ b/README_TEMPLATE.md @@ -154,7 +154,7 @@ dependencies { testCompile "org.jbehave:jbehave-core:${jbehaveVersion}" testCompile "org.jbehave:jbehave-navigator:${jbehaveVersion}" testCompile 'com.epam.reportportal:agent-java-jbehave:$LATEST_VERSION' - testCompile 'com.epam.reportportal:logger-java-logback:5.1.0' + testCompile 'com.epam.reportportal:logger-java-logback:5.1.1' } test { @@ -246,7 +246,7 @@ To route your logs into Report Portal you should add `logger-java-logback` depen ```groovy // inside 'dependencies' section -testCompile 'com.epam.reportportal:logger-java-logback:5.1.0' +testCompile 'com.epam.reportportal:logger-java-logback:5.1.1' ``` It should be already here if you used gradle configuration listed above. diff --git a/build.gradle b/build.gradle index 62f1c24..5fdc4bb 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ dependencies { testImplementation "org.mockito:mockito-core:${project.mockito_version}" testImplementation "org.mockito:mockito-junit-jupiter:${project.mockito_version}" testImplementation 'ch.qos.logback:logback-classic:1.2.10' - testImplementation 'com.epam.reportportal:logger-java-logback:5.1.0' + testImplementation 'com.epam.reportportal:logger-java-logback:5.1.1' testImplementation ("org.junit.platform:junit-platform-runner:${project.junit5_launcher_version}") { exclude module: 'junit' } From 50724870a445a3ff62ae3533fc64f4bb6d7c29e6 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 7 Apr 2022 19:57:00 +0300 Subject: [PATCH 5/7] Client version update --- CHANGELOG.md | 4 ++-- build.gradle | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d320878..f8f3681 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ ## [Unreleased] ### Changed -- Client version updated on [5.1.4](https://github.com/reportportal/client-java/releases/tag/5.1.4) -- Slf4j version updated on 1.7.32 to support newer versions of Logback with security fixes +- Client version updated on [5.1.7](https://github.com/reportportal/client-java/releases/tag/5.1.7) +- Slf4j version updated on 1.7.36 to support newer versions of Logback with security fixes ## [5.1.1] ### Fixed diff --git a/build.gradle b/build.gradle index 5fdc4bb..05b0270 100644 --- a/build.gradle +++ b/build.gradle @@ -39,21 +39,21 @@ repositories { } dependencies { - api 'com.epam.reportportal:client-java:5.1.4' + api 'com.epam.reportportal:client-java:5.1.7' api 'com.epam.reportportal:commons-model:5.0.0' api ("org.jbehave:jbehave-core:${project.jbehave_version}") { exclude group: 'org.hamcrest' exclude group: 'junit' } api 'com.google.code.findbugs:jsr305:3.0.2' - implementation 'org.slf4j:slf4j-api:1.7.32' + implementation 'org.slf4j:slf4j-api:1.7.36' testImplementation 'com.github.reportportal:agent-java-test-utils:236a68c' testImplementation 'org.aspectj:aspectjweaver:1.9.2' testImplementation 'org.hamcrest:hamcrest-core:2.2' testImplementation "org.mockito:mockito-core:${project.mockito_version}" testImplementation "org.mockito:mockito-junit-jupiter:${project.mockito_version}" - testImplementation 'ch.qos.logback:logback-classic:1.2.10' + testImplementation 'ch.qos.logback:logback-classic:1.2.11' testImplementation 'com.epam.reportportal:logger-java-logback:5.1.1' testImplementation ("org.junit.platform:junit-platform-runner:${project.junit5_launcher_version}") { exclude module: 'junit' From a42040eca730c40381bde25a2697db2449816776 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Wed, 20 Apr 2022 18:31:45 +0300 Subject: [PATCH 6/7] Client version update --- CHANGELOG.md | 7 +++++-- build.gradle | 2 +- gradle.properties | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8f3681..4e63826 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,12 @@ # Changelog ## [Unreleased] +### Added +- Test Case ID templating, by @HardNorth ### Changed -- Client version updated on [5.1.7](https://github.com/reportportal/client-java/releases/tag/5.1.7) -- Slf4j version updated on 1.7.36 to support newer versions of Logback with security fixes +- Client version updated on [5.1.9](https://github.com/reportportal/client-java/releases/tag/5.1.9), by @HardNorth +- Slf4j version updated on 1.7.36, by @HardNorth +- Jbehave version was updated, by @HardNorth ## [5.1.1] ### Fixed diff --git a/build.gradle b/build.gradle index 05b0270..bbacacf 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ repositories { } dependencies { - api 'com.epam.reportportal:client-java:5.1.7' + api 'com.epam.reportportal:client-java:5.1.9' api 'com.epam.reportportal:commons-model:5.0.0' api ("org.jbehave:jbehave-core:${project.jbehave_version}") { exclude group: 'org.hamcrest' diff --git a/gradle.properties b/gradle.properties index f4997e0..2e69f7b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ # version=5.1.2-SNAPSHOT description=JBehave reporters for Report Portal -jbehave_version=4.8.1 +jbehave_version=4.8.3 junit5_version=5.6.3 junit5_launcher_version=1.6.3 mockito_version=3.3.3 From 76466cad740a8276305350384e6d7bc5e0366395 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Wed, 20 Apr 2022 18:32:17 +0300 Subject: [PATCH 7/7] Client version update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e63826..c8dd3c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ### Changed - Client version updated on [5.1.9](https://github.com/reportportal/client-java/releases/tag/5.1.9), by @HardNorth - Slf4j version updated on 1.7.36, by @HardNorth -- Jbehave version was updated, by @HardNorth +- Jbehave version was updated on version 4.8.3, by @HardNorth ## [5.1.1] ### Fixed