Jake Barnby
64a368ba3d
Merge remote-tracking branch 'origin/feat-db-tests' into feat-mongodb
...
# Conflicts:
# .github/workflows/tests.yml
# src/Appwrite/Utopia/Response.php
# src/Appwrite/Utopia/Response/Model/AttributeList.php
# tests/e2e/Client.php
# tests/e2e/Scopes/ProjectCustom.php
# tests/e2e/Services/Databases/DatabasesBase.php
# tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php
# tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php
# tests/e2e/Services/Databases/Legacy/DatabasesStringTypesTest.php
# tests/e2e/Services/Databases/TablesDB/DatabasesBase.php
# tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php
# tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php
# tests/e2e/Services/Databases/TablesDB/DatabasesStringTypesTest.php
# tests/e2e/Services/Databases/Transactions/TransactionsBase.php
# tests/e2e/Services/GraphQL/Legacy/DatabaseServerTest.php
# tests/e2e/Services/GraphQL/TablesDB/DatabaseServerTest.php
# tests/e2e/Services/Messaging/MessagingBase.php
# tests/e2e/Services/Sites/SitesBase.php
# tests/e2e/Services/Sites/SitesCustomServerTest.php
2026-02-18 03:27:23 +13:00
Jake Barnby
462ce71512
fix: Replace hardcoded mariadb dependencies with dynamic DB host in docker-compose
...
Four services (worker-screenshots, worker-executions, task-maintenance,
task-interval) had hardcoded `depends_on: mariadb` instead of using
`${_APP_DB_HOST:-mongodb}` like all other services. This caused ALL
PostgreSQL E2E tests to fail because those services couldn't start.
Also fix Storage test assertion that incorrectly used
getSupportForRelationships() as proxy for max UID length - the UID
validator always limits to 36 chars regardless of adapter.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-13 02:44:49 +13:00
Jake Barnby
de8915b416
fix: Make testListBucket self-sufficient for parallel execution
...
Create bucket1 within testListBucket instead of relying on
testCreateBucket running first. Accept 409 if bucket already exists.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 20:47:29 +13:00
Jake Barnby
fd8e8fc736
fix: Make Storage cursorAfter test parallel-safe
...
Use assertGreaterThanOrEqual and find bucket by ID instead of
assuming exact count and position after cursor query.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 20:42:43 +13:00
Jake Barnby
07c9a274b1
fix: Use assertGreaterThanOrEqual for fileSecurity bucket count
...
In parallel execution, there may be more buckets with fileSecurity=true
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 20:36:21 +13:00
Jake Barnby
a2ae55dcbe
fix: Improve parallel test isolation for Account, Storage, Messaging
...
- Account: Add createFreshAccountWithSession() for predictable session/log counts
- Account: Update testGetAccountSessions and testGetAccountLogs to use fresh accounts
- Storage: Fix testListBucket to find bucket by ID instead of assuming first position
- Messaging: Fix testListSubscribers to find subscriber by ID instead of assuming first position
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 20:24:28 +13:00
Jake Barnby
f624646480
perf: Remove @depends from Account, Functions, Storage, Users, VCS, Messaging tests
...
Added helper methods with static caching to enable parallel test execution.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-06 11:54:14 +13:00
Jake Barnby
e70739a3c0
Merge remote-tracking branch 'origin/1.8.x' into feat-mongodb
...
# Conflicts:
# Dockerfile
# app/controllers/api/account.php
# app/controllers/api/avatars.php
# app/controllers/api/console.php
# app/controllers/api/projects.php
# app/controllers/api/storage.php
# app/controllers/api/teams.php
# app/http.php
# app/init/database/filters.php
# app/init/registers.php
# app/init/resources.php
# app/views/install/compose.phtml
# composer.json
# composer.lock
# docker-compose.yml
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/Databases/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php
# src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Update.php
# src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php
# src/Appwrite/Platform/Tasks/Install.php
# tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
2026-02-05 01:01:03 +13:00
Jake Barnby
714b8d7ea6
Migrate to PHPUnit 11
2026-01-15 16:14:53 +13:00
Darshan
47ea8699d1
add: tests.
2026-01-07 18:05:33 +05:30
Darshan
f788fc8f8a
add: tests.
2026-01-03 15:42:55 +05:30
Jake Barnby
2776925540
Tests via console features
2025-11-25 21:11:01 +13:00
Jake Barnby
c89af1201a
Fix tests
2025-10-09 16:37:17 +13:00
Jake Barnby
6bacec52c5
Fix storage test
2025-10-01 17:11:02 +13:00
Jake Barnby
9e837c2eb9
Fix storage error
2025-10-01 12:31:02 +13:00
Torsten Dittmann
0a1d572c72
chore: run formatter
2024-03-06 18:34:21 +01:00
fogelito
dc203a494e
Syntax change
2023-12-20 12:55:09 +02:00
Steven Nguyen
aa3c2faed9
Merge tag '1.3.8' into cloud-1.3.x-2
2023-08-04 13:55:07 -07:00
Torsten Dittmann
6e5b8fab4b
fix: implement new framework changes
2023-03-01 17:30:36 +05:30
Damodar Lohani
5acd78463a
Merge remote-tracking branch 'origin/feat-db-pools' into feat-db-pools-master-sync
2023-02-16 00:44:29 +00:00
shimon
8d795ef483
addressing comments
2023-02-05 22:39:41 +02:00
shimon
5850a454e0
addressing comments
2023-02-05 22:07:46 +02:00
fogelito
b301a64dc4
clean up some use classes not in use
2022-12-21 10:02:22 +02:00
fogelito
91db596b42
remove static $dateValidator
2022-12-19 13:21:09 +02:00
fogelito
bdc3e9f935
$dateValidator
2022-12-15 10:51:27 +02:00
fogelito
f96128e14f
Changing Id
2022-12-14 17:42:25 +02:00
Matej Bačo
22f05b4cf8
Include new tests, fix existing
2022-08-24 11:55:43 +00:00
Matej Bačo
bd7395cb44
Bug fixing, upgrade tests to new syntax
2022-08-24 09:22:13 +00:00
Jake Barnby
6a5de3e0b6
Merge remote-tracking branch 'origin/fix-datetime-attributes' into refactor-permissions-inc-queries-update-datetime-fixes
...
# Conflicts:
# app/config/collections.php
# app/controllers/api/databases.php
# app/controllers/api/projects.php
# app/controllers/api/teams.php
# composer.json
# composer.lock
# tests/e2e/Services/Account/AccountBase.php
# tests/e2e/Services/Databases/DatabasesBase.php
# tests/e2e/Services/Functions/FunctionsCustomServerTest.php
# tests/e2e/Services/Projects/ProjectsConsoleClientTest.php
# tests/e2e/Services/Storage/StorageBase.php
# tests/e2e/Services/Storage/StorageCustomClientTest.php
# tests/e2e/Services/Storage/StorageCustomServerTest.php
# tests/e2e/Services/Teams/TeamsBase.php
# tests/e2e/Services/Webhooks/WebhooksBase.php
# tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php
# tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php
# tests/unit/Auth/AuthTest.php
2022-08-14 23:11:05 +12:00
Jake Barnby
b007acfa95
ID updates
2022-08-14 22:33:36 +12:00
Jake Barnby
09b001e891
PR fixes
2022-08-13 02:41:57 +12:00
Jake Barnby
a61fd030ff
Fix storage tests
2022-08-09 19:11:30 +12:00
Jake Barnby
1ab86c9331
Role reference updates
2022-08-03 16:17:49 +12:00
Jake Barnby
4520114780
Refactor storage to use new permissions
2022-08-02 21:19:15 +12:00
fogelito
f676a0bf9e
change test validations from strings to datetime
2022-07-12 19:44:58 +03:00
fogelito
e07e5b5cf8
changing datetime from timestamp to datetime
2022-07-01 15:01:14 +03:00
Torsten Dittmann
bbdf70ee90
feat: use new $createdAt and $updatedAt attributes
2022-06-15 14:46:52 +02:00
Everly Precia Suresh
19300ccdd7
format files in app, src, tests
2022-05-23 14:54:50 +00:00
Damodar Lohani
6a5daf1509
remove adapter attribute from test
2022-01-31 16:19:31 +05:45
Damodar Lohani
e3bc0b48e9
fix removed and reordered attributes
2022-01-31 16:17:29 +05:45
Damodar Lohani
dedc2806af
fix missing permission for update
2022-01-27 15:51:33 +05:45
Damodar Lohani
1e3514b7b2
update antiVirus to antivirus for consistency
2022-01-16 13:40:55 +05:45
Damodar Lohani
cecc863717
fix storage tests
2021-10-17 12:57:59 +05:45
Damodar Lohani
5475bd104b
update bucket permission model similarly to collections permission model
2021-09-30 12:30:14 +05:45
Damodar Lohani
f230c5b340
storage after pagination test
2021-09-02 15:56:10 +05:45
Damodar Lohani
1edf1a7ba1
custom ID and after pagination
2021-09-02 14:15:10 +05:45
Damodar Lohani
8c30043bd3
delete bucket endpoint and test
2021-06-17 12:39:56 +05:45
Damodar Lohani
dca5c3491b
update bucket endpoint and test
2021-06-17 12:39:56 +05:45
Damodar Lohani
30ec6fcaae
create bucket validating all fields
2021-06-16 11:39:19 +05:45
Damodar Lohani
1bf770ed34
moving storage buckets test to server scope
2021-06-16 11:35:40 +05:45