diff --git a/tests/acceptance/features/coreApiSharePublicLink1/deletePublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/deletePublicLinkShare.feature index d4fc1834e8..d00f6f48bf 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/deletePublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/deletePublicLinkShare.feature @@ -10,10 +10,12 @@ Feature: delete a public link share Scenario Outline: deleting a public link of a file Given using OCS API version "" And user "Alice" has uploaded file with content "This is a test file" to "test-file.txt" - And user "Alice" has created a public link share with settings - | path | test-file.txt | - | name | sharedlink | - | password | %public% | + And user "Alice" has created the following resource link share: + | resource | test-file.txt | + | space | Personal | + | permissionsRole | edit | + | password | %public% | + | displayName | sharedlink | When user "Alice" deletes public link share named "sharedlink" in file "test-file.txt" using the sharing API Then the HTTP status code should be "200" And the OCS status code should be "" @@ -27,12 +29,14 @@ Feature: delete a public link share Scenario Outline: deleting a public link after renaming a file Given using OCS API version "" And user "Alice" has uploaded file with content "This is a test file" to "test-file.txt" - And user "Alice" has created a public link share with settings - | path | test-file.txt | - | name | sharedlink | - | password | %public% | - When user "Alice" moves file "/test-file.txt" to "/renamed-test-file.txt" using the WebDAV API - And user "Alice" deletes public link share named "sharedlink" in file "renamed-test-file.txt" using the sharing API + And user "Alice" has created the following resource link share: + | resource | test-file.txt | + | space | Personal | + | permissionsRole | edit | + | password | %public% | + | displayName | sharedlink | + And user "Alice" has moved file "/test-file.txt" to "/renamed-test-file.txt" + When user "Alice" deletes public link share named "sharedlink" in file "renamed-test-file.txt" using the sharing API Then the OCS status code should be "" And the HTTP status code should be "200" And as user "Alice" the file "renamed-test-file.txt" should not have any shares @@ -45,10 +49,12 @@ Feature: delete a public link share Scenario Outline: deleting a public link of a folder Given using OCS API version "" And user "Alice" has created folder "test-folder" - And user "Alice" has created a public link share with settings - | path | /test-folder | - | name | sharedlink | - | password | %public% | + And user "Alice" has created the following resource link share: + | resource | test-folder | + | space | Personal | + | permissionsRole | edit | + | password | %public% | + | displayName | sharedlink | When user "Alice" deletes public link share named "sharedlink" in folder "test-folder" using the sharing API Then the HTTP status code should be "200" And the OCS status code should be "" @@ -63,10 +69,12 @@ Feature: delete a public link share Given using OCS API version "" And user "Alice" has created folder "test-folder" When user "Alice" uploads file "filesForUpload/textfile.txt" to "/test-folder/testfile.txt" using the WebDAV API - And user "Alice" has created a public link share with settings - | path | /test-folder/testfile.txt | - | name | sharedlink | - | password | %public% | + And user "Alice" has created the following resource link share: + | resource | test-folder/testfile.txt | + | space | Personal | + | permissionsRole | edit | + | password | %public% | + | displayName | sharedlink | And user "Alice" deletes public link share named "sharedlink" in file "/test-folder/testfile.txt" using the sharing API Then the HTTP status code should be "200" And the OCS status code should be ""