diff options
author | azul <azul@riseup.net> | 2017-11-07 22:58:09 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-11-07 22:58:09 -0800 |
commit | e7dfe732599df8df4299c60d14f7c1e3e112b27d (patch) | |
tree | b48d01737e18f708b15d178bbe51ea95d8d6e3db /features/unauthenticated.feature | |
parent | d717aba320abc5cc2ebf5650cbd52a69a56926b5 (diff) | |
parent | ef91e8fe1fb5c1cf8f2f84fd25ef2b115f0ec8c8 (diff) |
Merge branch '8800-hand-out-configs-json-without-authentication' into 'master'
feat: allow unauthenticated access to list of configs
Closes #8800
See merge request leap/webapp!45
Diffstat (limited to 'features/unauthenticated.feature')
-rw-r--r-- | features/unauthenticated.feature | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/features/unauthenticated.feature b/features/unauthenticated.feature index b4b0f55..a55faa7 100644 --- a/features/unauthenticated.feature +++ b/features/unauthenticated.feature @@ -15,8 +15,22 @@ Feature: Unauthenticated API endpoints Then the response status should be "200" And the response should be that config + Scenario: Fetch list of available configs + When I send a GET request to "/2/configs.json" + Then the response status should be "200" + And the response should be: + """ + { + "services": { + "soledad": "/2/configs/soledad-service.json", + "eip": "/2/configs/eip-service.json", + "smtp": "/2/configs/smtp-service.json" + } + } + """ + Scenario: Authentication required response - When I send a GET request to "/2/configs" + When I send a GET request to "/2/configs/config_id.json" Then the response status should be "401" And the response should have "error" with "not_authorized_login" And the response should have "message" @@ -24,7 +38,6 @@ Feature: Unauthenticated API endpoints Scenario: Authentication required for all other API endpoints (incomplete) Given I am not logged in When I send requests to these endpoints: - | GET | /2/configs | | GET | /2/configs/config_id.json | | GET | /2/service | | DELETE | /2/logout | |