Modificacion en File Manager

This commit is contained in:
Wendy Nestor
2014-02-27 11:49:05 -04:00
parent 6568e71dd9
commit adbaf70208
2 changed files with 55 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ Feature: Files Manager Resources
Given I request "project/1265557095225ff5c688f46031700471/file-manager?path=public"
Then the response status code should be 200
And the response charset is "UTF-8"
And the content type is "application/json"
/root/.jenkins/jobs/MichelangeloBE/workspace/shared/sites/michelangelo/mailTemplates/1265557095225ff5c688f46031 And the content type is "application/json"
And the type is "array"
Scenario: Get a list templates folder of process files manager
@@ -42,11 +42,11 @@ Feature: Files Manager Resources
And store "prf_uid" in session array as variable "prf_uid<i>"
Examples:
| test_description | file_name | path | content | http_code | type | i |
| into public folder | testbehat.txt | public/ | test | 200 | object | 0 |
| into mailtemplates folder | testbehat.txt | templates/ | test | 200 | object | 1 |
| into public subfolder | testbehat.txt | public/test_folder | test | 200 | object | 2 |
| into mailtemplates subfolder | testbehat.txt | templates/test_folder | test | 200 | object | 3 |
| test_description | file_name | path | content | http_code | type | i |
| into public folder | testbehat1.txt | public/ | test | 200 | object | 0 |
| into mailtemplates folder | testbehat1.txt | templates/ | test | 200 | object | 1 |
| into public subfolder | testbehat1.txt | public/test_folder | test | 200 | object | 2 |
| into mailtemplates subfolder | testbehat1.txt | templates/test_folder | test | 200 | object | 3 |
Scenario Outline: Post files
Given PUT this data:

View File

@@ -0,0 +1,49 @@
@ProcessMakerMichelangelo @RestAPI
Feature: Step update position
Scenario: List all the Sub Processs (result 0 Sub Processs)
Given that I have a valid access_token
And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "3"
Scenario: Change order the step
Given that I have a valid access_token
And PUT this data:
"""
{
"st_type": "BEFORE",
"st_position": "1"
}
"""
And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346"
Then the response status code should be 200
Scenario: List all the Sub Processs (result 0 Sub Processs)
Given that I have a valid access_token
And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "1"
Scenario: Change order the step
Given that I have a valid access_token
And PUT this data:
"""
{
"st_type": "BEFORE",
"st_position": "3"
}
"""
And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346"
Then the response status code should be 200
Scenario: List all the Sub Processs (result 0 Sub Processs)
Given that I have a valid access_token
And I request "project/106912358530c9b14ac15d3001790900/activity/467397212530c9b18435b87094293840/step/693874302530c9ba1734ad0026525748/trigger/659748303530c9b85af4d26007619346/before"
Then the response status code should be 200
And the response charset is "UTF-8"
And the type is "object"
And that "step_position" is set to "3"