Michael Crosby
ac599d6528
Add explicit status response to OPTIONS handler
...
Write the http.StatusOK header in the OPTIONS
handler and update the unit tests to refer to the
response code using the const from the http package.
2013-06-10 14:44:10 -09:00
Michael Crosby
0a28628c02
Add Cors and OPTIONS route unit tests
...
Move creating the router and populating the
routes to a separate function outside of
ListenAndServe to allow unit tests to make
assertions on the configured routes and handler
funcs.
2013-06-10 13:02:40 -09:00
Michael Crosby
6d5bdff394
Add flag to enable cross domain requests in Api
...
Add the -api-enable-cors flag when running docker
in daemon mode to allow CORS requests to be made to
the Remote Api. The default value is false for this
flag to not allow cross origin request to be made.
Also added a handler for OPTIONS requests the standard
for cross domain requests is to initially make an
OPTIONS request to the api.
2013-06-03 21:39:00 -04:00
Guillaume J. Charmes
8243f2510e
Update test to reflect new ApiInfo struct
2013-06-03 06:44:00 -07:00
Guillaume J. Charmes
b76d6120ac
Update tests with new cookies for registry
2013-05-28 17:35:10 -07:00
Victor Vieux
4f9443927e
rename containers/ps to containers/json
2013-05-28 16:08:05 +00:00
Guillaume J. Charmes
0146f65a44
Fix issue within auth test
2013-05-24 11:31:11 -07:00
Victor Vieux
faae7220c0
api versionning
2013-05-22 15:29:54 +00:00
Guillaume J. Charmes
3f22842542
Remove no longer needed tests
2013-05-20 17:54:54 -07:00
Guillaume J. Charmes
372d81c325
Merge remove-hijack
2013-05-20 11:07:34 -07:00
Victor Vieux
3703a65405
fixed insert
2013-05-17 17:09:09 +00:00
Guillaume J. Charmes
6145812444
Update tests to reflect new behavior
2013-05-16 14:33:10 -07:00
Victor Vieux
0c5443571d
1 or 0 -> 1/True/true or 0/False/false
2013-05-16 13:45:29 +00:00
Guillaume J. Charmes
10e19e4b97
Update tests to reflect new AuthConfig
2013-05-15 17:31:11 -07:00
Guillaume J. Charmes
95dd6d31a4
Move authConfig from runtime to registry
2013-05-15 17:17:33 -07:00
Guillaume J. Charmes
e7077320ff
Update tests to reflect new project structure
2013-05-15 01:52:09 +00:00
Guillaume J. Charmes
2e69e1727b
Create a subpackage for utils
2013-05-14 22:37:35 +00:00
Victor Vieux
e82ff22fae
add -notrunc on docker images
2013-05-13 12:26:18 +02:00
Victor Vieux
1990c49a62
removed only_ids and trunc_cmd from the api
2013-05-13 12:18:55 +02:00
Guillaume J. Charmes
b99446831f
Update api_test.go to reflect new api.go
2013-05-10 15:24:07 -07:00
Guillaume J. Charmes
ae80c37054
Small fix within TestGetImagesJson
2013-05-10 13:58:21 -07:00
Guillaume J. Charmes
5bec9275c0
Improve remote api unit tests
2013-05-10 12:28:07 -07:00
Victor Vieux
53a8229ce7
fix tests in api_test.go
2013-05-10 16:49:47 +02:00
Guillaume J. Charmes
15ae314cbb
Mock Hijack and Implement Unit test for Attach
2013-05-09 21:55:08 -07:00
Guillaume J. Charmes
310fec4819
More unit tests for remote api
2013-05-09 21:54:43 -07:00
Guillaume J. Charmes
483c942520
Fix typos whithin unit tests
2013-05-09 21:53:28 -07:00
Guillaume J. Charmes
24816a8b80
Add/improve unit tests
2013-05-09 20:13:52 -07:00
Guillaume J. Charmes
2a303dab85
Add unit tests
2013-05-09 19:19:24 -07:00
Guillaume J. Charmes
ede0793d94
Add unit tests for remote api
2013-05-09 17:51:27 -07:00
Guillaume J. Charmes
152ebeea43
Change API route for containers/ and images/ in order to avoid conflict
2013-05-09 17:50:56 -07:00
Guillaume J. Charmes
ff67da9c86
Add the variable maps to the Api functions
2013-05-09 16:28:47 -07:00
Victor Vieux
add73641e6
fixed private caller
2013-05-10 01:23:50 +02:00
Victor Vieux
9af5d9c527
Merge branch 'remote-api' of https://github.com/dotcloud/docker into remote-api
2013-05-10 01:20:33 +02:00
Victor Vieux
3115c5a225
private tests api fixed
2013-05-10 01:20:07 +02:00
Guillaume J. Charmes
7e8b413bcf
Implement the some unit tests without listenandserve
2013-05-09 16:20:06 -07:00
Guillaume J. Charmes
b2b59ddb10
Remove ListenAndServe from unit tests
2013-05-09 15:47:06 -07:00
Victor Vieux
c423a790d6
fixed issue with viz
2013-05-09 23:52:12 +02:00
Victor Vieux
60ddcaa15d
changes 2 endpoints to avoid confusion, changed some parameters, fix doc, add api unit tests
2013-05-08 17:35:50 +02:00