Elena Morozova
64238fef8c
all: replace loop with single append
...
Signed-off-by: Elena Morozova <lelenanam@gmail.com >
2016-10-13 13:31:52 -07:00
Tibor Vass
535f52c932
Merge pull request #27296 from tonistiigi/wait-tasks
...
Wait until tasks have been created in TestSwarmTaskListFilter
2016-10-13 15:02:43 +02:00
Tonis Tiigi
da9ef68f06
Add requirements for tests that require network
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-10-12 11:11:23 -07:00
Vincent Demeester
9db4698929
Merge pull request #27217 from Microsoft/jjh/servicingcitest
...
Windows: Test for container servicing
2016-10-12 15:50:52 +02:00
Vincent Demeester
310068f606
Merge pull request #27225 from darrenstahlmsft/CreateTests
...
Windows: Enable more create tests
2016-10-12 15:08:32 +02:00
Aaron Lehmann
9bd8c1d332
Merge pull request #26804 from stevvooe/clear-tlsconfig-unix-socket
...
client: pedantic checking of tlsconfig
2016-10-11 15:47:47 -07:00
Tonis Tiigi
f8229aea9f
Wait until tasks have been created in TestSwarmTaskListFilter
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-10-11 11:56:42 -07:00
Justin Cormack
199e19548e
Add support for ambient capabilities
...
Linux kernel 4.3 and later supports "ambient capabilities" which are the
only way to pass capabilities to containers running as a non root uid.
Previously there was no way to allow containers not running as root
capabilities in a useful way.
Fix #8460
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2016-10-10 19:29:02 +01:00
Darren Stahl
45fe59931a
Windows: Enable more create tests
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-10-10 10:34:03 -07:00
John Howard
25a148918e
Windows: Test for container servicing
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-10-07 10:47:54 -07:00
Vincent Demeester
b3cc3d7bf9
Merge pull request #23389 from Microsoft/jjh/credentialspec
...
Windows: Support credential specs
2016-10-07 18:32:44 +02:00
Vincent Demeester
e42ec6d7cb
Merge pull request #27171 from tonistiigi/improve-attach-closed
...
Improve TestAttachClosedOnContainerStop
2016-10-07 11:26:33 +02:00
Vincent Demeester
91312f71aa
Merge pull request #26882 from runcom/proxy-path
...
Specify userland proxy path
2016-10-07 09:44:39 +02:00
Darren Stahl
6482410c9d
Enabled more test on Windows, API and Build
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-10-06 17:18:42 -07:00
Justin Cormack
5ee2c2a647
Merge pull request #27160 from mlaventure/update-containerd
...
Update containerd and runc
2016-10-06 19:36:31 +02:00
John Howard
e85867cb68
Windows: Support credential specs
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-10-06 09:32:22 -07:00
Antonio Murdaca
dd2e1947dc
daemon: add --userland-proxy-path flag
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com >
2016-10-06 17:31:53 +02:00
Darren Stahl
443d7313f5
Enable more build tests on Windows
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-10-06 00:53:30 -07:00
Tonis Tiigi
9d8f01b4f5
Improve TestAttachClosedOnContainerStop
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-10-05 15:52:09 -07:00
Kenfe-Mickael Laventure
7e12c3bb99
Update containerd and runc
...
containerd: 837e8c5e1cad013ed57f5c2090c8591c10cbbdae
runc: 02f8fa7863dd3f82909a73e2061897828460d52f
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com >
2016-10-05 14:47:15 -07:00
Alexander Morozov
ba9fb73280
Merge pull request #27037 from Microsoft/jjh/apistatsdatarace
...
Fix datarace in ApiStatsNetworkStatsVersioning
2016-10-05 13:06:40 -07:00
John Howard
825e3a66a4
Fix datarace in ApiStatsnetworkStatsVersioning
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-10-05 10:12:46 -07:00
Doug Davis
105bc63295
Require continuation char to be last char in a line
...
While look at #27039 I noticed that we allow for whitespace after
the continuation char (\\) which is wrong. It needs to be the very
last char in the line.
Signed-off-by: Doug Davis <dug@us.ibm.com >
2016-10-04 09:38:00 -07:00
Vincent Demeester
694ba71e36
Merge pull request #26989 from aboch/none
...
Respect --bridge=none
2016-10-04 16:25:39 +02:00
Michael Crosby
e22d4b9654
Merge pull request #27078 from darrenstahlmsft/InteractiveRestartTest
...
Increase timeout in TestRunInteractiveWithRestartPolicy
2016-10-03 11:22:33 -07:00
Alessandro Boch
a0af884d3a
Respect --bridge=none
...
- Do not create the default "bridge" network
- Get rid of the docker0 bridge
Signed-off-by: Alessandro Boch <aboch@docker.com >
2016-10-03 11:08:34 -07:00
Brian Goff
7e29b33546
Merge pull request #26967 from AkihiroSuda/rename-tests
...
[nit] integration-cli: obey Go's naming convention
2016-10-03 09:52:04 -04:00
Vincent Demeester
420e22fad4
Merge pull request #27060 from yongtang/27021-inspect-show-env
...
Disable HTML escaping for JSON strings in `docker inspect`
2016-10-02 14:32:56 +02:00
Michael Crosby
18338427ed
Merge pull request #26968 from darrenstahlmsft/TestEventsFix
...
Limit conccurent container creates in TestEventsLimit to 8
2016-09-30 16:29:01 -07:00
Darren Stahl
6eac29490f
Increase timeout in TestRunInteractiveWithRestartPolicy
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-09-30 15:30:18 -07:00
Darren Stahl
728a265190
Limit conccurent container creates in TestEventsLimit to 8
...
Signed-off-by: Darren Stahl <darst@microsoft.com >
2016-09-30 14:44:05 -07:00
Michael Crosby
6eef2b2ada
Merge pull request #26997 from tonistiigi/exec-env
...
Fix missing hostname and links in exec env
2016-09-30 09:51:02 -07:00
Vincent Demeester
4fabc92cfc
Merge pull request #26697 from allencloud/change-service-scale-logic
...
validate service parameter in client side to avoid api call in `docker service scale`
2016-09-30 18:37:35 +02:00
Akihiro Suda
7fb7a477d7
[nit] integration-cli: obey Go's naming convention
...
No substantial code change.
- Api --> API
- Cli --> CLI
- Http, Https --> HTTP, HTTPS
- Id --> ID
- Uid,Gid,Pid --> UID,PID,PID
- Ipam --> IPAM
- Tls --> TLS (TestDaemonNoTlsCliTlsVerifyWithEnv --> TestDaemonTLSVerifyIssue13964)
Didn't touch in this commit:
- Git: because it is officially "Git": https://git-scm.com/
- Tar: because it is officially "Tar": https://www.gnu.org/software/tar/
- Cpu, Nat, Mac, Ipc, Shm: for keeping a consistency with existing production code (not changable, for compatibility)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2016-09-30 01:21:05 +00:00
Yong Tang
0fa20ad13b
Disable HTML escaping for JSON strings in docker inspect
...
This fix tries to address the issue raised in 27021 where
HTML strings like (`&, >, <, etc`) in environmental variables
are escaped for JSON output for `docker inspect`. For example,
`TEST_ENV="soanni&rtr"` has been escaped to `TEST_ENV="soanni\u0026rtr"`
This fix disabled HTML escaping with `SetEscapeHTML`, which is available
since golang 1.7.0. This changes will be applied to all JSON output
that utilize `httputils.WriteJSON`.
An integration test has been added to cover the changes.
This fix fixes 27021.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2016-09-29 18:16:36 -07:00
Tonis Tiigi
e981459609
Fix missing hostname and links in exec env
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-09-29 13:46:10 -07:00
Michael Crosby
1d669d82c1
Merge pull request #26994 from Microsoft/jjh/fix26461regression
...
Windows: Don't set PATH/TERM on exec
2016-09-29 13:34:12 -07:00
Vincent Demeester
b6ad6d98fd
Merge pull request #24411 from vdemeester/24393-ps-filter-managed
...
Add a new "is-task" ps filter
2016-09-29 18:54:15 +02:00
Alexander Morozov
2de05de98d
integration: wait for task running in TestServiceHealthRun
...
Test can miss Starting state, so wait until its Running
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2016-09-29 07:44:00 -07:00
Andrew Hsu
64b5fe76cf
integration test for missing arg error code
...
Signed-off-by: Andrew Hsu <andrewhsu@docker.com >
2016-09-28 16:33:45 -07:00
John Howard
e880bbc48b
Windows: Don't set PATH/TERM on exec
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2016-09-28 13:42:27 -07:00
Vincent Demeester
5280ba83e5
Add a new "is-task" ps filter
...
This makes it easier to list containers that are part of a task
(swarm mode) and those who are not.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2016-09-28 12:45:30 +02:00
Vincent Demeester
b0e1b8fc79
Merge pull request #24850 from yongtang/24270-service-tasks-filter
...
Fix partial/full filter issue in `service tasks --filter`
2016-09-28 11:50:27 +02:00
Misty Stanley-Jones
bab64af2ad
Merge pull request #26931 from thaJeztah/fix-aux-address-example
...
Fix incorrect aux-address examples and test
2016-09-27 17:06:01 -07:00
Stephen J Day
dc9f5c2ca3
client: pedantic checking of tlsconfig
...
Under the convoluted code path for the transport configuration,
TLSConfig was being set even though the socket type is unix. This caused
other code detecting the TLSConfig to assume https, rather than using
the http scheme. This led to a situation where if `DOCKER_CERT_PATH` is
set, unix sockets start reverting to https. There is other odd behavior
from go-connections that is also reproduced here.
For the most part, we try to reproduce the side-effecting behavior from
go-connections to retain the current docker behavior. This whole mess
needs to ripped out and fixed, as this pile spaghetti is unnacceptable.
This code is way to convoluted for an http client. We'll need to fix
this but the Go API will break to do it.
Signed-off-by: Stephen J Day <stephen.day@docker.com >
2016-09-27 16:27:48 -07:00
Vincent Demeester
b881148385
Merge pull request #26255 from Microsoft/jjh/xenon-test-infrastructure
...
Add isolation to info - enables Hyper-V containers CI bring-up
2016-09-27 18:46:51 +02:00
Sebastiaan van Stijn
fd7161bb30
Fix incorrect aux-address examples and test
...
The (host)name for aux-addresses should
be unique, otherwise later values overwrite
earlier values.
Before this change, the example command
would send this API request;
{
"Attachable": false,
"CheckDuplicate": true,
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Config": [
{
"Gateway": "192.168.0.100",
"IPRange": "192.168.1.0/24",
"Subnet": "192.168.0.0/16"
},
{
"AuxiliaryAddresses": {
"a": "192.170.1.5",
"b": "192.170.1.6"
},
"Gateway": "192.170.0.100",
"Subnet": "192.170.0.0/16"
}
],
"Driver": "default",
"Options": {
}
},
"Internal": false,
"Labels": {
},
"Name": "my-multihost-network",
"Options": {
}
}
After this change, the request looks
like this (all aux-addresses preserved);
{
"Attachable": false,
"CheckDuplicate": true,
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Config": [
{
"AuxiliaryAddresses": {
"my-router": "192.168.1.5",
"my-switch": "192.168.1.6"
},
"Gateway": "192.168.0.100",
"IPRange": "192.168.1.0/24",
"Subnet": "192.168.0.0/16"
},
{
"AuxiliaryAddresses": {
"my-printer": "192.170.1.5",
"my-nas": "192.170.1.6"
},
"Gateway": "192.170.0.100",
"Subnet": "192.170.0.0/16"
}
],
"Driver": "default",
"Options": {
}
},
"Internal": false,
"Labels": {
},
"Name": "my-multihost-network",
"Options": {
}
}
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2016-09-27 01:12:29 +02:00
Yong Tang
f676fc93c3
Fix partial/full filter issue in service tasks --filter
...
This fix tries to address the issue related to 24108 and 24790, and
also the case from 24620#issuecomment-233715656
The reason for the failure case in the above mentioned issues is that
currently Task names are actually indexed by Service Name
(`e.ServiceAnnotations.Name`)
To fix it, a pull request in swarmkit (swarmkit/pull/1193) has been
opened separately.
This fix adds the integration tests for the above mentioned issues.
Swarmkit revendoring is needed to completely fix the issues.
This fix fixes 24108.
This fix fixes 24790.
This fix is related to 24620.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2016-09-26 16:01:20 -07:00
Aaron Lehmann
33466024e7
Merge pull request #26219 from dmcgowan/optimize-token-server-error-test
...
Update token server error test to not fail on retries
2016-09-26 23:17:09 +01:00
Victor Vieux
f67096c20b
Merge pull request #26744 from LK4D4/attach_before_start
...
libcontainerd: attach streams before create
2016-09-26 13:08:05 -07:00