From 625bfed395634e99e9c55ac94e6956a7fc677c28 Mon Sep 17 00:00:00 2001 From: Tim Lianov Date: Mon, 7 Jul 2014 13:45:57 +0400 Subject: [PATCH] started scripts tests --- .../features/api_v2/00_list/script.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 devops-service/features/api_v2/00_list/script.feature diff --git a/devops-service/features/api_v2/00_list/script.feature b/devops-service/features/api_v2/00_list/script.feature new file mode 100644 index 0000000..ad664a6 --- /dev/null +++ b/devops-service/features/api_v2/00_list/script.feature @@ -0,0 +1,17 @@ +@script +Feature: Scripts + + Scenario: Get scripts list + When I send GET '/v2.0/scripts' query + Then response should be '200' + And the Content-Type header should include 'application/json' + And the JSON response should be an array + And the array elements should be strings + + Scenario: Get scripts list without 'Accept' header + When I send GET '/v2.0/scripts' query without headers 'Accept' + Then response should be '406' + + Scenario: Get scripts list without privileges + When I send GET '/v2.0/scripts' query with user without privileges + Then response should be '401'