Safwan Parkar
451f4bee19
Fixed an incorrect test for team deletion
...
This commit contains changes in 3 places.
- First I changed the placement of an informative comment in the DELETE TEAM controller, and moved it outside of the loop. I did this when Steven pointed out that the behaviour I describe in the comment is for the whole loop.
- The second change is the removal of my first test. I was facing quite a few issues with creating users in the test, and ended up using the CREATE TEAM MEMBERSHIP to perform 2 actions at once -> create a new user if one doesn't exist with the provided email, and create a membership for the user. Before this approach, I had quite a bit of code that didn't work, and it seems like I removed some things that weren't supposed to be removed, and didn't change variable names where necessary. Anyway, I figured that the problem has something to do with the user being created on the client side, so I moved the test to the server side.
- The new test I implemented does the same thing as my previous failed test, but in more detailed and distinct steps. The test first creates 5 new users inside of a loop, and pushes each new user's ID to an array called 'new_users' if the response is as expected. Then a new team is created. The next step is to create memberships for all 5 users. If all these steps pass, the new team that was just created, is deleted, and we check to make sure the new users have 0 team memberships each.
Formatter and linter showed no errors. Tests were successful on localhost.
2023-08-04 15:40:42 +04:00
Safwan Parkar
06e1191063
added test
2023-08-04 00:34:01 +04:00
jaivix
b78401923f
test case minor fix
2023-07-13 12:10:52 +05:30
jaivix
a6671a5caa
fixed team creation response if teamId already exists
2023-07-09 16:50:09 +05:30
Torsten Dittmann
10cd97e978
Merge branch '1.3.x' of https://github.com/appwrite/appwrite into feat-team-prefs
2023-03-23 13:03:50 +01:00
Torsten Dittmann
bfdb7830d0
fix: update team prefs endpoint
2023-03-14 04:40:17 +05:30
Torsten Dittmann
496da61cd9
feat: team preferences
2023-03-06 19:54:02 +05:30
Torsten Dittmann
6e5b8fab4b
fix: implement new framework changes
2023-03-01 17:30:36 +05:30
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
Christy Jacob
7591f68970
Merge pull request #3702 from appwrite/feat-list-endpoints-queries
...
Feat: List endpoint queries
2022-08-30 14:56:09 +02:00
Jake Barnby
44970cc628
Sync master
2022-08-28 11:01:46 +12:00
Matej Bačo
25590cc210
Add list queries test for databases
2022-08-24 12:43:07 +00: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
564f5dbf64
Find replace fix
2022-08-15 23:40:41 +12:00
Jake Barnby
77a28a2de7
Don't use ID helper with existing ID's
2022-08-15 23:24:31 +12: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
d9f0ece812
Remove new properties from DB level
2022-08-04 12:08:16 +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
Matej Baco
56bf7a51df
Refactored 'sum' to 'total'
2022-02-27 10:57:09 +01:00
Torsten Dittmann
9941198a7f
Merge branch 'feat-database-indexing' of https://github.com/appwrite/appwrite into feat-before-pagination
2021-10-06 16:11:04 +02:00
Torsten Dittmann
33699ea2c4
feat(controllers): implement before cursor pagination
2021-10-05 12:30:33 +02:00
Matej Baco
fce5e3e96c
Removed PHPStorm-generated stuff 2
2021-09-21 10:27:31 +02:00
Matej Baco
732c59a03d
Implemented search tests
2021-09-21 10:22:13 +02:00
Torsten Dittmann
69e5194dd6
tests(teams): after pagination tests
2021-08-09 15:04:14 +02:00
Damodar Lohani
825788c05b
fix naming
2021-07-19 13:38:57 +05:45
Damodar Lohani
0460882723
fix tests
2021-07-19 13:35:51 +05:45
Damodar Lohani
d6204e5ed2
fix tests
2021-07-19 12:44:12 +05:45
Eldad Fux
e009f9c60b
Updated tests folder
2020-10-27 21:48:38 +02:00
Eldad Fux
b7fe52ad54
Updated tests
2020-10-15 00:11:12 +03:00
Eldad Fux
af9b76e8c0
Fixed tests
2020-07-08 17:17:02 +03:00
Eldad Fux
a3f23b93ef
Fixed teams test
2020-07-08 16:02:01 +03:00
Eldad Fux
46cfa9ee92
Updated $uid to $id
2020-02-17 09:16:11 +02:00
Eldad Fux
5e4c124cae
New invite tests
2020-01-19 14:22:54 +02:00
Eldad Fux
e745a8e5b5
Updated teams tests
2020-01-18 22:02:47 +02:00
Eldad Fux
81805d0c62
Added tests
2020-01-18 18:03:17 +02:00
Eldad Fux
f034d1024d
wip
2020-01-18 16:47:08 +02:00
Eldad Fux
3a68c963fe
wip
2020-01-18 16:00:15 +02:00
Eldad Fux
f0edf47f4f
Added e2e tests to teams service
2020-01-16 16:06:28 +02:00