@ProcessMakerMichelangelo @RestAPI Feature: File Manager Negative Tests Background: Given that I have a valid access_token Scenario: Get a list public folder of process files manager with bad parameters (negative tests) Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=sample" Then the response status code should be 400 And the response status message should have the following text "" Scenario: Get a list templates folder of process files manager with bad parameters (negative tests) Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=sample" Then the response status code should be 200 And the response status message should have the following text "" Scenario Outline: Create files and subfolders for a project with bad parameters (negative tests) Given POST this data: """ { "prf_filename": "", "prf_path": "", "prf_content": "" } """ And I request "project//file-manager" Then the response status code should be And the response status message should have the following text "" Examples: | test_description | project | prf_filename | prf_path | prf_content | error_code | error_message | | Invalid path public | 1265557095225ff5c688f46031700471 | file_test_1.txt | file_input_public/ | only text | 400 | prf_path | | Invalid path template | 1265557095225ff5c688f46031700471 | file_test_2.html | temptes_manager/ |

Test

html test

| 400 | prf_path | | Field Required prf_filename in public | 1265557095225ff5c688f46031700471 | | public/ | only text | 200 | prf_filename | | Field Required prf_filename in template | 1265557095225ff5c688f46031700471 | | templates/ |

Test

html test

| 200 | prf_filename | | Field Required project | | file_test_1.txt | public/ | only text | 200 | prj_uid | # how to get content if a file - revisar si hay el endpoint para poner el contenido del html # how to delete sub folders # upload big files - # actualizar el conteniudo subiendo un archivo nuevo con el mismo nombre...