diff --git a/tests/phpunit/FunctionalAbsTest.php b/tests/phpunit/FunctionalAbsTest.php index b469a57..d5cb697 100644 --- a/tests/phpunit/FunctionalAbsTest.php +++ b/tests/phpunit/FunctionalAbsTest.php @@ -237,38 +237,6 @@ public function testSuccessfulRunOnlyStructure(): void self::assertGreaterThan(0, count($events)); } - public function testBadBackupIdRun(): void - { - $fileSystem = new Filesystem(); - $fileSystem->dumpFile( - $this->temp->getTmpFolder() . '/config.json', - (string) json_encode([ - 'action' => 'run', - 'parameters' => [ - 'backupId' => $this->sapiClient->generateId(), - ], - 'image_parameters' => [ - 'storageBackendType' => Config::STORAGE_BACKEND_ABS, - 'accountName' => getenv('TEST_AZURE_ACCOUNT_NAME'), - '#accountKey' => getenv('TEST_AZURE_ACCOUNT_KEY'), - 'region' => getenv('TEST_AZURE_REGION'), - ], - ]), - ); - - $runProcess = $this->createTestProcess(); - $runProcess->run(); - - $this->assertEquals(1, $runProcess->getExitCode()); - - $output = $runProcess->getOutput(); - $errorOutput = $runProcess->getErrorOutput(); - - $this->assertEmpty($output); - $this->assertStringContainsString('The specified container', $errorOutput); - $this->assertStringContainsString('does not exist.', $errorOutput); - } - public function testRegionErrorRun(): void { $fileSystem = new Filesystem(); diff --git a/tests/phpunit/FunctionalS3Test.php b/tests/phpunit/FunctionalS3Test.php index 3dde0b4..43124b6 100644 --- a/tests/phpunit/FunctionalS3Test.php +++ b/tests/phpunit/FunctionalS3Test.php @@ -274,41 +274,6 @@ public function testSuccessfulRunOnlyStructure(): void self::assertGreaterThan(0, count($events)); } - public function testBadBackupIdRun(): void - { - $fileSystem = new Filesystem(); - $fileSystem->dumpFile( - $this->temp->getTmpFolder() . '/config.json', - (string) json_encode([ - 'action' => 'run', - 'parameters' => [ - 'backupId' => $this->sapiClient->generateId(), - ], - 'image_parameters' => [ - 'storageBackendType' => Config::STORAGE_BACKEND_S3, - 'access_key_id' => getenv('TEST_AWS_ACCESS_KEY_ID'), - '#secret_access_key' => getenv('TEST_AWS_SECRET_ACCESS_KEY'), - 'region' => getenv('TEST_AWS_REGION'), - '#bucket' => getenv('TEST_AWS_S3_BUCKET'), - ], - ]), - ); - - $runProcess = $this->createTestProcess(); - $runProcess->run(); - - $this->assertEquals(1, $runProcess->getExitCode()); - - $output = $runProcess->getOutput(); - $errorOutput = $runProcess->getErrorOutput(); - - $this->assertEmpty($output); - $this->assertStringMatchesFormat( - 'Backup path "%s" not found in the bucket "%s".', - trim($errorOutput), - ); - } - public function testCreateUnexistsBackupFolderS3(): void { $fileSystem = new Filesystem();