File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public TestDto createOrUpdate(TestDto test) throws AqualityException {
55
55
if (existingTests .size () > 0 ) {
56
56
TestDto existingTest = existingTests .get (0 );
57
57
if (existingTest .getSuites () != null ) {
58
- TestSuiteDto testSuite = existingTest .getSuites ().stream ().filter (suite -> suite .getId ().equals (test .getTest_suite_id ())).findFirst ().orElse (null );
58
+ TestSuiteDto testSuite = existingTest .getSuites ().stream ().filter (suite -> suite .getId ().equals (test .getSuites (). get ( 0 ). getId ())).findFirst ().orElse (null );
59
59
if (testSuite != null ) {
60
60
existingTest .getSuites ().add (test .getSuites ().get (0 ));
61
61
}
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ private void validatePost(TestDto test) throws AqualityParametersException {
41
41
throw new AqualityParametersException ("You should specify 'id' or/and 'name' suite parameters!" );
42
42
}
43
43
44
- if (test .getTest_suite_id () == null ) {
45
- throw new AqualityParametersException ("You should specify 'test_suite_id'" );
46
- }
47
-
48
44
if (test .getSuites () == null ) {
49
45
throw new AqualityParametersException ("You should specify 'suites' array with single suite like `[{id: test_suite_id}]`" );
50
46
}
Original file line number Diff line number Diff line change @@ -123,9 +123,6 @@ paths:
123
123
project_id :
124
124
type : integer
125
125
example : 1
126
- test_suite_id :
127
- type : integer
128
- example : 12
129
126
suites :
130
127
type : array
131
128
items :
@@ -140,7 +137,7 @@ paths:
140
137
schema :
141
138
$ref : ' #/definitions/Test'
142
139
400 :
143
- description : ' You have missed one of required parameters you should specify `project_id` AND (`name` AND/OR `id`) AND `test_suite_id` AND ` suites`'
140
+ description : ' You have missed one of required parameters you should specify `project_id` AND (`name` AND/OR `id`) AND `suites`'
144
141
schema :
145
142
$ref : ' #/definitions/Error'
146
143
401 :
You can’t perform that action at this time.
0 commit comments