Skip to content

Commit

Permalink
fix Nexus asset query issue. (project-chip#724)
Browse files Browse the repository at this point in the history
* fix Nexus asset query issue.

was not constructing continuationToken URL correctly.

* ignore temp artifact files.

* unit test for download-artifact

* update cached download-artifact.js

* ignore download-artifact test from zap unit tests.

* download-artifact: add unit test / delegate to Github if specified branch is not cached on Nexus

intended for internal jenkins PRs that specifies a non-cached ZAP branch
on Nexus
  • Loading branch information
Jing T authored and paulr34 committed Nov 29, 2022
1 parent 285e66f commit 8a28d0e
Show file tree
Hide file tree
Showing 6 changed files with 1,022 additions and 510 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ reports

# Downloaded artifacts from Nexus / Github / etc via download-artifact script
artifacts
**/zap-*.zip
**/zap-*zip.json
**/zap-*.zip.download
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ module.exports = {
transformIgnorePatterns: ['<rootDir>/node_modules/(?!quasar/lang)'],
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
testResultsProcessor: 'jest-sonar-reporter',
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/test/download-artifact.test.js',
],
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"download-artifact": "ts-node src-script/download-artifact.ts",
"pkg:download-artifact": "npx pkg src-script/download-artifact.js -t node16-linux-x64,node16-linux-arm64,node16-macos-x64,node16-win-x64 --output dist/download-artifact --compress GZip",
"compile:download-artifact": "tsc src-script/download-artifact.ts --esModuleInterop",
"test:download-artifact": "npx jest --collectCoverage=false ./test/download-artifact.test.js --testPathIgnorePatterns=[]",
"lic": "node src-script/license-check.js --production",
"lint": "eslint --ext .js,.vue src src-electron src-shared src-script test",
"lintfix": "eslint --fix --ext .js,.vue src src-electron src-shared src-script test",
Expand Down
Loading

0 comments on commit 8a28d0e

Please sign in to comment.