summaryrefslogtreecommitdiff
path: root/features/config.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/config.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/config.feature')
-rw-r--r--features/config.feature26
1 files changed, 18 insertions, 8 deletions
diff --git a/features/config.feature b/features/config.feature
index 6adaed9..0b2ee70 100644
--- a/features/config.feature
+++ b/features/config.feature
@@ -15,16 +15,10 @@ Feature: Download Provider Configuration
@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"}
- """
+ And the response should be that config
Scenario: Missing provider config
When I send a GET request to "/provider.json"
@@ -44,3 +38,19 @@ Feature: Download Provider Configuration
}
}
"""
+
+ Scenario: Attempt to fetch an invalid config
+ When I send a GET request to "/1/configs/non-existing.json"
+ Then the response status should be "403"
+
+ Scenario: Attempt to fetch a config that is missing on the server
+ When I send a GET request to "/1/configs/eip-service.json"
+ Then the response status should be "404"
+
+ @tempfile, @config
+ Scenario: Attempt to fetch the EIP config
+ Given there is a config for the eip
+ When I send a GET request to "/1/configs/eip-service.json"
+ Then the response status should be "200"
+ And the response should be that config
+