review address

Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
This commit is contained in:
nabim777
2024-12-13 15:59:17 +05:45
parent c42745e8d1
commit cf348c0f6e
3 changed files with 8 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ class SpacesTUSContext implements Context {
}
/**
* @When the public uploads a file from :source to :destination via TUS inside last link shared folder with password :password using the WebDAV API
* @When the public uploads file :source to :destination via TUS inside last link shared folder with password :password using the WebDAV API
*
* @param string $source
* @param string $destination
@@ -105,7 +105,7 @@ class SpacesTUSContext implements Context {
* @return void
* @throws Exception
*/
public function publicUploadsAFileViaTusInsideOfTheSpaceUsingTheWebdavApi(
public function thePublicUploadsFileViaTusInsideLastSharedFolderWithPasswordUsingTheWebdavApi(
string $source,
string $destination,
string $password

View File

@@ -352,10 +352,10 @@ class TUSContext implements Context {
* @return void
*/
public function publicUploadFileUsingTus(
string $source,
string $destination,
string $source,
string $destination,
string $password,
):void {
): void {
$password = $this->featureContext->getActualPassword($password);
if ($this->featureContext->isUsingSharingNG()) {
$token = $this->featureContext->shareNgGetLastCreatedLinkShareToken();

View File

@@ -412,7 +412,7 @@ Feature: upload resources on share using TUS protocol
| space | Personal |
| permissionsRole | createOnly |
| password | %public% |
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
When the public uploads file "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
And for user "Alice" folder "uploadFolder" of the space "Personal" should contain these files:
| textfile.txt |
And for user "Alice" folder "uploadFolder" of the space "Personal" should not contain these files:
@@ -429,7 +429,7 @@ Feature: upload resources on share using TUS protocol
| space | Project |
| permissionsRole | createOnly |
| password | %public% |
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
When the public uploads file "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
And for user "Alice" folder "uploadFolder" of the space "Project" should contain these files:
| textfile.txt |
And for user "Alice" folder "uploadFolder" of the space "Project" should not contain these files:
@@ -444,7 +444,7 @@ Feature: upload resources on share using TUS protocol
| space | Project |
| permissionsRole | createOnly |
| password | %public% |
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
When the public uploads file "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
Then for user "Alice" the space "Project" should contain these files:
| textfile.txt |
And for user "Alice" the space "Project" should not contain these files: