Solomon Hykes
359a6f49b9
Move integration tests to integration/, expose missing public methods in the core
2013-11-14 10:50:00 -08:00
Sven Dowideit
b3974abe4f
make all image ID and container ID API responses use the Long ID ( Closes #2098 )
2013-11-09 12:16:49 +10:00
Nate Jones
22ef38ee79
fixup for rebase
2013-11-06 04:23:07 +00:00
Nate Jones
b7d1d35c27
add image size to -tree
2013-11-06 04:23:07 +00:00
Nate Jones
f1aeac361a
adding test for "images -tree"
2013-11-06 04:23:02 +00:00
Nate Jones
d9fe0647cb
adding test for "images -viz"
2013-11-06 04:04:24 +00:00
unclejack
cdf0cf495d
fix build for commands_test
2013-11-06 01:41:54 +02:00
unclejack
35430e8920
test: error out when bind mount source doesn't exist
...
This adds a test to verify that the server is checking whether the path
to be bind mounted actually exists on the server.
2013-11-05 22:54:24 +02:00
unclejack
f1f39616eb
add test to ensure / can't be bind mounted
...
This adds a test which checks that we're erroring out when we attempt
to bind mount root in a container.
2013-11-05 22:54:24 +02:00
Victor Vieux
177a2f5946
add CmdLogs test
2013-11-04 12:23:35 -08:00
Victor Vieux
8f39f0b57d
Removes \\n from debugf calls
2013-10-25 17:50:40 -07:00
Victor Vieux
a675e249b1
fix workdir, hostname tests and a bunch on mount issue
2013-10-24 16:57:35 -07:00
Guillaume J. Charmes
3e014aa662
Fix attach race condition, improve unit tests, make sure the container is started before unblocking Start
2013-10-18 16:26:16 -07:00
Guillaume J. Charmes
333bc23f21
Fix issue killing container while sending signal
...
Fix rebase issue
Update docs
2013-10-18 16:19:27 -07:00
Victor Vieux
655b16c712
skip auto-remove test for now
2013-10-16 21:47:20 +00:00
Daniel Mizyrycki
135c1fce90
testing, issue #1948 : Increase TestAttachDetach and TestRunDetach timeout
2013-10-01 15:59:52 -07:00
unclejack
22e7e107ad
automatically remove container via -rm
...
add AutoRemove to HostConfig
add -rm flag to docker run
add TestRunAutoRemove to test -rm
docs: add -rm to commandline/command/run
add hostConfig to container monitor
make monitor destroy the container via -rm
This adds support for automatically removing a container after it
exits. The removal of the container is handled on the server side.
2013-09-27 17:43:12 +03:00
Guillaume J. Charmes
e97364ecd7
Improve detach unit tests
2013-09-20 13:36:19 -07:00
Guillaume J. Charmes
2bd089dadb
Fix attach issue
2013-09-20 11:31:00 -07:00
jbbarth
d80b50d4b4
Improve formatting with 'go fmt' as stated in CONTRIBUTING.md
...
As 'go fmt' doesn't support verifying files in multiple directories,
it's probably a good idea to run it on all '*.go' files from time to
time with something like this:
find . -name "*.go" | xargs dirname | sort -u | xargs -n 1 echo go fmt
2013-08-27 10:05:25 +02:00
Guillaume J. Charmes
f925edd12d
Merge pull request #1525 from griff/1503-fix
...
Don't read from stdout when only attached to stdin
2013-08-22 13:43:05 -07:00
Marco Hennings
687d27ab57
Add an option to set the working directory.
...
This makes it possible to simply wrap a command inside a container. This makes
it easier to use a container as an unified build environment.
Examples:
~/workspace/docker
$ docker run -v `pwd`:`pwd` -w `pwd` -i -t ubuntu ls
AUTHORS Makefile archive.go changes.go docker
[...]
docker run -v `pwd`:`pwd` -w `pwd` -i -t ubuntu pwd
/home/marco/workspace/docker
2013-08-18 19:34:01 +02:00
Brian Olsen
c7cda86e84
Don't read from stdout in hijack unless attached. Fixes #1503
2013-08-15 02:54:06 +02:00
Pascal Borreli
9b2a5964fc
Fixed typos
2013-08-12 18:53:06 +01:00
Guillaume J. Charmes
6ae3305040
Merge pull request #1277 from dotcloud/add_commands_unit_tests
...
* Tests: Reimplement old Commands unit tests in order to insure behavior
2013-07-24 15:24:51 -07:00
Guillaume J. Charmes
bc823acc25
Reimplement old Commands unit tests in order to insure behavior
2013-07-23 17:27:49 -07:00
Victor Vieux
ed7a4236b3
Add tests for the api
2013-07-23 15:42:34 +00:00
Victor Vieux
599f85d4e4
store both logs in a same file, as JSON
2013-07-15 16:17:58 +00:00
Solomon Hykes
2ac1141980
Don't leave broken, commented out tests lying around.
2013-07-11 17:58:45 -07:00
Guillaume J. Charmes
ada0e1fb08
Merge pull request #1049 from dotcloud/1040_ignore_stderr_tests-fix
...
- Tests: Ignore stderr while doing tests
2013-07-09 10:32:24 -07:00
Caleb Spare
19121c16d9
Implement several golint suggestions, including:
...
* Removing type declarations where they're inferred
* Changing Url -> URL, Id -> ID in names
* Fixing snake-case names
2013-07-03 14:36:04 -07:00
Guillaume J. Charmes
800d900688
Ignore stderr while doing tests
2013-06-27 15:25:31 -07:00
Guillaume J. Charmes
5190f7f33a
Implement regression test for stdin attach
2013-06-24 18:36:04 -07:00
Guillaume J. Charmes
a749fb2130
Make DockerCli use its own stdin/out/err instead of the os.Std*
2013-06-24 18:27:57 -07:00
Jérôme Petazzoni
6f3e868a7b
Merge branch 'master' of github.com:dotcloud/docker into 471-cpu-limit
2013-05-10 14:44:50 -07:00
Guillaume J. Charmes
15ae314cbb
Mock Hijack and Implement Unit test for Attach
2013-05-09 21:55:08 -07:00
Jérôme Petazzoni
af9f559f2e
in the tests, use a non-default value for cpu.shares
2013-05-07 11:44:24 -07:00
Jérôme Petazzoni
efd9becb78
implement "-c" option to allocate a number of CPU shares to a container
2013-05-07 11:16:30 -07:00
Victor Vieux
10c0e99037
update to master
2013-05-07 19:23:50 +02:00
Guillaume J. Charmes
8472a27e80
Merge pull request #497 from justone/dot-graph-images
...
+ images: output graph of images to dot (graphviz)
2013-05-06 17:48:07 -07:00
Guillaume J. Charmes
ff95f2b0ec
Update the unit tests to reflect the new API
2013-05-06 16:00:30 -07:00
Victor Vieux
04cd20fa62
split api and server. run return exit code. import, pull and commit uses the smae endpoint. non zero status code on failure
2013-05-06 11:31:22 +02:00
Nate Jones
3dba4022ad
add tests for 'images' subcommand
2013-05-03 21:12:43 -07:00
Guillaume J. Charmes
a22c78523f
Wait for the container to finish in TestAttachDisconnect before destroying it
2013-04-23 11:09:48 -07:00
Guillaume J. Charmes
acb546cd1b
Fix race within TestRunDisconnectTty
2013-04-22 11:16:32 -07:00
Guillaume J. Charmes
cc5a044a8c
update TestRunDisconnectTty to reflect the correct behavior of CmdRun
2013-04-19 17:51:41 -07:00
Guillaume J. Charmes
bb22cd492e
Add unit test for hanging kill + fix other tests behaviour
2013-04-11 16:21:19 -07:00
Guillaume J. Charmes
d063d52cce
Update the unit test to reflect the new CmdRun behaviour in tty mode
2013-04-09 08:18:36 -07:00
Guillaume J. Charmes
99b5bec069
Fix run disconnect behavious in tty mode + add unit test to enforce it
2013-04-05 19:02:35 -07:00
Louis Opter
e9a68801ba
Update the tests according to the "optional raw mode" changes
2013-04-08 16:07:12 -07:00