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

Larry McCay commented on KNOX-848:
----------------------------------

To move this patch forward, I propose that the following (from Shi Wang's page) 
be used for gating the commit to master.
However, I believe that follow up JIRA should be required for adding KnoxShell 
classes and a groovy script that does the same sort of testing.

I will file such a JIRA.

{noformat}
Install docker compose https://docs.docker.com/compose/install/

get git repository
1)# git clone [email protected]:Wancy/DockerCompose_knox_titanREST.git
2)# git pull

cd to the git repository
run docker compose
1)# docker-compose up -d
check if three containers are running
1)# docker ps

Try curl command

1)# curl -Hcontent-type:application/json -u guest:guest-password -k 
https://localhost:8443/gateway/default/titan -d '{"gremlin": "100-1"}'

2)# curl -Hcontent-type:application/json -u guest:guest-password -k 
https://localhost:8443/gateway/default/titan/graphs -d '{"gremlin": "100-1"}'

3)# curl -Hcontent-type:application/json -u guest:guest-password -k 
https://localhost:8443/gateway/default/titan?gremlin=100-1

4)# curl -Hcontent-type:application/json -u guest:guest-password -k 
https://localhost:8443/gateway/default/titan/graphs?gremlin=100-1

The command should all return corrent result something like:

{"requestId":"732a1e6f-b1b8-4867-9f33-044903cc604b","status":{"message":"","code":200,"attributes":{}},"result":{"data":[99],"meta":{}}}
{noformat}

I will also request that this functionality be manually tested by [~Wancy] at 
the release time in order to ensure that it still works as intended.

> Support for Titan REST
> ----------------------
>
>                 Key: KNOX-848
>                 URL: https://issues.apache.org/jira/browse/KNOX-848
>             Project: Apache Knox
>          Issue Type: New Feature
>    Affects Versions: 0.11.0
>            Reporter: Shi Wang
>            Assignee: Shi Wang
>             Fix For: 0.12.0
>
>         Attachments: 0001-KNOX-848-Support-for-Apache-Titan-REST.patch, 
> 0001-KNOX-848-Support-for-Titan-REST.patch
>
>
> Support Apache Titan 1.0.0 REST go through knox.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to