update dockerclient

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-02-02 12:08:09 -08:00
parent 76d0171319
commit f26a50a483
3 changed files with 10 additions and 17 deletions

2
Godeps/Godeps.json generated
View File

@ -167,7 +167,7 @@
},
{
"ImportPath": "github.com/samalba/dockerclient",
"Rev": "8328370620b71cb5acadd41f259dca96865a069b"
"Rev": "154a327e7f551978278530db4771e2f05376b541"
},
{
"ImportPath": "github.com/samuel/go-zookeeper/zk",

View File

@ -236,6 +236,8 @@ type ContainerInfo struct {
Gateway string
Bridge string
Ports map[string][]PortBinding
Networks map[string]*EndpointSettings
}
SysInitPath string
ResolvConfPath string

View File

@ -235,24 +235,15 @@ func TestPortFilterRandomAssignment(t *testing.T) {
},
},
}},
NetworkSettings: struct {
IPAddress string `json:"IpAddress"`
IPPrefixLen int `json:"IpPrefixLen"`
Gateway string
Bridge string
Ports map[string][]dockerclient.PortBinding
}{
Ports: map[string][]dockerclient.PortBinding{
"80/tcp": {
{
HostIp: "127.0.0.1",
HostPort: "1234",
},
},
},
},
},
}
container.Info.NetworkSettings.Ports = map[string][]dockerclient.PortBinding{
"80/tcp": {
{
HostIp: "127.0.0.1",
HostPort: "1234",
},
}}
assert.NoError(t, nodes[0].AddContainer(container))