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

Phil Zampino commented on KNOX-1039:
------------------------------------

While GatewayAdminTopologyFuncTest.java exercises the new APIs, they can also 
be manually verified using cURL:
(The referenced files are attached, but you may need to modify sandbox.json for 
your Ambari instance)

Create the discovery password alias: bin/knoxcli.sh create-alias 
sandbox.ambari.discovery.password --value maria_dev

Provider Configurations:
# curl -ivku admin:admin-password -X PUT 
https://localhost:8443/gateway/admin/api/v1/providerconfig/sandbox-providers -d 
"@sandbox-providers.xml" -H "Content-Type: application/xml"
# curl -ivku admin:admin-password -X PUT 
https://localhost:8443/gateway/admin/api/v1/providerconfig/alt-providers -d 
"@sandbox-providers.xml" -H "Content-Type: application/xml"
# curl -ivku admin:admin-password 
https://localhost:8443/gateway/admin/api/v1/providerconfig
# curl -ivku admin:admin-password 
https://localhost:8443/gateway/admin/api/v1/providerconfig/sandbox-providers
# curl -ivku admin:admin-password -X DELETE 
https://localhost:8443/gateway/admin/api/v1/providerconfig/alt-providers
# curl -ivku admin:admin-password -X DELETE 
https://localhost:8443/gateway/admin/api/v1/providerconfig/sandbox-providers

Descriptors:
# curl -ivku admin:admin-password -X PUT 
https://localhost:8443/gateway/admin/api/v1/descriptors/mysandbox -d 
"@sandbox.json" -H "Content-Type: application/json"
# curl -ivku admin:admin-password -X PUT 
https://localhost:8443/gateway/admin/api/v1/descriptors/myothersandbox -d 
"@sandbox.json" -H "Content-Type: application/json"
# curl -ivku admin:admin-password 
https://localhost:8443/gateway/admin/api/v1/descriptors
# curl -ivku admin:admin-password 
https://localhost:8443/gateway/admin/api/v1/descriptors/mysandbox
# curl -ivku admin:admin-password -X DELETE 
https://localhost:8443/gateway/admin/api/v1/descriptors/mysandbox
# curl -ivku admin:admin-password -X DELETE 
https://localhost:8443/gateway/admin/api/v1/descriptors/myothersandbox



> Add Support For Simple Descriptors and Policy Config to Knox Admin API
> ----------------------------------------------------------------------
>
>                 Key: KNOX-1039
>                 URL: https://issues.apache.org/jira/browse/KNOX-1039
>             Project: Apache Knox
>          Issue Type: Sub-task
>          Components: Server
>            Reporter: Phil Zampino
>            Assignee: Phil Zampino
>              Labels: kip-8
>             Fix For: 0.14.0
>
>         Attachments: KNOX-1039-001.patch, KNOX-1039.patch, sandbox.json, 
> sandbox-providers.xml
>
>
> The Knox admin API needs to support CRUD operations for simple descriptors 
> and externalized provider configurations.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to