mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Docker api inspect Assert HostConfig
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
402cf238bf
commit
86c72aa01f
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func (s *DockerSuite) TestInspectApiContainerVolumeDriver(c *check.C) {
|
||||||
c.Assert(ok, checker.False, check.Commentf("Api version 1.21 expected to not include VolumeDriver in 'Config'"))
|
c.Assert(ok, checker.False, check.Commentf("Api version 1.21 expected to not include VolumeDriver in 'Config'"))
|
||||||
|
|
||||||
config, ok = inspectJSON["HostConfig"]
|
config, ok = inspectJSON["HostConfig"]
|
||||||
c.Assert(ok, checker.True, check.Commentf("Unable to find 'Config'"))
|
c.Assert(ok, checker.True, check.Commentf("Unable to find 'HostConfig'"))
|
||||||
cfg = config.(map[string]interface{})
|
cfg = config.(map[string]interface{})
|
||||||
_, ok = cfg["VolumeDriver"]
|
_, ok = cfg["VolumeDriver"]
|
||||||
c.Assert(ok, checker.True, check.Commentf("Api version 1.21 expected to include VolumeDriver in 'HostConfig'"))
|
c.Assert(ok, checker.True, check.Commentf("Api version 1.21 expected to include VolumeDriver in 'HostConfig'"))
|
||||||
|
|
Loading…
Reference in a new issue