Skip to content

Commit edd68f3

Browse files
Fixed error where test plan versions response did not send the associated test suite
1 parent 756cd5d commit edd68f3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Melmac/src/main/kotlin/domain/dtos/TestPlanVersionResponseDTO.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ data class TestPlanVersionResponseDTO(
1616
val thresholds: List<TestThresholdResponseDTO>,
1717
val metricParameters: List<TestMetricParameterResponseDTO>,
1818
val executionTypeParameters: List<TestExecutionTypeParameterResponseDTO>,
19+
val testSuiteVersionId: Int
1920
)
2021

2122

Melmac/src/main/kotlin/services/TestPlanService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ class TestPlanService(
309309
testPlanVersionTestPlanVersionId =
310310
parameter.testPlanVersionTestPlanVersionId
311311
)
312-
}
312+
},
313+
testSuiteVersionId = request.testSuiteVersionId
313314
)
314315
}
315316
}

Melmac/src/main/kotlin/services/TestSuiteService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ class TestSuiteService(
123123
executionTypeParameterExecutionTypeParameterId = parameter.executionTypeParameterExecutionTypeParameterId,
124124
testPlanVersionTestPlanVersionId = parameter.testPlanVersionTestPlanVersionId
125125
)
126-
}
126+
},
127+
testSuiteVersionId = latestVersion.testSuiteVersionId
127128
)
128129
}
129130
}

0 commit comments

Comments
 (0)