From 32b9a9e90bd334d527b289364c90a5ca44dbe997 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Thu, 23 Feb 2023 12:51:23 +0545 Subject: [PATCH] Removed occ invoking command steps --- .../features/bootstrap/OccContext.php | 90 ------------------- .../trashbinFilesFolders.feature | 1 - .../trashbinRestore.feature | 2 - 3 files changed, 93 deletions(-) diff --git a/tests/acceptance/features/bootstrap/OccContext.php b/tests/acceptance/features/bootstrap/OccContext.php index 88e90977f92..0e5bf659c7f 100644 --- a/tests/acceptance/features/bootstrap/OccContext.php +++ b/tests/acceptance/features/bootstrap/OccContext.php @@ -543,49 +543,6 @@ public function listLocalStorageShowPassword():void { $this->invokingTheCommand('files_external:list --show-password --output=json'); } - /** - * @When /^the administrator invokes occ command "([^"]*)"$/ - * - * @param string $cmd - * - * @return void - * @throws Exception - */ - public function theAdministratorInvokesOccCommand(string $cmd):void { - $this->invokingTheCommand($cmd); - } - - /** - * @When /^the administrator invokes occ command "([^"]*)" for user "([^"]*)"$/ - * - * @param string $cmd - * @param string $user - * - * @return void - * @throws Exception - */ - public function theAdministratorInvokesOccCommandForUser(string $cmd, string $user):void { - $user = $this->featureContext->getActualUsername($user); - $cmd = $this->featureContext->substituteInLineCodes( - $cmd, - $user - ); - $this->invokingTheCommand($cmd); - } - - /** - * @Given /^the administrator has invoked occ command "([^"]*)"$/ - * - * @param string $cmd - * - * @return void - * @throws Exception - */ - public function theAdministratorHasInvokedOccCommand(string $cmd):void { - $this->invokingTheCommand($cmd); - $this->theCommandShouldHaveBeenSuccessful(); - } - /** * @Given the administrator has selected master key encryption type using the occ command * @@ -634,53 +591,6 @@ public function theAdministratorRemovesTheSecurityCertificate(string $certificat \array_push($this->removedCertificates, $certificate); } - /** - * @When /^the administrator invokes occ command "([^"]*)" with environment variable "([^"]*)" set to "([^"]*)"$/ - * - * @param string $cmd - * @param string $envVariableName - * @param string $envVariableValue - * - * @return void - * @throws Exception - */ - public function theAdministratorInvokesOccCommandWithEnvironmentVariable( - string $cmd, - string $envVariableName, - string $envVariableValue - ):void { - $this->featureContext->setOccLastCode( - $this->invokingTheCommandWithEnvVariable( - $cmd, - $envVariableName, - $envVariableValue - ) - ); - } - - /** - * @Given /^the administrator has invoked occ command "([^"]*)" with environment variable "([^"]*)" set to "([^"]*)"$/ - * - * @param string $cmd - * @param string $envVariableName - * @param string $envVariableValue - * - * @return void - * @throws Exception - */ - public function theAdministratorHasInvokedOccCommandWithEnvironmentVariable( - string $cmd, - string $envVariableName, - string $envVariableValue - ):void { - $this->invokingTheCommandWithEnvVariable( - $cmd, - $envVariableName, - $envVariableValue - ); - $this->theCommandShouldHaveBeenSuccessful(); - } - /** * @When the administrator runs upgrade routines on local server using the occ command * diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature index 314d05acf3c..a1a8f04fb86 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature @@ -161,7 +161,6 @@ Feature: files and folders exist in the trashbin after being deleted @local_storage @files_external-app-required @skipOnEncryptionType:user-keys @encryption-issue-42 @skip_on_objectstore Scenario Outline: Deleting a folder into external storage moves it to the trashbin Given using DAV path - And the administrator has invoked occ command "files:scan --all" And user "Alice" has created folder "/local_storage/tmp" And user "Alice" has moved file "/textfile0.txt" to "/local_storage/tmp/textfile0.txt" When user "Alice" deletes folder "/local_storage/tmp" using the WebDAV API diff --git a/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature b/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature index 05a1b50c9c3..cc5ba2002e8 100644 --- a/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature +++ b/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature @@ -133,7 +133,6 @@ Feature: Restore deleted files/folders @local_storage @files_external-app-required @skipOnEncryptionType:user-keys @encryption-issue-42 @skip_on_objectstore Scenario Outline: Deleting a file into external storage moves it to the trashbin and can be restored Given using DAV path - And the administrator has invoked occ command "files:scan --all" And user "Alice" has created folder "/local_storage/tmp" And user "Alice" has moved file "/textfile0.txt" to "/local_storage/tmp/textfile0.txt" And user "Alice" has deleted file "/local_storage/tmp/textfile0.txt" @@ -156,7 +155,6 @@ Feature: Restore deleted files/folders @local_storage @files_external-app-required @skipOnEncryptionType:user-keys @encryption-issue-42 @skip_on_objectstore Scenario: Deleting an updated file into external storage moves it to the trashbin and can be restored Given using old DAV path - And the administrator has invoked occ command "files:scan --all" And user "Alice" has created folder "/local_storage/tmp" And user "Alice" has moved file "/textfile0.txt" to "/local_storage/tmp/textfile0.txt" And user "Alice" has uploaded chunk file "1" of "1" with "AA" to "/local_storage/tmp/textfile0.txt"