Merge pull request #105 from opencloud-eu/run_core_tests
run all core tests
This commit is contained in:
@@ -279,7 +279,7 @@ Feature: checksums
|
|||||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||||
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/textfile0.txt" with checksum "SHA1:f005ba11f005ba11f005ba11f005ba11f005ba11" using the WebDAV API
|
When user "Alice" uploads file "filesForUpload/textfile.txt" to "/textfile0.txt" with checksum "SHA1:f005ba11f005ba11f005ba11f005ba11f005ba11" using the WebDAV API
|
||||||
Then the HTTP status code should be "400"
|
Then the HTTP status code should be "400"
|
||||||
And as user "Alice" the webdav checksum of "/textfile0.txt" via propfind should match "SHA1:2052377dec0724bda0d57aeab67fa819278b7f74 MD5:096e350e9ff1339a997a14145f9fc4b9 ADLER32:7d5a0921"
|
And as user "Alice" the webdav checksum of "/textfile0.txt" via propfind should match "SHA1:294acb3a34f7e11f8eac865183d30aac04fba0c7 MD5:7f41994bdd25f722cd715bb376eff10e ADLER32:83ca095f"
|
||||||
And the content of file "/textfile0.txt" for user "Alice" should be "OpenCloud test text file 0"
|
And the content of file "/textfile0.txt" for user "Alice" should be "OpenCloud test text file 0"
|
||||||
Examples:
|
Examples:
|
||||||
| dav-path-version |
|
| dav-path-version |
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ Feature: download file
|
|||||||
Then the HTTP status code should be "200"
|
Then the HTTP status code should be "200"
|
||||||
And the following headers should be set
|
And the following headers should be set
|
||||||
| header | value |
|
| header | value |
|
||||||
| Content-Length | 9622 |
|
| Content-Length | 17684 |
|
||||||
Examples:
|
Examples:
|
||||||
| dav-path-version |
|
| dav-path-version |
|
||||||
| old |
|
| old |
|
||||||
@@ -83,7 +83,7 @@ Feature: download file
|
|||||||
Then the HTTP status code should be "200"
|
Then the HTTP status code should be "200"
|
||||||
And the following headers should be set
|
And the following headers should be set
|
||||||
| header | value |
|
| header | value |
|
||||||
| Content-Length | 35323 |
|
| Content-Length | 47488 |
|
||||||
Examples:
|
Examples:
|
||||||
| dav-path-version |
|
| dav-path-version |
|
||||||
| old |
|
| old |
|
||||||
@@ -219,7 +219,7 @@ Feature: download file
|
|||||||
And the following headers should be set
|
And the following headers should be set
|
||||||
| header | value |
|
| header | value |
|
||||||
| Content-Disposition | attachment; filename*=UTF-8''<encoded-file-name>; filename="<file-name>" |
|
| Content-Disposition | attachment; filename*=UTF-8''<encoded-file-name>; filename="<file-name>" |
|
||||||
| Content-Security-Policy | child-src 'self'; connect-src 'self' blob: https://raw.githubusercontent.com/opencloud-eu/awesome-opencloud/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob: https://raw.githubusercontent.com/opencloud-eu/awesome-opencloud/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' |
|
| Content-Security-Policy | child-src 'self'; connect-src 'self' blob: https://raw.githubusercontent.com/opencloud-eu/awesome/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob: https://raw.githubusercontent.com/opencloud-eu/awesome/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' |
|
||||||
| X-Content-Type-Options | nosniff |
|
| X-Content-Type-Options | nosniff |
|
||||||
| X-Frame-Options | SAMEORIGIN |
|
| X-Frame-Options | SAMEORIGIN |
|
||||||
| X-Permitted-Cross-Domain-Policies | none |
|
| X-Permitted-Cross-Domain-Policies | none |
|
||||||
@@ -247,7 +247,7 @@ Feature: download file
|
|||||||
And the following headers should be set
|
And the following headers should be set
|
||||||
| header | value |
|
| header | value |
|
||||||
| Content-Disposition | attachment; filename*=UTF-8''%22quote%22double%22.txt; filename=""quote"double".txt" |
|
| Content-Disposition | attachment; filename*=UTF-8''%22quote%22double%22.txt; filename=""quote"double".txt" |
|
||||||
| Content-Security-Policy | child-src 'self'; connect-src 'self' blob: https://raw.githubusercontent.com/opencloud-eu/awesome-opencloud/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob: https://raw.githubusercontent.com/opencloud-eu/awesome-opencloud/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' |
|
| Content-Security-Policy | child-src 'self'; connect-src 'self' blob: https://raw.githubusercontent.com/opencloud-eu/awesome/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/; img-src 'self' data: blob: https://raw.githubusercontent.com/opencloud-eu/awesome/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' |
|
||||||
| X-Content-Type-Options | nosniff |
|
| X-Content-Type-Options | nosniff |
|
||||||
| X-Frame-Options | SAMEORIGIN |
|
| X-Frame-Options | SAMEORIGIN |
|
||||||
| X-Permitted-Cross-Domain-Policies | none |
|
| X-Permitted-Cross-Domain-Policies | none |
|
||||||
|
|||||||
@@ -3,10 +3,12 @@
|
|||||||
# LOCAL TEST WITHOUT EXTRA ENVS
|
# LOCAL TEST WITHOUT EXTRA ENVS
|
||||||
TEST_SERVER_URL="https://localhost:9200"
|
TEST_SERVER_URL="https://localhost:9200"
|
||||||
EXPECTED_FAILURES_FILE="tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md"
|
EXPECTED_FAILURES_FILE="tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md"
|
||||||
|
EXPECTED_FAILURES_FILE_FROM_CORE="tests/acceptance/expected-failures-API-on-OCIS-storage.md"
|
||||||
|
|
||||||
# List of suites to run
|
# List of suites to run
|
||||||
SUITES=(
|
SUITES=(
|
||||||
"apiArchiver"
|
"apiArchiver"
|
||||||
|
"coreApiAuth"
|
||||||
"apiContract"
|
"apiContract"
|
||||||
"apiCors"
|
"apiCors"
|
||||||
"apiAsyncUpload"
|
"apiAsyncUpload"
|
||||||
@@ -32,6 +34,37 @@ SUITES=(
|
|||||||
"apiAccountsHashDifficulty"
|
"apiAccountsHashDifficulty"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# List of suites from core
|
||||||
|
CORE_SUITES=(
|
||||||
|
"coreApiAuth"
|
||||||
|
"coreApiCapabilities"
|
||||||
|
"coreApiFavorites"
|
||||||
|
"coreApiMain"
|
||||||
|
"coreApiShareCreateSpecialToShares1"
|
||||||
|
"coreApiShareCreateSpecialToShares2"
|
||||||
|
"coreApiSharees"
|
||||||
|
"coreApiShareManagementBasicToShares"
|
||||||
|
"coreApiShareManagementToShares"
|
||||||
|
"coreApiShareOperationsToShares1"
|
||||||
|
"coreApiShareOperationsToShares2"
|
||||||
|
"coreApiSharePublicLink1"
|
||||||
|
"coreApiSharePublicLink2"
|
||||||
|
"coreApiShareUpdateToShares"
|
||||||
|
"coreApiTrashbin"
|
||||||
|
"coreApiTrashbinRestore"
|
||||||
|
"coreApiVersions"
|
||||||
|
"coreApiWebdavDelete"
|
||||||
|
"coreApiWebdavEtagPropagation1"
|
||||||
|
"coreApiWebdavEtagPropagation2"
|
||||||
|
"coreApiWebdavMove1"
|
||||||
|
"coreApiWebdavMove2"
|
||||||
|
"coreApiWebdavOperations"
|
||||||
|
"coreApiWebdavPreviews"
|
||||||
|
"coreApiWebdavProperties"
|
||||||
|
"coreApiWebdavUpload"
|
||||||
|
"coreApiWebdavUploadTUS"
|
||||||
|
)
|
||||||
|
|
||||||
# Create log directory
|
# Create log directory
|
||||||
LOG_DIR="./suite-logs"
|
LOG_DIR="./suite-logs"
|
||||||
mkdir -p "$LOG_DIR"
|
mkdir -p "$LOG_DIR"
|
||||||
@@ -59,6 +92,26 @@ for SUITE in "${SUITES[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for SUITE in "${CORE_SUITES[@]}"; do
|
||||||
|
echo "=============================================="
|
||||||
|
echo "Running suite: $SUITE"
|
||||||
|
echo "=============================================="
|
||||||
|
|
||||||
|
LOG_FILE="$LOG_DIR/${SUITE}.log"
|
||||||
|
|
||||||
|
# Run suite
|
||||||
|
make test-acceptance-api TEST_SERVER_URL=$TEST_SERVER_URL EXPECTED_FAILURES_FILE=$EXPECTED_FAILURES_FILE_FROM_CORE BEHAT_SUITE=$SUITE > "$LOG_FILE" 2>&1
|
||||||
|
|
||||||
|
# Check if suite was successful
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "✅ Suite $SUITE completed successfully."
|
||||||
|
((SUCCESS_COUNT++))
|
||||||
|
else
|
||||||
|
echo "❌ Suite $SUITE failed. Check log: $LOG_FILE"
|
||||||
|
((FAILURE_COUNT++))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Report summary
|
# Report summary
|
||||||
echo "=============================================="
|
echo "=============================================="
|
||||||
echo "Test Summary:"
|
echo "Test Summary:"
|
||||||
|
|||||||
Reference in New Issue
Block a user