Skip to content

Commit a1ed0d0

Browse files
committed
Add distribution to java test id
1 parent 0a5277e commit a1ed0d0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
4141
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
4242
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
43+
OPERATING_SYSTEM: ${{ matrix.os }}
44+
JAVA_VERSION: ${{ matrix.java-version }}
45+
DISTRIBUTION: ${{ matrix.distribution }}
4346
run: mvn -B package --file pom.xml
4447

4548
- name: Notify Slack of Failures

src/test/java/org/openapitools/client/api/RecordingsApiTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public void tearDownAfterClass() throws Exception {
8383
Cleanup(this, callId);
8484
}
8585

86-
static final String constructMantecaJsonBody(String os, String language) {
87-
return "{\"os\": \"" + os + "\", \"language\":\"JAVA" + JAVA_VERSION + "\", \"type\":\"CALL\"}";
86+
static final String constructMantecaJsonBody() {
87+
return "{\"os\": \"" + OPERATING_SYSTEM + "\", \"language\":\"JAVA" + JAVA_VERSION + "_" + DISTRIBUTION
88+
+ "\", \"type\":\"CALL\"}";
8889
}
8990

9091
public MantecaStatusResponse getTestStatus(String mantecaTestId) throws Exception {
@@ -119,7 +120,7 @@ public void testCallRecordingAndTranscription() throws Exception {
119120
Basic.setUsername(BW_USERNAME);
120121
Basic.setPassword(BW_PASSWORD);
121122

122-
String mantecaJsonBody = constructMantecaJsonBody(OPERATING_SYSTEM, JAVA_VERSION);
123+
String mantecaJsonBody = constructMantecaJsonBody();
123124
RequestBody mantecaRequestBody = RequestBody.create(mantecaJsonBody, jsonMediaType);
124125

125126
try {

src/test/java/org/openapitools/client/utils/TestingEnvironmentVariables.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public final class TestingEnvironmentVariables {
2323
public static final String MANTECA_APPLICATION_ID = System.getenv("MANTECA_APPLICATION_ID");
2424
public static final String JAVA_VERSION = System.getenv("JAVA_VERSION");
2525
public static final String OPERATING_SYSTEM = System.getenv("OPERATING_SYSTEM");
26+
public static final String DISTRIBUTION = System.getenv("DISTRIBUTION");
2627
public static final String RUNNER_OS = System.getenv("RUNNER_OS");
2728

2829
}

0 commit comments

Comments
 (0)