Girish Ramakrishnan
6993a9c7e7
add more mailbox route test
2016-05-27 18:23:14 -07:00
Girish Ramakrishnan
84d04cce16
initial mailboxes route
2016-05-27 18:17:57 -07:00
Girish Ramakrishnan
4afdf50736
finally finally finally the tests are working
2016-05-24 20:04:37 -07:00
Girish Ramakrishnan
b4ba17c599
use the constant
2016-05-24 13:23:41 -07:00
Girish Ramakrishnan
57a823a698
make tests work
2016-05-24 00:44:01 -07:00
Girish Ramakrishnan
ec0ee07b17
test: email works now
2016-05-23 23:17:38 -07:00
Girish Ramakrishnan
3d7545133e
wait 30 secs in the beginning
2016-05-23 23:16:02 -07:00
Girish Ramakrishnan
bcc752469a
remove containers after the test
2016-05-23 22:47:40 -07:00
Girish Ramakrishnan
3b740a5651
make tests work
2016-05-23 20:41:00 -07:00
Girish Ramakrishnan
7eb202f19a
test: use the test-app instead of duplicating the checks in the tests
2016-05-23 20:17:11 -07:00
Girish Ramakrishnan
57888659a6
Update test app version
2016-05-23 18:31:12 -07:00
Girish Ramakrishnan
ebdefa7f18
test: oauth addon
2016-05-23 17:34:25 -07:00
Girish Ramakrishnan
6ccb806628
make apps-test pass
2016-05-23 16:31:02 -07:00
Girish Ramakrishnan
ae807b28b6
test: let server start the infra
...
otherwise, deps like dkim keys need to be setup in tests as well
2016-05-23 15:53:51 -07:00
Girish Ramakrishnan
00726b01e2
pass -no-run-if-empty instead
2016-05-23 15:50:36 -07:00
Girish Ramakrishnan
f5b777ab33
add route tests for username
2016-05-23 15:00:21 -07:00
Girish Ramakrishnan
10e0cbcebc
do not set allowHalfOpen (otherwise we have to end socket ourself)
2016-05-23 10:50:04 -07:00
Girish Ramakrishnan
37512c4cac
Wrap the stdin stream to indicate EOF
...
The docker exec protocol supports half-closing to signal that the stdin
is finished. The CLI tool tried to do this by closing it's half of the
socket when the stdin finished. Unfortunately, this does not work because
nginx immediately terminates a half-close :/ Node itself has no problem.
http://mailman.nginx.org/pipermail/nginx/2008-September/007388.html
seems to support the hypothesis. Basically, for HTTP and websockets
there is no notion of half-close.
Websocket protocol itself has no half-close as well:
http://www.lenholgate.com/blog/2011/07/websockets---i-miss-the-tcp-half-close.html
http://doc.akka.io/docs/akka/2.4.5/scala/http/client-side/websocket-support.html
The fix is to implement our own protocol that wrap stdin. We put a length
header for every payload. When we hit EOF, the length is set to 0. The server
sees this 0 length header and closes the exec container socket.
2016-05-22 22:27:49 -07:00
Girish Ramakrishnan
0aaaa866e4
Add a whole bunch of magic for docker.exec to work
2016-05-22 00:27:32 -07:00
Girish Ramakrishnan
53cb7fe687
debug out cmd
2016-05-19 15:54:35 -07:00
Girish Ramakrishnan
da42f2f00c
fix boolean logic
2016-05-19 15:54:35 -07:00
Girish Ramakrishnan
efa3ccaffe
fix crash because of missing error handling
2016-05-18 10:00:32 -07:00
Girish Ramakrishnan
e5d906a065
create fake cert/key for tests to pass
2016-05-13 22:35:13 -07:00
Girish Ramakrishnan
3ccb72f891
tests finally work
2016-05-13 22:05:05 -07:00
Girish Ramakrishnan
aa116ce58c
fix tests
2016-05-13 20:21:09 -07:00
Girish Ramakrishnan
8e077660c4
start_addons is redundant
2016-05-13 17:57:56 -07:00
Girish Ramakrishnan
83a28afc8f
addons are started by box code now
2016-05-09 23:56:02 -07:00
Girish Ramakrishnan
e76c7de259
bump test app version
2016-05-09 23:40:59 -07:00
Johannes Zellner
3af95508f5
eventlog getAllPaged is now getByQueryPaged
2016-05-06 17:27:52 +02:00
Johannes Zellner
4c7dc5056d
Add more query options for eventlog api
2016-05-06 16:49:17 +02:00
Johannes Zellner
e986a67d39
Fixup all the unit tests
2016-05-06 15:16:22 +02:00
Johannes Zellner
c7958f8e1d
Remove unused /api/v1/subdomains/:subdomain
2016-05-06 14:51:02 +02:00
Johannes Zellner
c61ce40362
Add /api/v1/profile/tutorial route tests
2016-05-06 14:06:54 +02:00
Johannes Zellner
f3811e3df9
Remove all unused vars in profile test
2016-05-06 14:03:24 +02:00
Johannes Zellner
0d40b1b80d
Fix the test wording in profile password change tests
2016-05-06 14:02:21 +02:00
Johannes Zellner
8b92c8f7ae
Remove unused checkMails() in profile tests
2016-05-06 13:57:46 +02:00
Johannes Zellner
d41eb81b3d
Add new profile/ route to set the showTutorial field
2016-05-06 13:56:40 +02:00
Girish Ramakrishnan
6bcfd33e10
boot2docker is dead
2016-05-04 15:54:21 -07:00
Girish Ramakrishnan
b4c15b1719
Let the box code initialize the infrastructure
...
This is done because:
1. The box code can install certs for addons (like mail addon) when
required.
2. The box code initialize/teardown addons on demand. This is not planned
currently.
2016-05-04 15:54:21 -07:00
Girish Ramakrishnan
7262eb208f
add route to get the timezone
2016-05-03 12:10:21 -07:00
Girish Ramakrishnan
5617baea50
eventlog tests
2016-05-02 14:54:25 -07:00
Girish Ramakrishnan
ffedbdfa13
various minor fixes to eventlog
2016-05-02 10:01:23 -07:00
Girish Ramakrishnan
b322f6805f
move authType into source
2016-05-01 21:53:44 -07:00
Girish Ramakrishnan
ccc119ddec
add appLocation to user login
2016-05-01 21:47:35 -07:00
Girish Ramakrishnan
994cbaa22a
add event log in model code
2016-05-01 21:38:20 -07:00
Girish Ramakrishnan
d7a34bbf68
remove profile action
2016-05-01 20:14:21 -07:00
Girish Ramakrishnan
1f31fe6f8f
make user.remove and user.update add eventlog
2016-05-01 20:11:11 -07:00
Girish Ramakrishnan
37bdd2672b
make user.create take auditSource
2016-05-01 20:01:34 -07:00
Girish Ramakrishnan
63702f836a
move developer eventlogs to model code
2016-05-01 13:46:33 -07:00
Girish Ramakrishnan
5898428a6c
use req.connection.remoteAddress
2016-05-01 13:29:11 -07:00