Se modifica BEHAT FILES MANAGER
This commit is contained in:
@@ -29,9 +29,9 @@ Feature: Files Manager Resources
|
|||||||
Given POST this data:
|
Given POST this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"file_name": "<file_name>",
|
"prf_filename": "<file_name>",
|
||||||
"path": "<path>",
|
"prf_path": "<path>",
|
||||||
"content": "<content>"
|
"prf_content": "<content>"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/1265557095225ff5c688f46031700471/file-manager"
|
And I request "project/1265557095225ff5c688f46031700471/file-manager"
|
||||||
@@ -43,10 +43,10 @@ Feature: Files Manager Resources
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | file_name | path | content | http_code | type | i |
|
| test_description | file_name | path | content | http_code | type | i |
|
||||||
| into public folder | test.txt | public/ | test | 200 | object | 0 |
|
| into public folder | testbehat.txt | public/ | test | 200 | object | 0 |
|
||||||
| into maintemplates folder | test.txt | templates/ | test | 200 | object | 1 |
|
| into maintemplates folder | testbehat.txt | templates/ | test | 200 | object | 1 |
|
||||||
| into public subfolder | test.txt | public/test_folder | test | 200 | object | 2 |
|
| into public subfolder | testbehat.txt | public/test_folder | test | 200 | object | 2 |
|
||||||
| into public subfolder | test.txt | templates/test_folder | test | 200 | object | 3 |
|
| into public subfolder | testbehat.txt | templates/test_folder | test | 200 | object | 3 |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -54,8 +54,8 @@ Feature: Files Manager Resources
|
|||||||
Given PUT this data:
|
Given PUT this data:
|
||||||
"""
|
"""
|
||||||
{
|
{
|
||||||
"file_name": "<file_name>",
|
"prf_filename": "<file_name>",
|
||||||
"content": "<content>"
|
"prf_content": "<content>"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
||||||
@@ -66,12 +66,12 @@ Feature: Files Manager Resources
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | file_name | path | content | http_code | type |
|
| test_description | file_name | path | content | http_code | type |
|
||||||
| put into public folder | test.txt | public/ | put test | 200 | object |
|
| put into public folder | testbehat.txt | public/ | put test | 200 | object |
|
||||||
| put into maintemplates folder | test.txt | templates/ | put test | 200 | object |
|
| put into maintemplates folder | testbehat.txt | templates/ | put test | 200 | object |
|
||||||
| put into public subfolder | test.txt | public/test_folder | put test | 200 | object |
|
| put into public subfolder | testbehat.txt | public/test_folder | put test | 200 | object |
|
||||||
| put into public subfolder | test.txt | templates/test_folder | put test | 200 | object |
|
| put into public subfolder | testbehat.txt | templates/test_folder | put test | 200 | object |
|
||||||
|
|
||||||
Scenario Outline: Delete User
|
Scenario Outline: Delete file
|
||||||
Given that I want to delete a "<path>"
|
Given that I want to delete a "<path>"
|
||||||
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
And I request "project/1265557095225ff5c688f46031700471/file-manager?path=<path>"
|
||||||
And the content type is "application/json"
|
And the content type is "application/json"
|
||||||
@@ -79,8 +79,8 @@ Feature: Files Manager Resources
|
|||||||
And the response charset is "UTF-8"
|
And the response charset is "UTF-8"
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
| test_description | path |
|
| test_description | path |
|
||||||
| put into public folder | public/test.txt |
|
| delete public folder | public/testbehat.txt |
|
||||||
| put into maintemplates folder | templates/test.txt |
|
| delete maintemplates folder | templates/testbehat.txt |
|
||||||
| put into public subfolder | public/test_folder/test.txt |
|
| delete public subfolder | public/test_folder/testbehat.txt |
|
||||||
| put into public subfolder | templates/test_folder/test.txt |
|
| delete public subfolder | templates/test_folder/testbehat.txt |
|
||||||
Reference in New Issue
Block a user