dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

Sipi config for integration tests fails

Open benjamingeer opened this issue 6 years ago • 0 comments

Steps to reproduce:

  1. Start Sipi following the instructions under "With Docker" in Knora/sipi/README.md. The README says that is "with config for integration tests":
$ export DOCKERHOST=LOCAL_IP_ADDRESS
$ docker image rm --force dhlabbasel/sipi:develop // deletes cached image and needs only to be used when newer image is available on dockerhub
$ docker-compose up sipi
  1. Run the integration tests:
knora(develop)> webapi / it:test

Result: Test KnoraSipiScriptsV1ITSpec fails:

[info] KnoraSipiScriptsV1ITSpec:
Knora API Server started at http://0.0.0.0:3333.
[info] Calling Knora Sipi Scripts
[info] - should successfully call C++ functions from Lua scripts *** FAILED *** (54 milliseconds)
[info]   400 Bad Request did not equal 200 OK,
[info]    REQUEST: HttpRequest(HttpMethod(GET),http://0.0.0.0:1024/test_functions,List(),HttpEntity.Strict(none/none,ByteString()),HttpProtocol(HTTP/1.1)),
[info]    RESPONSE: Bad Request: Query has too few parameters (ITKnoraFakeSpec.scala:93)

You can also see this using curl to connect to Sipi directly:

$ curl http://0.0.0.0:1024/test_functions
Bad Request: Query has too few parameters

benjamingeer avatar Sep 09 '19 08:09 benjamingeer