From 999f8a66ec585ca8a3371bef2af1fa827c13bb7d Mon Sep 17 00:00:00 2001 From: Wendy Nestor Date: Tue, 22 Apr 2014 15:16:14 -0400 Subject: [PATCH] Modificaciones a los features cases actions y input document case --- .../case_actions/main_tests_cases_actions.feature | 3 +-- .../negative_tests_input_document_case.feature | 12 +++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature index bff401527..c787d165a 100644 --- a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature @@ -234,12 +234,11 @@ Scenario Outline: Sends variables to a case - - Scenario Outline: Route a case to the next task in the process Given PUT this data: """ { + "case_uid": "", "del_index": "1" } """ diff --git a/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature b/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature index fb003d01d..514c33530 100644 --- a/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature +++ b/features/backend/application_cases/input_documents_case/negative_tests_input_document_case.feature @@ -13,7 +13,7 @@ Scenario: Returns a list of the uploaded documents for a given case Then the response status code should be 400 Scenario Outline: Post metadata and then upload documents for a given case - Given POST upload an input document "" to "cases//input-document" + Given POST this data: """ { @@ -24,12 +24,14 @@ Scenario Outline: Post metadata and then upload documents for a given case } """ + And I request "cases//input-document" Then the response status code should be 400 + And the response status message should have the following text "" Examples: - | app_doc_uid_number | document_file | case_uid | inp_doc_uid | tas_uid | app_doc_comment | - | 1 | /inexistent_test1.html | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | 19582733053319e304cfa76025663570 | comment 1 | - | 1 | /home/wendy/uploadfiles/test1.html | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | | comment 1 | - | 1 | /home/wendy/uploadfiles/test1.html | 170220159534214f642abb8058832933 | | 19582733053319e304cfa76025663570 | comment 1 | + | test_description | case_uid | inp_doc_uid | tas_uid | app_doc_comment | error_message | + | Incorrect tas_uid | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | | comment 1 | tas_uid | + | Incorrect inp_doc_uid | 170220159534214f642abb8058832933 | | 19582733053319e304cfa76025663570 | comment 1 | inp_doc_uid | + | No file | 170220159534214f642abb8058832933 | 68671480353319e5e1dee74089764900 | 19582733053319e304cfa76025663570 | comment 1 | filename | \ No newline at end of file