Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 7450609

Browse files
authored
Merge pull request #99 from reportportal/develop
Release
2 parents 7375465 + f37aaea commit 7450609

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
- name: Set up JDK 1.8
41-
uses: actions/setup-java@v3
41+
uses: actions/setup-java@v4
4242
with:
4343
distribution: 'temurin'
4444
java-version: '8'
@@ -47,4 +47,6 @@ jobs:
4747
run: ./gradlew build
4848

4949
- name: Codecov upload
50-
run: bash <(curl -s https://codecov.io/bash)
50+
uses: codecov/codecov-action@v4
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444

4545
- name: Generate versions
4646
uses: HardNorth/github-version-generate@v1
@@ -50,7 +50,7 @@ jobs:
5050
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }}
5151

5252
- name: Set up JDK 1.8
53-
uses: actions/setup-java@v3
53+
uses: actions/setup-java@v4
5454
with:
5555
distribution: 'temurin'
5656
java-version: '8'
@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: Checkout develop branch
110110
if: ${{ github.ref }} == 'master'
111-
uses: actions/checkout@v3
111+
uses: actions/checkout@v4
112112
with:
113113
ref: 'develop'
114114
fetch-depth: 0

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- Client version updated on [5.2.4](https://github.com/reportportal/client-java/releases/tag/5.2.4), by @HardNorth
6+
### Removed
7+
- `commons-model` dependency to rely on `clinet-java` exclusions in security fixes, by @HardNorth
48

59
## [5.2.0]
610
### Changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ repositories {
3737
}
3838

3939
dependencies {
40-
api 'com.epam.reportportal:client-java:5.2.1'
41-
api 'com.epam.reportportal:commons-model:5.0.0'
40+
api 'com.epam.reportportal:client-java:5.2.4'
4241
api 'com.google.code.findbugs:jsr305:3.0.2'
4342
api 'info.cukes:gherkin:2.12.2'
4443

src/test/java/com/epam/reportportal/cucumber/EmbeddingTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ public class EmbeddingTest {
5454
@CucumberOptions(features = "src/test/resources/features/embedding/ImageEmbeddingFeature.feature", glue = {
5555
"com.epam.reportportal.cucumber.integration.embed.image" }, plugin = { "pretty",
5656
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
57-
public static class ImageStepReporter extends AbstractTestNGCucumberTests {
57+
public static class ImageStepReporterTest extends AbstractTestNGCucumberTests {
5858

5959
}
6060

6161
@CucumberOptions(features = "src/test/resources/features/embedding/TextEmbeddingFeature.feature", glue = {
6262
"com.epam.reportportal.cucumber.integration.embed.text" }, plugin = { "pretty",
6363
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
64-
public static class TextStepReporter extends AbstractTestNGCucumberTests {
64+
public static class TextStepReporterTest extends AbstractTestNGCucumberTests {
6565

6666
}
6767

6868
@CucumberOptions(features = "src/test/resources/features/embedding/PdfEmbeddingFeature.feature", glue = {
6969
"com.epam.reportportal.cucumber.integration.embed.pdf" }, plugin = { "pretty",
7070
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
71-
public static class PdfStepReporter extends AbstractTestNGCucumberTests {
71+
public static class PdfStepReporterTest extends AbstractTestNGCucumberTests {
7272

7373
}
7474

7575
@CucumberOptions(features = "src/test/resources/features/embedding/ArchiveEmbeddingFeature.feature", glue = {
7676
"com.epam.reportportal.cucumber.integration.embed.zip" }, plugin = { "pretty",
7777
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
78-
public static class ZipStepReporter extends AbstractTestNGCucumberTests {
78+
public static class ZipStepReporterTest extends AbstractTestNGCucumberTests {
7979

8080
}
8181

@@ -118,7 +118,7 @@ public void setup() {
118118

119119
@Test
120120
public void verify_image_embedding() {
121-
TestUtils.runTests(ImageStepReporter.class);
121+
TestUtils.runTests(ImageStepReporterTest.class);
122122

123123
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
124124
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -132,7 +132,7 @@ public void verify_image_embedding() {
132132

133133
@Test
134134
public void verify_text_embedding() {
135-
TestUtils.runTests(TextStepReporter.class);
135+
TestUtils.runTests(TextStepReporterTest.class);
136136

137137
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
138138
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -145,8 +145,8 @@ public void verify_text_embedding() {
145145
}
146146

147147
@Test
148-
public void verify_pfd_embedding() {
149-
TestUtils.runTests(PdfStepReporter.class);
148+
public void verify_pdf_embedding() {
149+
TestUtils.runTests(PdfStepReporterTest.class);
150150

151151
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
152152
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -155,19 +155,19 @@ public void verify_pfd_embedding() {
155155
List<String> types = getTypes(logCaptor, logs);
156156

157157
assertThat(types, hasSize(3));
158-
assertThat(types, containsInAnyOrder("application/pdf", "image/png", "application/octet-stream"));
158+
assertThat(types, containsInAnyOrder("application/pdf", "image/png", "application/pdf"));
159159
}
160160

161161
@Test
162162
public void verify_archive_embedding() {
163-
TestUtils.runTests(ZipStepReporter.class);
163+
TestUtils.runTests(ZipStepReporterTest.class);
164164

165165
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
166166
verify(client, atLeastOnce()).log(logCaptor.capture());
167167
List<SaveLogRQ> logs = filterLogs(logCaptor, l -> Objects.nonNull(l.getFile()));
168168

169169
List<String> types = getTypes(logCaptor, logs);
170170
assertThat(types, hasSize(3));
171-
assertThat(types, containsInAnyOrder("application/zip", "image/png", "application/octet-stream"));
171+
assertThat(types, containsInAnyOrder("application/zip", "image/png", "application/zip"));
172172
}
173173
}

0 commit comments

Comments
 (0)