diff options
author | RHE <rebirthmonkey@gmail.com> | 2017-12-27 14:29:16 +0100 |
---|---|---|
committer | RHE <rebirthmonkey@gmail.com> | 2017-12-27 14:29:16 +0100 |
commit | e10e5fe4bc0f290ab90a0261ab5498c7819aed9b (patch) | |
tree | a7ce3f16eefe76189ba10b932d9f55919ca68cfb /README.md | |
parent | 1ae589007f72d648f03745983633b5453cae0592 (diff) |
moonv43 ok
Change-Id: I5ca6724755137ec61d1f0df2e9ed9861de18a50b
Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 76 |
1 files changed, 40 insertions, 36 deletions
@@ -52,38 +52,8 @@ curl http://$MOON_HOST:30001 curl http://$MOON_HOST:30001/pdp curl http://$MOON_HOST:30001/policies ``` - -If you configured the authentication in the Moon platform: -```bash -curl -i \ - -H "Content-Type: application/json" \ - -d ' -{ "auth": { - "identity": { - "methods": ["password"], - "password": { - "user": { - "name": "admin", - "domain": { "id": "default" }, - "password": "<set_your_password_here>" - } - } - }, - "scope": { - "project": { - "name": "admin", - "domain": { "id": "default" } - } - } - } -}' \ - "http://moon_hostname:30006/v3/auth/tokens" ; echo - -curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001 -curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001/pdp -curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001/policies -``` - + +### Consul Check Check the Consul service for - *Components/Manager*, e.g. ```json @@ -114,10 +84,44 @@ Check the Consul service for } ``` +### Tests Launch functional [test scenario](tests/functional/scenario_enabled) : ```bash -cd $MOON_HOME/tests/functional/scenario_enabled -docker run -ti -v $(pwd):/data wukongsun/moon_forming:latest /bin/bash -moon_populate_values --consul-host=$MOON_HOST --consul-port=30005 -v /data/rbac_large.py -moon_send_authz --consul-host=$MOON_HOST --consul-port=30005 --authz-host=$MOON_HOST --authz-port=31002 -v /data/rbac_large.py +sudo pip install python_moonclient --upgrade +cd $MOON_HOME/tests/functional/scenario_tests +moon_populate_values --consul-host=$MOON_HOST --consul-port=30005 -v rbac_large.py +moon_send_authz --consul-host=$MOON_HOST --consul-port=30005 --authz-host=$AUTHZ_HOST --authz-port=$AUTHZ_PORT -v rbac_large.py ``` + +## Annexe +### Authentication +If you configured the authentication in the Moon platform: +```bash +curl -i \ + -H "Content-Type: application/json" \ + -d ' +{ "auth": { + "identity": { + "methods": ["password"], + "password": { + "user": { + "name": "admin", + "domain": { "id": "default" }, + "password": "<set_your_password_here>" + } + } + }, + "scope": { + "project": { + "name": "admin", + "domain": { "id": "default" } + } + } + } +}' \ + "http://moon_hostname:30006/v3/auth/tokens" ; echo + +curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001 +curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001/pdp +curl --header "X-Auth-Token: <token_retrieve_from_keystone>" http://moon_hostname:30001/policies +```
\ No newline at end of file |