summaryrefslogtreecommitdiff
path: root/features/unauthenticated.feature
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-11 13:06:42 -0800
committerelijah <elijah@riseup.net>2014-11-11 13:06:42 -0800
commitc3305f1c29a1a37913bfb05cd11d547e9d7f16a0 (patch)
treecbe7844b1cf7c3b0370080af27f76702564e1c18 /features/unauthenticated.feature
parentc8b9e7ac72d27997603dbede8001fca7d3f40e1a (diff)
parentcbf73046f42aeafb760e378d872f8c06f8bdfe86 (diff)
Merge branch 'test/feature-for-service-endpoint' of https://github.com/azul/leap_web into develop
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