diff --git a/tests/acceptance/features/api/directUpload.feature b/tests/acceptance/features/api/directUpload.feature index 56337a167..a8b50ce48 100644 --- a/tests/acceptance/features/api/directUpload.feature +++ b/tests/acceptance/features/api/directUpload.feature @@ -33,14 +33,14 @@ Feature: API endpoint for direct upload } """ And the content of file at "" for user "Carol" should be "some data" - Examples: - | valid-file-name | file-name | pattern | - | textfile0.txt | textfile0.txt | textfile0\\.txt | - | असजिलो file | असजिलो file | असजिलो file | - | ?&$%?§ file.txt | ?&$%?§ file.txt | \\?\\&\\$\\%\\?§ file\\.txt | - | ../textfile.txt | textfile.txt | textfile\\.txt | - | folder/testfile.txt | testfile.txt | testfile\\.txt | - | text\file.txt | file.txt | file\\.txt | + Examples: + | valid-file-name | file-name | pattern | + | textfile0.txt | textfile0.txt | textfile0\\.txt | + | असजिलो file | असजिलो file | असजिलो file | + | ?&$%?§ file.txt | ?&$%?§ file.txt | \\?\\&\\$\\%\\?§ file\\.txt | + | ../textfile.txt | textfile.txt | textfile\\.txt | + | folder/testfile.txt | testfile.txt | testfile\\.txt | + | text\file.txt | file.txt | file\\.txt | Scenario: Send an invalid filename to the direct-upload endpoint diff --git a/tests/acceptance/features/bootstrap/FeatureContext.php b/tests/acceptance/features/bootstrap/FeatureContext.php index a687fee75..f2940f1ed 100644 --- a/tests/acceptance/features/bootstrap/FeatureContext.php +++ b/tests/acceptance/features/bootstrap/FeatureContext.php @@ -539,6 +539,8 @@ private function getJSONSchema(PyStringNode $schemaString) { $schemaRawString = $schemaString->getRaw(); $schemaRawString = $this->replaceInlineCodes($schemaRawString); $schema = json_decode($schemaRawString); + echo("-----------\n"); + print_r($schema); Assert::assertNotNull($schema, 'schema is not valid JSON'); return $schema; } @@ -570,6 +572,7 @@ public function theDataOfTheResponseShouldMatch( PyStringNode $schemaString ): void { $_responseAsJson = json_decode($this->response->getBody()->getContents()); + print_r($_responseAsJson); JsonAssertions::assertJsonDocumentMatchesSchema( $_responseAsJson, $this->getJSONSchema($schemaString)