summaryrefslogtreecommitdiff
path: root/features/unauthenticated.feature
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-28 11:05:46 +0200
committerAzul <azul@leap.se>2014-07-31 10:03:38 +0200
commit1092bbc337edc5973fad63bea559ecc2a3a5b896 (patch)
tree7571646015a24623e439c4af3f067fe469f9c406 /features/unauthenticated.feature
parent297b42cd7557a7508cdbf091163da48bbd52a79a (diff)
features for anonymous use and service endpoint
Also moved the location of the config files into a configuration setting.
Diffstat (limited to 'features/unauthenticated.feature')
-rw-r--r--features/unauthenticated.feature17
1 files changed, 3 insertions, 14 deletions
diff --git a/features/unauthenticated.feature b/features/unauthenticated.feature
index 870adb1..aea7117 100644
--- a/features/unauthenticated.feature
+++ b/features/unauthenticated.feature
@@ -10,22 +10,10 @@ Feature: Unauthenticated API endpoints
@tempfile
Scenario: Fetch provider config
- Given the provider config is:
- """
- {"config": "me"}
- """
+ Given there is a config for the provider
When I send a GET request to "/provider.json"
Then the response status should be "200"
- And the response should be:
- """
- {"config": "me"}
- """
-
- @config
- Scenario: Fetch configs when anonymous certs are allowed
- Given "allow_anonymous_certs" is enabled in the config
- When I send a GET request to "/1/configs.json"
- Then the response status should be "200"
+ And the response should be that config
Scenario: Authentication required response
When I send a GET request to "/1/configs"
@@ -38,5 +26,6 @@ Feature: Unauthenticated API endpoints
When I send requests to these endpoints:
| GET | /1/configs |
| GET | /1/configs/config_id.json |
+ | GET | /1/service |
| DELETE | /1/logout |
Then they should require authentication