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/1 | |
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/1')
-rw-r--r-- | features/1/authentication.feature | 4 | ||||
-rw-r--r-- | features/1/unauthenticated.feature | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/features/1/authentication.feature b/features/1/authentication.feature index 52b562f..a6e5538 100644 --- a/features/1/authentication.feature +++ b/features/1/authentication.feature @@ -13,12 +13,12 @@ Feature: Authentication Given I authenticated And I set headers: | Authorization | Token token="MY_AUTH_TOKEN" | - When I send a GET request to "/1/configs.json" + When I send a GET request to "/1/service" Then the response status should be "200" Scenario: Submitting an invalid token Given I authenticated And I set headers: | Authorization | Token token="InvalidToken" | - When I send a GET request to "/1/configs.json" + When I send a GET request to "/1/service" Then the response status should be "401" diff --git a/features/1/unauthenticated.feature b/features/1/unauthenticated.feature index aea7117..a135f14 100644 --- a/features/1/unauthenticated.feature +++ b/features/1/unauthenticated.feature @@ -16,7 +16,7 @@ Feature: Unauthenticated API endpoints And the response should be that config Scenario: Authentication required response - When I send a GET request to "/1/configs" + When I send a GET request to "/1/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 +24,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 | /1/configs | | GET | /1/configs/config_id.json | | GET | /1/service | | DELETE | /1/logout | |