diff options
author | elijah <elijah@riseup.net> | 2014-11-11 13:06:42 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-11-11 13:06:42 -0800 |
commit | c3305f1c29a1a37913bfb05cd11d547e9d7f16a0 (patch) | |
tree | cbe7844b1cf7c3b0370080af27f76702564e1c18 /features/config.feature | |
parent | c8b9e7ac72d27997603dbede8001fca7d3f40e1a (diff) | |
parent | cbf73046f42aeafb760e378d872f8c06f8bdfe86 (diff) |
Merge branch 'test/feature-for-service-endpoint' of https://github.com/azul/leap_web into develop
Diffstat (limited to 'features/config.feature')
-rw-r--r-- | features/config.feature | 26 |
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 + |