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

Endpoint issue running tests #2

Open
swhittaker opened this issue Apr 27, 2021 · 1 comment
Open

Endpoint issue running tests #2

swhittaker opened this issue Apr 27, 2021 · 1 comment

Comments

@swhittaker
Copy link

When running the java-cucumber-example project with the command:
./gradlew runDistribution -Dtags=@test

I encounter a failure:

Execution failed for task ':reserveBuild'.
> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "timestamp" (class com.testvagrant.monitor.responses.BuildsResponse), not marked as ignorable (2 known properties: "links", "content"])
   at [Source: (String)"{
    "timestamp" : "2021-04-27T12:26:40.003+0000",
    "status" : 404,
    "error" : "Not Found",
    "message" : "No message available",
    "path" : "/v1/builds/search/findAllBuildsByOrderByBuildStartTimeDesc"
  }"; line: 2, column: 18] (through reference chain: com.testvagrant.monitor.responses.BuildsResponse["timestamp"])

I think this is related to the presence / absence of the "v1" in the URL as the URL:
http://localhost:8090/builds/search/findAllBuildsByOrderByBuildStartTimeDesc

works fine in the web browser, whereas this URL is a 404:
http://localhost:8090/v1/builds/search/findAllBuildsByOrderByBuildStartTimeDesc

I've tried setting the serviceUrl=http://localhost:8090 but then encounter a further issue with missing content-type from the response.

@swhittaker
Copy link
Author

Running with previous version of optimus-services seems to solve these issues

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

1 participant