[ 
https://issues.apache.org/jira/browse/CASSANDRASC-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095232#comment-17095232
 ] 

Dinesh Joshi commented on CASSANDRASC-22:
-----------------------------------------

I finally was able to get the test runs fixed. Turns out that we indeed had a 
race in the way we allocate the socket during tests. This now works reliably on 
the machine image as well as docker based environment. Here's how it looks:

!image-2020-04-29-01-14-11-756.png|width=444,height=182!
{quote}I went through the PR. It looks good to me, except the file 
src/main/resources/docs/index.html seems to be committed by mistake. The docs 
endpoint now works without it.
{quote}
The {{index.html}} is required to be checked in. Its the entry point to 
{{localhost:9043/docs/index.html}}. You'll find that if you delete that file 
and run {{./gradlew clean run}}, it will the Swagger UI stops working. Its 
mapped 
[here|https://github.com/apache/cassandra-sidecar/compare/master...dineshjoshi:resteasy-swagger#diff-4ccf0add938ab660c975035eeb204be5R120].

I still need to clean up this patch a bit more viz. I've noticed the builds are 
quicker if run via Docker vs Bare Metal VM so I'd prefer to use Docker vs Bare 
Metal where possible. WDYT?

> RESTEasy integration for Cassandra Sidecar
> ------------------------------------------
>
>                 Key: CASSANDRASC-22
>                 URL: https://issues.apache.org/jira/browse/CASSANDRASC-22
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Improvement
>          Components: Rest API
>            Reporter: Dinesh Joshi
>            Assignee: Dinesh Joshi
>            Priority: Normal
>         Attachments: image-2020-04-27-22-59-40-060.png, 
> image-2020-04-29-01-14-11-756.png
>
>
> Add support for JAX-RS based routing via RESTEasy to Cassandra Sidecar. This 
> also dynamically generates swagger documentation and adds the swagger UI.
> [Branch|https://github.com/dineshjoshi/cassandra-sidecar/tree/resteasy-swagger]
> [Tests|https://circleci.com/workflow-run/a7888146-a22d-45af-983a-8833b77eef59]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to