-
Notifications
You must be signed in to change notification settings - Fork 1
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
write the unit test for all the REST endpoints #1
Comments
I am on it but, at the moment, I'm stuck on trying to solve some issues with sbt / docker... |
Thanks @nyrk let me know if I can help. |
Fighting against the following error:
Any clue? |
@nyrk Below there is the content of
|
I'm using sbt 1.0.3 on Fedora 26 sbt dist does not work (like any other sbt command):
sbt version is the following:
It seems that scala version does not match yours: could be this the root of the issue? |
Yes the different version of scala could cause the problem. But sbt should download and use the version of scala specified into the build.sbt file. This is the result of angelo@/data/elegans.io/temp/orac-api$ sbt
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /data/elegans.io/temp/orac-api/project
[info] Loading settings from git.sbt,build.sbt ...
[info] Set current project to Orac API (in build file:/data/elegans.io/temp/orac-api/)
[info] sbt server started at 127.0.0.1:4170
Orac API(master)> Sbt gives the error "Not a valid command: dist ...." when the project does not contains a valid build.sbt file. The sbt command should be executed from the project base directory (same location of the build.sbt file). |
I have executed sbt in the root folder of a brand new git clone of orac-api source code (and, yes, in the folder there's the file build.sbt). The error on sbt dist, as far as I can understand, is due to the fact that, because of the scala.MatchError: false (of class scala.reflect.internal.Trees$Literal) error, sbt can't initialize a sesion and a project. Whatever... I continue to investigate and I will try to install a more recent version of scala... even if, in theory, as you said, the correct version should be downloaded from sbt itself... Stay tuna ;-) |
Every REST endpoint must be verified through the unit tests.
The code for the unit test is ready, they must only be extended to all the endpoints: currently only the index management endpoints is tested (see for example src/test/scala/io/elegans/orac/resources/IndexManagementResourceTest.scala).
The unit tests can be run using the command:
The reference documentation for the API is: https://app.swaggerhub.com/apis/angleto/orac/v0.0.1#/customer/get_orac_user
The text was updated successfully, but these errors were encountered: