Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve tests; npm and gulp tasks #30

Merged
merged 10 commits into from
Feb 24, 2022
Merged

Conversation

line-o
Copy link
Member

@line-o line-o commented Oct 5, 2021

  • drop .existdb.json and put all necessary package metadata in a property app in package.json

npm packages are implicitly allowed to add their custom properties package.json but have to take care themselves not to clash with names used by npm. I have use app for other projects.

  • adopt readOptionsFromEnv to allow all npm and gulp scripts to target different existdb instances

refs #16

  • enable the custom api with middleware and token authentication by default
  • missing tests for middleware, x-constraints and custom authentication
  • allow tests on localhost to connect without a proper certificate
  • create XAR-packages in dist folder
  • prepend calls in npm scripts with dotenv where applicable. Read
    .env-files to allow setting different connection to the DB instances.
  • add npm task "develop" (running gulp default task)
  • rename npm script test:build to test:install
  • add dependency dotenv-cli
  • update dependencies @existdb/gulp-exist and @existdb/gulp-replace-tmpl

@line-o line-o force-pushed the improve-build branch 2 times, most recently from 00763a5 to 1cc0558 Compare October 5, 2021 16:22
@line-o line-o changed the title chore(build): improve npm, gulp tasks allow testing over https on localhost, improve npm, gulp tasks Oct 5, 2021
@line-o line-o requested a review from wolfgangmm October 5, 2021 16:44
@line-o line-o changed the title allow testing over https on localhost, improve npm, gulp tasks improve tests; npm and gulp tasks Oct 6, 2021
@line-o
Copy link
Member Author

line-o commented Feb 11, 2022

This PR needs to be split into two because installation of the crypto-lib, which exist-jwt depends on seems to fail on docker at the moment.

@joewiz
Copy link
Member

joewiz commented Feb 13, 2022

@line-o These sound like great enhancements - and I also appreciated the description of them that you added to eXist-db/exist-markdown#16.

Could you expand a bit on the docker failures you're seeing with crypto-lib? The links here in GitHub to the CI failures seem not to contain the logs. With more info/context, perhaps other folks could help.

- create XAR-packages in dist folder
- prepend calls in npm scripts with dotenv where applicable. Read
  .env-files to allow setting different connection to the DB instances.
- add npm task "develop" (running gulp default task)
- rename npm script test:build to test:install
- add dependency dotenv-cli
- update dependencies @existdb/gulp-exist and @existdb/gulp-replace-tmpl
- create XAR-packages in dist folder
- prepend calls in npm scripts with dotenv where applicable. Read
  .env-files to allow setting different connection to the DB instances.
- add npm task "develop" (running gulp default task)
- rename npm script test:build to test:install
- add dependency dotenv-cli
- update dependencies @existdb/gulp-exist and @existdb/gulp-replace-tmpl
- create XAR-packages in dist folder
- prepend calls in npm scripts with dotenv where applicable. Read
  .env-files to allow setting different connection to the DB instances.
- add npm task "develop" (running gulp default task)
- rename npm script test:build to test:install
- add dependency dotenv-cli
- update dependencies @existdb/gulp-exist and @existdb/gulp-replace-tmpl
@line-o
Copy link
Member Author

line-o commented Feb 18, 2022

It turned out that the public-repo instance currently installed on exist-db.org is the culprit that leads to failing installations of dependent packages. This then leads to failing tests in CI.
see eXist-db/public-repo#74 and eXist-db/node-exist#222

@line-o
Copy link
Member Author

line-o commented Feb 21, 2022

Hooray! The test application installs and tests are passing!

@line-o line-o added the enhancement New feature or request label Feb 21, 2022
@line-o line-o mentioned this pull request Feb 21, 2022
@wolfgangmm wolfgangmm merged commit 8b96270 into eeditiones:master Feb 24, 2022
@github-actions
Copy link

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@line-o line-o mentioned this pull request Feb 24, 2022
@line-o line-o deleted the improve-build branch August 23, 2022 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants