Doug Davis
fc8e344297
Merge pull request #19715 from coolljt0725/fix_test_daemon
...
Test utils: fix daemon start utils
2016-01-26 10:08:50 -05:00
Doug Davis
e5b5c0ebe8
Merge pull request #19713 from WeiZhang555/opt-TestEventsContainerFailStartDie
...
Optimize `TestEventsContainerFailStartDie`
2016-01-26 09:32:52 -05:00
Lei Jitang
e88258ca2e
Test utils: fix daemon start utils
...
User call `Start` could with args, and the args could
contains `--storage-driver`, but in `Start`, it will add
`--storage-driver` even though user has specified `--storage-driver`
in args.
Signed-off-by: Lei Jitang <leijitang@huawei.com >
2016-01-26 08:31:50 -05:00
Zhang Wei
4f7dda3fb2
Optimize TestEventsContainerFailStartDie
...
Optimize performance of `TestEventsContainerFailStartDie`
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-01-26 19:23:18 +08:00
Vincent Demeester
613e91f36f
Merge pull request #19703 from mountkin/speedup-TestEventsAttach
...
optimize DockerSuite.TestEventsAttach
2016-01-26 11:41:31 +01:00
Shijiang Wei
77a0f77e7f
optimize DockerSuite.TestEventsAttach
...
Signed-off-by: Shijiang Wei <mountkin@gmail.com >
2016-01-26 10:45:45 +08:00
Tibor Vass
58c2488d07
Merge pull request #19568 from cpuguy83/17907_fix_rmv
...
On container rm, don't remove named mountpoints
2016-01-25 18:13:57 -08:00
Tibor Vass
2cb8fdd327
Merge pull request #19673 from aboch/epcs
...
Save endpoint config only if endpoint creation succeeds
2016-01-25 16:50:47 -08:00
Tibor Vass
f7abff4f81
Merge pull request #19560 from aboch/mn
...
Reject multiple networks on container creation request
2016-01-25 14:57:51 -08:00
Antonio Murdaca
0f0c35960f
Merge pull request #19674 from tonistiigi/19652-fix-create-error-message
...
Fix error message in container creation
2016-01-25 23:47:57 +01:00
David Calavera
cf44f17258
Merge pull request #19619 from WeiZhang555/test-bottleneck-oomtrue
...
Optimize TestEventsOOMDisableTrue
2016-01-25 14:24:46 -08:00
Sebastiaan van Stijn
156e2f0e5c
Merge pull request #19555 from hypriot/update-registry-on-dockerfile-armhf
...
Update registry version in Dockerfile.armhf
2016-01-25 14:14:00 -08:00
Tibor Vass
268a20af95
Merge pull request #19528 from cpuguy83/19475_abck_compat_for_vol_drivers
...
Add back compat for volume drivers `Get` and `Ls`
2016-01-25 13:53:51 -08:00
Alessandro Boch
733245b2e7
Save endpoint config only if endpoint creation succeeds
...
- Currently it is being save upfront...
Signed-off-by: Alessandro Boch <aboch@docker.com >
2016-01-25 13:43:32 -08:00
Brian Goff
dd7d1c8a02
On container rm, don't remove named mountpoints
...
This makes it so when calling `docker run --rm`, or `docker rm -v`, only
volumes specified without a name, e.g. `docker run -v /foo` instead of
`docker run -v awesome:/foo` are removed.
Note that all volumes are named, some are named by the user, some get a
generated name. This is specifically about how the volume was specified
on `run`, assuming that if the user specified it with a name they expect
it to persist after the container is cleaned up.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2016-01-25 15:51:28 -05:00
Alessandro Boch
cfa515fd9d
Reject multiple networks on container creation
...
Signed-off-by: Alessandro Boch <aboch@docker.com >
2016-01-25 12:50:01 -08:00
Tonis Tiigi
8a68315c38
Fix error message in container creation
...
Error message was different if image was specified with the full ID.
Fixes #19652
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-01-25 11:45:20 -08:00
David Calavera
15cc67b73d
Merge pull request #19615 from runcom/add-registry-with-auth-testsuite
...
integration-cli: add suite for testing registries with auth
2016-01-25 11:12:16 -08:00
Brian Goff
997e61add9
Merge pull request #19658 from wenchma/19425-daemon_ipv6
...
Optimize slow bottleneck tests of TestDaemonIPv6FixedCIDR
2016-01-25 14:04:54 -05:00
Zhang Wei
6bf5b3db9a
Optimize slow integration test
...
Optimize `TestEventsOOMDisableTrue` performance
It's part of #19425 issue.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-01-26 00:07:20 +08:00
Shijiang Wei
c983996e0b
speed up DockerDaemonSuite.TestDaemonRestartWithContainerRunning
...
Signed-off-by: Shijiang Wei <mountkin@gmail.com >
2016-01-25 23:45:13 +08:00
Wen Cheng Ma
73849a5c82
Optimize slow bottleneck tests of TestDaemonIPv6FixedCIDR and TestDaemonIPv6FixedCIDRAndMac
...
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com >
2016-01-25 23:43:49 +08:00
Zhang Wei
e151ad936a
Make test case name consistent
...
Replace `Tty` with `TTY` in all test case names so that we can run
a bundle of `TTY` related test cases with TESTFLAGS like
`-check.f TestExecTTY*`
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-01-24 16:32:52 +08:00
Sebastiaan van Stijn
717ced8dd7
Merge pull request #19602 from Microsoft/jjh/testrunexitonstdinclose
...
Windows CI: Fix TestRunExitOnStdinClose flakiness
2016-01-23 18:53:28 -08:00
Antonio Murdaca
011b4f01f4
integration-cli: add suite for testing registries with auth
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com >
2016-01-24 01:02:49 +01:00
Stefan Scherer
11a51649cf
Update registry version in Dockerfile.armhf
...
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com >
2016-01-23 18:46:46 +01:00
Alexander Morozov
7be8f72644
Merge pull request #19600 from aaronlehmann/buildenvusage2
...
Slight TestBuildEnvUsage2 speedup
2016-01-22 20:38:45 -08:00
Brian Goff
f6c20d9b22
Add back compat for volume drivers Get and Ls
...
Use a back-compat struct to handle listing volumes for volumes we know
about (because, presumably, they are being used by a container) for
volume drivers which don't yet support `List`.
Adds a fall-back for the volume driver `Get` call, which will use
`Create` when the driver returns a `404` for `Get`. The old behavior was
to always use `Create` to get a volume reference.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2016-01-22 22:48:17 -05:00
John Howard
4bfc5d4606
Windows CI: Fix TestRunExitOnStdinClose
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-01-22 18:27:15 -08:00
Aaron Lehmann
74fafa5dd2
Slight TestBuildEnvUsage2 speedup
...
TestBuildEnvUsage2 was flagged in https://github.com/docker/docker/issues/19425
as one of the slowest integration tests. It's slow because it has some
comprehensive builder test cases that end up creating a lot of layers.
Even with a busybox base image, this can be expensive. It's not possible
to build "FROM scratch" because the test cases need the shell to ensure
environment variables are set correctly.
Some of the ENV and RUN statements can be combined. This causes fewer
layers to get created. Doing this produces a marginal improvement in the
runtime.
Before:
PASS: docker_cli_build_test.go:3956: DockerSuite.TestBuildEnvUsage2 43.619s
After:
PASS: docker_cli_build_test.go:3956: DockerSuite.TestBuildEnvUsage2 31.286s
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2016-01-22 17:13:50 -08:00
Sebastiaan van Stijn
6d1455e74b
Merge pull request #19579 from cyphar/hotfix-vendor-libcontainer
...
Hotfix vendor libcontainer
2016-01-22 16:46:04 -08:00
Brian Goff
feca36b379
Merge pull request #19519 from calavera/fix_event_channel_closing_race
...
Fix channel closing race in event tests.
2016-01-22 19:43:28 -05:00
David Calavera
422827fa92
Merge pull request #19527 from aboch/epc
...
Move Unsupp Network & IP check to the new updateNetworkConfig() func
2016-01-22 15:54:21 -08:00
Antonio Murdaca
504a8ad295
Merge pull request #19567 from Microsoft/jjh/testpsnotshowportsofstoppedcontainer
...
Windows: TestPsNotShowPortsOfStoppedContainer linux only
2016-01-22 21:53:31 +01:00
Brian Goff
455a505749
Merge pull request #19190 from srust/volume_driver_parity_again
...
Allow external volume drivers to host anonymous volumes again
2016-01-22 15:53:06 -05:00
Tibor Vass
2731dbc797
Merge pull request #19509 from BrianBland/master
...
Fixes layer MediaTypes in manifests created from a cross-repository push
2016-01-22 14:27:47 -05:00
David Calavera
27b060492c
Fix channel closing race in event tests.
...
Divide event matching into two functions, a matcher and
a processor. That way, the error handling doesn't call
the channel closing logic at all.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2016-01-22 13:31:46 -05:00
Tibor Vass
a9fc4939df
Merge pull request #19573 from sanimej/libn
...
Vendor in libnetwork v0.6.0-rc2
2016-01-22 12:07:40 -05:00
Tibor Vass
cba7ba25f4
Merge pull request #19488 from hypriot/enable-docker-trust-suite-on-arm
...
Enable DockerTrustSuite for ARM again
2016-01-22 11:23:19 -05:00
Aleksa Sarai
cc19c7df2a
integration-cli: add bad --cgroup-parent tests
...
To ensure we don't regress on bad --cgroup-parent paths, add some
integration tests that check that the host hasn't toppled (or suddently
started to create files in the host).
Signed-off-by: Aleksa Sarai <asarai@suse.com >
2016-01-22 20:16:56 +11:00
Santhosh Manohar
da9eadb066
IT for service/network name with '.', corrected libnetwork flag for DNS
...
Signed-off-by: Santhosh Manohar <santhosh@docker.com >
2016-01-21 20:49:02 -08:00
John Howard
845dc1b24c
Windows: TestPsNotShowPortsOfStoppedContainer linux only
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-01-21 18:48:21 -08:00
Morgan Bauer
bcb9adf49e
check the output, not the errcode
...
- errcode of 1 can be returned for cases other than the 'no space left' case
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com >
2016-01-21 15:23:20 -08:00
Alessandro Boch
3b0d36dbc1
Move ErrUnsupportedNetwork* checks to updateNetworkConfig() func
...
Signed-off-by: Alessandro Boch <aboch@docker.com >
2016-01-21 10:56:01 -08:00
John Howard
473a32ba8f
Windows: Fix TestLinksMultipleWithSameName
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-01-21 09:52:49 -08:00
Vincent Demeester
476edba011
Merge pull request #19483 from coolljt0725/fix_19477
...
Fix #19477 , clean up the ports when release network
2016-01-21 14:29:29 +01:00
Wen Cheng Ma
2e6b1eb309
Fixes the typo of docker_cli_network_unix_test.go
...
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com >
2016-01-21 16:37:17 +08:00
Lei Jitang
6025517b68
Fix #19477 , clean up the ports when release network
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
2016-01-20 20:09:11 -05:00
Lei Jitang
bb8d8a645a
Merge pull request #19430 from keloyang/StatsNoStreamGetCpu
...
remove the check of ContentLength in TestApiStatsNoStreamGetCpu
2016-01-21 09:07:00 +08:00
David Calavera
ee001d87a9
Merge pull request #19514 from cpuguy83/19444_fix_links_with_same_name
...
Don't error out when link name in use.
2016-01-20 15:21:58 -08:00