Skip to content

Commit

Permalink
YDA-5778: Folder with apostrophe api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
claravox authored and lwesterhof committed Jul 23, 2024
1 parent f79ffe8 commit 4e7169a
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions tests/features/api/api_research.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ Feature: Research API
| /tempZone/home/research-initial | api_test_1234567890 |


Scenario Outline: Research folder with apostrophe add
Given user researcher is authenticated
And the Yoda research folder add API is queried with <folder> and <collection>
Then the response status code is "400"
And folder <folder> does not exist in <collection>

Examples:
| collection | folder |
| /tempZone/home/research-initial | api_test_folder's |


@deposit
Scenario Outline: Deposit folder with apostrophe add
Given user researcher is authenticated
And the Yoda research folder add API is queried with <folder> and <collection>
Then the response status code is "400"
And folder <folder> does not exist in <collection>

Examples:
| collection | folder |
| /tempZone/home/deposit-pilot | api_test_folder's |


Scenario Outline: Research folder copy
Given user researcher is authenticated
And the Yoda research folder copy API is queried with <folder>, <copy>, and <collection>
Expand All @@ -34,6 +57,18 @@ Feature: Research API
| /tempZone/home/research-initial | api_test_copy | api_test_move1 |


Scenario Outline: Research folder copy with apostrophe
Given user researcher is authenticated
And the Yoda research folder copy API is queried with <folder>, <copy>, and <collection>
Then the response status code is "400"
And folder <folder> exists in <collection>
And folder <copy> does not exist in <collection>

Examples:
| collection | folder | copy |
| /tempZone/home/research-initial | api_test_copy | api_test_copy2's |


Scenario Outline: Research folder move
Given user researcher is authenticated
And the Yoda research folder move API is queried with <folder>, <move>, and <collection>
Expand All @@ -46,6 +81,17 @@ Feature: Research API
| /tempZone/home/research-initial | api_test_move1 | api_test_move2 |


Scenario Outline: Research folder move with apostrophe
Given user researcher is authenticated
And the Yoda research folder move API is queried with <folder>, <move>, and <collection>
Then the response status code is "400"
And folder <move> does not exist in <collection>

Examples:
| collection | folder | move |
| /tempZone/home/research-initial | api_test_move1 | api_test_move2's |


Scenario Outline: Research folder rename
Given user researcher is authenticated
And the Yoda research folder rename API is queried with <folder_old>, <folder> and <collection>
Expand All @@ -58,6 +104,18 @@ Feature: Research API
| /tempZone/home/research-initial | api_test_folder | api_test_folder_renamed |


Scenario Outline: Research folder rename with apostrophe
Given user researcher is authenticated
And the Yoda research folder rename API is queried with <folder_old>, <folder> and <collection>
Then the response status code is "400"
And folder <folder_old> exists in <collection>
And folder <folder> does not exist in <collection>

Examples:
| collection | folder_old | folder |
| /tempZone/home/research-initial | api_test_folder_renamed | api_test_folder_renamed's |


Scenario Outline: Research file copy
Given user researcher is authenticated
And the Yoda research file copy API is queried with <file>, <copy>, <copy_collection> and <collection>
Expand Down

0 comments on commit 4e7169a

Please sign in to comment.