Commit Graph

175 Commits

Author SHA1 Message Date
Girish Ramakrishnan
414b21f29a add sysadmin route test 2016-04-15 12:33:54 -07:00
Girish Ramakrishnan
c4c7668b5a Use new env vars 2016-04-15 11:57:51 -07:00
Girish Ramakrishnan
ed78bd05c8 reserve the "admin" username 2016-04-13 16:50:20 -07:00
Johannes Zellner
de2cde7333 Test oauth with mixed case username and email 2016-04-13 12:48:02 +02:00
Johannes Zellner
be3b08a7b4 Test case-insensitive developer login 2016-04-13 12:39:50 +02:00
Johannes Zellner
2724cfd0ad Test simpleauth with uppercase username input 2016-04-13 12:30:55 +02:00
Johannes Zellner
11f89da3a0 Ensure username and email are treated lower case in the database layer 2016-04-13 12:15:49 +02:00
Johannes Zellner
6991402a8c Fix typo 2016-04-13 11:33:01 +02:00
Johannes Zellner
d83395ecfb Also test grant type token access tokens 2016-04-13 11:28:10 +02:00
Johannes Zellner
6d3dd452be Test that oauth tokens are actually usable after issuing 2016-04-13 11:03:35 +02:00
Girish Ramakrishnan
be127ec313 fix failing test 2016-04-10 17:15:23 -07:00
Girish Ramakrishnan
275d8c2121 fix user create response 2016-04-06 10:20:32 -07:00
Girish Ramakrishnan
4c964bcaf8 set userid correctly in tokendb 2016-04-06 10:11:48 -07:00
Johannes Zellner
56d9d5913d Fixup the user route tests 2016-04-05 09:28:41 +02:00
Johannes Zellner
f7887228d3 Fix oauth session view tests and simpleauth tests 2016-04-05 09:28:41 +02:00
Johannes Zellner
73ed0384ea Fixup group rest api tests 2016-04-05 09:28:41 +02:00
Johannes Zellner
e058e22cae Fixup the client tests with userid change 2016-04-05 09:27:32 +02:00
Johannes Zellner
c90a8041e2 Move password/setup.html -> account/setup.html 2016-04-05 09:27:32 +02:00
Girish Ramakrishnan
d839f0b762 remove redundant session token 2016-04-03 23:23:23 -07:00
Johannes Zellner
f413afb835 Support email login in simple auth 2016-03-31 16:59:44 +02:00
Johannes Zellner
915c37a72f Add tests for displayName change 2016-03-31 16:24:28 +02:00
Girish Ramakrishnan
c769a12c45 set the box version for test for pass 2016-03-19 10:23:12 -07:00
Girish Ramakrishnan
d658530e66 fix failing tests 2016-03-08 18:44:51 -08:00
Johannes Zellner
57ff8b6770 fix feedback test 2016-03-04 22:27:18 +01:00
Johannes Zellner
160467e199 Do not require password for user profile changes 2016-02-25 14:03:42 +01:00
Johannes Zellner
384c410e7c Do not require a password for user profile changes 2016-02-25 13:54:44 +01:00
Johannes Zellner
84c4187fa9 Test normal users accessing the user api 2016-02-25 13:53:18 +01:00
Johannes Zellner
a0d7406b3c Do not allow normal users to get group listings or details 2016-02-25 13:34:01 +01:00
Johannes Zellner
9c995277f7 Fixup the apps unit tests 2016-02-25 12:20:18 +01:00
Johannes Zellner
81bd4f2ea5 Remove console.log() 2016-02-19 16:29:40 +01:00
Johannes Zellner
351ddcb218 Fixup the unit tests 2016-02-19 16:29:29 +01:00
Johannes Zellner
230c24d6c6 Adjust the route unit tests, to remove oauthProxy 2016-02-19 16:01:08 +01:00
Johannes Zellner
81ec26e45c Ensure we can delete users which belong to a group 2016-02-11 12:02:35 +01:00
Johannes Zellner
72c5ebcc06 Add user api tests for adding/removing from admin group 2016-02-11 11:39:19 +01:00
Johannes Zellner
5fce9c8d1f Do not allow an admin remove itself from admins group 2016-02-11 11:29:04 +01:00
Johannes Zellner
0ea89fccb8 Remove admin api route tests 2016-02-11 11:26:35 +01:00
Johannes Zellner
59ecb056d0 Fixup the oauth tests to set memoryLimit 2016-02-10 12:49:02 +01:00
Johannes Zellner
1b7265f866 Fixup the merge 2016-02-10 12:28:57 +01:00
girish@cloudron.io
7e60fd554a add some failing groups for good measure 2016-02-09 18:55:42 -08:00
girish@cloudron.io
c1cd7ac129 fix typo 2016-02-09 18:53:14 -08:00
girish@cloudron.io
aab62263a7 add accessRestriction group test in oauth2 2016-02-09 18:52:27 -08:00
girish@cloudron.io
79889a0aac test simple auth accessRestriction 2016-02-09 18:40:20 -08:00
Girish Ramakrishnan
f413bfb3a0 Add route to set the users groups 2016-02-09 16:43:32 -08:00
Girish Ramakrishnan
82cf667f3b Add groups route tests 2016-02-09 15:26:46 -08:00
girish@cloudron.io
00c5aa041f clear database in backups test 2016-02-09 12:21:36 -08:00
girish@cloudron.io
e6d23a9701 stop previous task explicitly
there is a race:
1. task is running
2. new task is created overwriting the installationState
3. new task kills the old task of step 1. this results in installationState getting overwritten by 'error' because of the sigkill
4. new task that is launched loses the installationState that was step in 2.
2016-02-09 12:09:20 -08:00
girish@cloudron.io
e752949752 make all tests work after group changes 2016-02-09 11:29:32 -08:00
Johannes Zellner
84c3b367d5 Actually wait for apps to be stopped 2016-01-29 17:24:18 +01:00
Johannes Zellner
793aa6512d Rework parts of the apps tests to be more reliable
No need to create and tear down the addons everytime.
Docker proxy can also be just injected once.
Wait explicitly for apptasks to be terminated.
2016-01-29 16:27:37 +01:00
Johannes Zellner
24a826bdd1 Reduce from 20 to 10 sec wait for addons
Since that is reliable already with 10 on my laptop
I assume this is fine for any other more modern machine
2016-01-29 16:26:15 +01:00