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

tests fail with out-of-the-box Nuxeo and nuxeo-js-client #110

Closed
Trott opened this issue Dec 9, 2020 · 2 comments
Closed

tests fail with out-of-the-box Nuxeo and nuxeo-js-client #110

Trott opened this issue Dec 9, 2020 · 2 comments

Comments

@Trott
Copy link

Trott commented Dec 9, 2020

I'm on macOS Catalina. If I have a docker image running an untouched Nuxeo on port 8080 and I run yarn test:node, I get two failures:

  1) Multi Repository
       "before all" hook in "Multi Repository":
     Error: Internal Server Error
      at /Users/trott/nuxeo-js-client/lib/nuxeo.js:159:27
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:93:5)

  2) Operation
       #execute
         should execute an operation with an input being
           non-existing document:
     Error: Method Not Allowed
      at /Users/trott/nuxeo-js-client/lib/nuxeo.js:159:27
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:93:5)



error Command failed with exit code 2.

I'm running Node.js 15.4.0.

Just me? Or others can replicate this?

@Trott
Copy link
Author

Trott commented Dec 9, 2020

Same errors using Node.js 14.x, 12.x, and 10.x.

@troger
Copy link
Member

troger commented Dec 15, 2020

Hello,

The tests are relying on Nuxeo contributions that should be deployed on the server.

As a workaround, assuming you are using Nuxeo 10.10, you can run the image with the following command:

docker run -it --rm --name nux -p 8080:8080 \
-v $(pwd)/ftest/src/test/resources/nuxeo-js-operations-config.xml:/opt/nuxeo/server/templates/common/config/nuxeo-js-operations-config.xml \
-v $(pwd)/ftest/src/test/resources/nuxeo-js-other-repository-config.xml:/opt/nuxeo/server/templates/common/config/nuxeo-js-other-repository-config.xml \
-v $(pwd)/ftest/src/test/resources/nuxeo-js-elasticsearch-config.xml:/opt/nuxeo/server/templates/common/config/nuxeo-js-elasticsearch-config.xml \
-v $(pwd)/ftest/src/test/resources/nuxeo-js-jwt-config.xml:/opt/nuxeo/server/templates/common/config/nuxeo-js-jwt-config.xml \
nuxeo:10.10

We will work on updating the documentation.

@Trott Trott closed this as completed Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants