Skip to content

Commit

Permalink
Do not use skeleton files in local API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Sep 12, 2020
1 parent d2f63ee commit e74e672
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Feature: auth

Background:
Given user "Alice" has been created with default attributes and skeleton files
Given user "Alice" has been created with default attributes and without skeleton files

@issue-ocis-reva-29
@issue-ocis-reva-30
Expand Down Expand Up @@ -179,7 +179,7 @@ Feature: auth
@smokeTest
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario: using OCS as normal user (username does not have a capital letter) with wrong password
Given user "brian" has been created with default attributes and skeleton files
Given user "brian" has been created with default attributes and without skeleton files
When user "brian" requests these endpoints with "GET" using password "invalid"
| endpoint |
| /ocs/v1.php/cloud/users |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Feature: auth

Background:
Given user "Alice" has been created with default attributes and skeleton files
Given user "Alice" has been created with default attributes and without skeleton files

@issue-ocis-ocs-26 @issue-ocis-reva-30
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Feature: sharing
@issue-ocis-reva-356
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: delete a share
Given user "Alice" has been created with default attributes and skeleton files
Given user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
And user "Brian" has been created with default attributes and without skeleton files
And using OCS API version "<ocs_api_version>"
And user "Alice" has shared file "textfile0.txt" with user "Brian"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
Feature: sharing

Background:
Given these users have been created with default attributes and skeleton files:
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |
And user "Alice" has uploaded file with content "ownCloud test text file 0 Alice" to "/textfile0.txt"
And user "Alice" has uploaded file with content "ownCloud test text file 1 Alice" to "/textfile1.txt"
And user "Brian" has uploaded file with content "ownCloud test text file 0 Brian" to "/textfile0.txt"
And user "Brian" has uploaded file with content "ownCloud test text file 1 Brian" to "/textfile1.txt"

@issue-ocis-reva-260
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
Feature: sharing

Background:
Given these users have been created with default attributes and skeleton files:
| username |
| Alice |
| Brian |
Given user "Alice" has been created with default attributes and without skeleton files
And user "Brian" has been created with default attributes and without skeleton files

@issue-ocis-reva-374
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: Get a share with a user that didn't receive the share
Given using OCS API version "<ocs_api_version>"
Given user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
And using OCS API version "<ocs_api_version>"
And user "Carol" has been created with default attributes and without skeleton files
And user "Alice" has shared file "textfile0.txt" with user "Brian"
When user "Carol" gets the info of the last share using the sharing API
Expand All @@ -25,7 +24,9 @@ Feature: sharing
@issue-ocis-reva-372
# after fixing all issues delete this Scenario and use the one from oC10 core
Scenario Outline: getting all the shares inside the folder
Given using OCS API version "<ocs_api_version>"
Given user "Alice" has created folder "/PARENT"
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
And using OCS API version "<ocs_api_version>"
And user "Alice" has shared file "PARENT/parent.txt" with user "Brian"
When user "Alice" gets all the shares inside the folder "PARENT/parent.txt" using the sharing API
Then the OCS status code should be "<ocs_status_code>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Feature: create a public link share

Background:
Given user "Alice" has been created with default attributes and skeleton files
Given user "Alice" has been created with default attributes and without skeleton files

@issue-37605 @skipOnOcis-OCIS-Storage
# after fixing all issues make the oC10 scenario like this one, and delete this scenario
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Feature: update a public link share

Background:
Given using OCS API version "1"
And user "Alice" has been created with default attributes and skeleton files
And user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/FOLDER"

@issue-ocis-reva-243 @issue-ocis-reva-349 @issue-37653
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Feature: upload to a public link share

Background:
Given user "Alice" has been created with default attributes and skeleton files
Given user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/FOLDER"

@issue-ocis-reva-290
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: sharing

Background:
Given using OCS API version "1"
And user "Alice" has been created with default attributes and skeleton files
And user "Alice" has been created with default attributes and without skeleton files

@skipOnOcis-EOS-Storage @toFixOnOCIS @issue-ocis-reva-243 @skipOnOcis-OCIS-Storage
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Feature: move (rename) file

Background:
Given using OCS API version "1"
And user "Alice" has been created with default attributes and skeleton files
And user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "some welcome data" to "/welcome.txt"

@issue-ocis-reva-211 @skipOnOcis-OCIS-Storage
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Feature: users cannot move (rename) a file to a blacklisted name

Background:
Given using OCS API version "1"
And user "Alice" has been created with default attributes and skeleton files
And user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "some welcome data" to "/welcome.txt"

@issue-ocis-reva-211 @skipOnOcis-OCIS-Storage
# after fixing all issues delete this Scenario and use the one from oC10 core
Expand Down

0 comments on commit e74e672

Please sign in to comment.