From 1092bbc337edc5973fad63bea559ecc2a3a5b896 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 28 Jul 2014 11:05:46 +0200 Subject: features for anonymous use and service endpoint Also moved the location of the config files into a configuration setting. --- features/config.feature | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'features/config.feature') 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 + -- cgit v1.2.3