# +------------+----------+-----------------------------------------------+ # | Name | Type | Endpoints | # +------------+----------+-----------------------------------------------+ # | aodh | alarming | RegionOne # | | | publicURL: http://192.168.33.10:8042 # | gnocchi | metric | RegionOne # | | | publicURL: http://192.168.33.10:8041 # | ceilometer | metering | RegionOne # | | | publicURL: http://192.168.33.10:8777 # # Note below the JSON fiddling required to get at the correct entry # in the links _array_. If that were a dictionary it would be more # descriptive and predictable. There are ways to do more effective # queries of anonymous JSON objects with JSONPath, but that # functionality is not yet in Gabbi (will be soon). Even then it # will still be cumbersome and unreadable. defaults: verbose: True tests: - name: ceilometer root desc: this should return something not 401 GET: http://localhost:8777/ status: 401 - name: ceilometer root with auth desc: root versions doc GET: http://localhost:8777/ request_headers: x-auth-token: $ENVIRON['TOKEN'] response_json_paths: $.versions..links[0].href: $SCHEME://$NETLOC/v2 - name: ceilometer at version desc: nothing at /v2! GET: $RESPONSE['$.versions..links[0].href'] request_headers: x-auth-token: $ENVIRON['TOKEN'] status: 404 - name: aodh root desc: this should return something not 401 GET: http://localhost:8042/ status: 401 - name: aodh root with auth desc: root version info GET: http://localhost:8042/ request_headers: x-auth-token: $ENVIRON['TOKEN'] response_json_paths: $.versions..links[0].href: $SCHEME://$NETLOC/v2 - name: aodh at version desc: nothing at /v2! GET: $RESPONSE['$.versions..links[0].href'] request_headers: x-auth-token: $ENVIRON['TOKEN'] status: 404 - name: gnocchi root desc: this should return something not 401 GET: http://localhost:8041/ status: 401 - name: gnocchi root with auth desc: this should return something not 401 GET: http://localhost:8041/ request_headers: x-auth-token: $ENVIRON['TOKEN'] response_json_paths: $.versions..links[0].href: $SCHEME://$NETLOC/v1/ - name: gnocchi at version GET: $RESPONSE['$.versions..links[0].href'] desc: gnocchi version doc exists with links elsewhere request_headers: x-auth-token: $ENVIRON['TOKEN'] response_json_paths: $.version: "1.0"