@@ -38,19 +38,19 @@ describe('Public API', () => {
38
38
39
39
describe ( 'Suite:' , ( ) => {
40
40
it ( 'Can not create Suite via public API without name and id' , async ( ) => {
41
- return api . assertNegativeresponse ( api . createOrUpdateSuite ( {
41
+ return api . assertNegativeResponse ( api . createOrUpdateSuite ( {
42
42
project_id : projectHelper . project . id
43
43
} ) , apiResponseErrors . missedIdOrName ) ;
44
44
} ) ;
45
45
46
46
it ( 'Can not create Suite via public API without project_id' , async ( ) => {
47
- return api . assertNegativeresponse ( api . createOrUpdateSuite ( {
47
+ return api . assertNegativeResponse ( api . createOrUpdateSuite ( {
48
48
name : suiteName
49
49
} ) , apiResponseErrors . missedProjectId ) ;
50
50
} ) ;
51
51
52
52
it ( 'Can not create Suite via public API for unaccessible project' , async ( ) => {
53
- return api . assertNegativeresponse ( api . createOrUpdateSuite ( {
53
+ return api . assertNegativeResponse ( api . createOrUpdateSuite ( {
54
54
name : suiteName ,
55
55
project_id : unaccessibleId
56
56
} ) , apiResponseErrors . anonymousNotAllowedToViewTestSuites ) ;
@@ -68,7 +68,7 @@ describe('Public API', () => {
68
68
} ) ;
69
69
70
70
it ( 'Can not update Suite via public API with unaccessible id' , async ( ) => {
71
- return api . assertNegativeresponse ( api . createOrUpdateSuite ( {
71
+ return api . assertNegativeResponse ( api . createOrUpdateSuite ( {
72
72
id : unaccessibleId ,
73
73
name : editedSuiteName ,
74
74
project_id : projectHelper . project . id
@@ -103,28 +103,28 @@ describe('Public API', () => {
103
103
104
104
describe ( 'Test:' , ( ) => {
105
105
it ( 'Can not create Test via public API without name and id' , async ( ) => {
106
- return api . assertNegativeresponse ( api . createOrUpdateTest ( {
106
+ return api . assertNegativeResponse ( api . createOrUpdateTest ( {
107
107
suites : [ { id : suite . id } ] ,
108
108
project_id : projectHelper . project . id
109
109
} ) , apiResponseErrors . missedIdOrName ) ;
110
110
} ) ;
111
111
112
112
it ( 'Can not create Test via public API without project_id' , async ( ) => {
113
- return api . assertNegativeresponse ( api . createOrUpdateTest ( {
113
+ return api . assertNegativeResponse ( api . createOrUpdateTest ( {
114
114
name : testName ,
115
115
suites : [ { id : suite . id } ]
116
116
} ) , apiResponseErrors . missedProjectId ) ;
117
117
} ) ;
118
118
119
119
it ( 'Can not create Test via public API without suites' , async ( ) => {
120
- return api . assertNegativeresponse ( api . createOrUpdateTest ( {
120
+ return api . assertNegativeResponse ( api . createOrUpdateTest ( {
121
121
name : testName ,
122
122
project_id : projectHelper . project . id
123
123
} ) , apiResponseErrors . missedSuites ) ;
124
124
} ) ;
125
125
126
126
it ( 'Can not create Test via public API for unaccessible project' , async ( ) => {
127
- return api . assertNegativeresponse ( api . createOrUpdateTest ( {
127
+ return api . assertNegativeResponse ( api . createOrUpdateTest ( {
128
128
name : testName ,
129
129
suites : [ { id : suite . id } ] ,
130
130
project_id : unaccessibleId
@@ -176,28 +176,28 @@ describe('Public API', () => {
176
176
177
177
describe ( 'Test Run:' , ( ) => {
178
178
it ( 'Can not create Test Run via public API without build_name' , async ( ) => {
179
- return api . assertNegativeresponse ( api . startTestrun ( {
179
+ return api . assertNegativeResponse ( api . startTestrun ( {
180
180
test_suite_id : suite . id ,
181
181
project_id : projectHelper . project . id
182
182
} ) , apiResponseErrors . missedBuildName ) ;
183
183
} ) ;
184
184
185
185
it ( 'Can not create Test Run via public API without test_suite_id' , async ( ) => {
186
- return api . assertNegativeresponse ( api . startTestrun ( {
186
+ return api . assertNegativeResponse ( api . startTestrun ( {
187
187
build_name : buildName ,
188
188
project_id : projectHelper . project . id
189
189
} ) , apiResponseErrors . missedSuiteId ) ;
190
190
} ) ;
191
191
192
192
it ( 'Can not create Test Run via public API without project_id' , async ( ) => {
193
- return api . assertNegativeresponse ( api . startTestrun ( {
193
+ return api . assertNegativeResponse ( api . startTestrun ( {
194
194
build_name : buildName ,
195
195
test_suite_id : suite . id
196
196
} ) , apiResponseErrors . missedProjectId ) ;
197
197
} ) ;
198
198
199
199
it ( 'Can not create Test Run via public API for unaccessible project' , async ( ) => {
200
- return api . assertNegativeresponse ( api . startTestrun ( {
200
+ return api . assertNegativeResponse ( api . startTestrun ( {
201
201
build_name : buildName ,
202
202
test_suite_id : suite . id ,
203
203
project_id : unaccessibleId
@@ -221,22 +221,22 @@ describe('Public API', () => {
221
221
222
222
describe ( 'Test Result:' , ( ) => {
223
223
it ( 'Can not start Test Result via public API without test_id' , async ( ) => {
224
- return api . assertNegativeresponse ( api . testResultStart ( undefined , testrun . id , projectHelper . project . id ) ,
224
+ return api . assertNegativeResponse ( api . testResultStart ( undefined , testrun . id , projectHelper . project . id ) ,
225
225
apiResponseErrors . missedTestId ) ;
226
226
} ) ;
227
227
228
228
it ( 'Can not start Test Result via public API without test_run_id' , async ( ) => {
229
- return api . assertNegativeresponse ( api . testResultStart ( test . id , undefined , projectHelper . project . id ) ,
229
+ return api . assertNegativeResponse ( api . testResultStart ( test . id , undefined , projectHelper . project . id ) ,
230
230
apiResponseErrors . missedTestRunId ) ;
231
231
} ) ;
232
232
233
233
it ( 'Can not start Test Result via public API without project_id' , async ( ) => {
234
- return api . assertNegativeresponse ( api . testResultStart ( test . id , testrun . id , undefined ) ,
234
+ return api . assertNegativeResponse ( api . testResultStart ( test . id , testrun . id , undefined ) ,
235
235
apiResponseErrors . missedProjectId ) ;
236
236
} ) ;
237
237
238
238
it ( 'Can not start Test Result via public API for unaccessible project' , async ( ) => {
239
- return api . assertNegativeresponse ( api . testResultStart ( test . id , testrun . id , unaccessibleId ) ,
239
+ return api . assertNegativeResponse ( api . testResultStart ( test . id , testrun . id , unaccessibleId ) ,
240
240
apiResponseErrors . anonymousNotAllowedToViewTestResults ) ;
241
241
} ) ;
242
242
@@ -251,26 +251,26 @@ describe('Public API', () => {
251
251
} ) ;
252
252
253
253
it ( 'Can not finish Test Result via public API without id' , async ( ) => {
254
- return api . assertNegativeresponse ( api . testResultFinish ( {
254
+ return api . assertNegativeResponse ( api . testResultFinish ( {
255
255
project_id : projectHelper . project . id
256
256
} ) , apiResponseErrors . missedId ) ;
257
257
} ) ;
258
258
259
259
it ( 'Can not finish Test Result via public API without project_id' , async ( ) => {
260
- return api . assertNegativeresponse ( api . testResultFinish ( {
260
+ return api . assertNegativeResponse ( api . testResultFinish ( {
261
261
id : testResult . id
262
262
} ) , apiResponseErrors . missedProjectId ) ;
263
263
} ) ;
264
264
265
265
it ( 'Can not finish Test Result via public API without final_result_id' , async ( ) => {
266
- return api . assertNegativeresponse ( api . testResultFinish ( {
266
+ return api . assertNegativeResponse ( api . testResultFinish ( {
267
267
id : testResult . id ,
268
268
project_id : projectHelper . project . id
269
269
} ) , apiResponseErrors . missedFinalResultId ) ;
270
270
} ) ;
271
271
272
272
it ( 'Can not finish Test Result via public API for unaccessible project' , async ( ) => {
273
- return api . assertNegativeresponse ( api . testResultFinish ( {
273
+ return api . assertNegativeResponse ( api . testResultFinish ( {
274
274
id : testResult . id ,
275
275
final_result_id : 2 ,
276
276
project_id : unaccessibleId
@@ -293,17 +293,17 @@ describe('Public API', () => {
293
293
} ) ;
294
294
295
295
it ( 'Can not finish Test Run via public API without id' , async ( ) => {
296
- return api . assertNegativeresponse ( api . finishTestRun ( projectHelper . project . id , undefined ) ,
296
+ return api . assertNegativeResponse ( api . finishTestRun ( projectHelper . project . id , undefined ) ,
297
297
apiResponseErrors . missedId ) ;
298
298
} ) ;
299
299
300
300
it ( 'Can not finish Test Run via public API without project_id' , async ( ) => {
301
- return api . assertNegativeresponse ( api . finishTestRun ( undefined , testrun . id ) ,
301
+ return api . assertNegativeResponse ( api . finishTestRun ( undefined , testrun . id ) ,
302
302
apiResponseErrors . missedProjectId ) ;
303
303
} ) ;
304
304
305
305
it ( 'Can not finish Test Run via public API for unaccessible project' , async ( ) => {
306
- return api . assertNegativeresponse ( api . finishTestRun ( unaccessibleId , testrun . id ) ,
306
+ return api . assertNegativeResponse ( api . finishTestRun ( unaccessibleId , testrun . id ) ,
307
307
apiResponseErrors . anonymousNotAllowedToCreateTestRun ) ;
308
308
} ) ;
309
309
0 commit comments