Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Fix API tests for ci in PAI repo (#40)
Browse files Browse the repository at this point in the history
* skip test if parameter is undefined

* test

* fix

* add nullable to appid

* test

* update

* update swagger

* update

* update

* update

* undo changes for swagger

* update
  • Loading branch information
yiyione committed Jun 21, 2020
1 parent 9ecda2d commit 25a998d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion tests/api_tests/v2/api.v2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,16 @@ async function runOperation(
let parameter: any = operationResults[para.resultType!][para.resultIndex!];
if (para.resultPath) {
for (const item of para.resultPath) {
parameter = parameter[item];
if (parameter) {
parameter = parameter[item];
} else {
return;
}
}
}
if (!parameter) {
return;
}
parameters.push(parameter);
}
}
Expand Down

0 comments on commit 25a998d

Please sign in to comment.