mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13146 from rajdeepd/dry-run-test-1
Modified Test Case to include check for Memory and MemorySwap
This commit is contained in:
commit
b37abf2528
1 changed files with 11 additions and 0 deletions
|
@ -853,6 +853,17 @@ func (s *DockerSuite) TestContainerApiPostCreateNull(c *check.C) {
|
|||
if out != "" {
|
||||
c.Fatalf("expected empty string, got %q", out)
|
||||
}
|
||||
|
||||
outMemory, errMemory := inspectField(container.Id, "HostConfig.Memory")
|
||||
c.Assert(outMemory, check.Equals, "0")
|
||||
if errMemory != nil {
|
||||
c.Fatal(errMemory, outMemory)
|
||||
}
|
||||
outMemorySwap, errMemorySwap := inspectField(container.Id, "HostConfig.MemorySwap")
|
||||
c.Assert(outMemorySwap, check.Equals, "0")
|
||||
if errMemorySwap != nil {
|
||||
c.Fatal(errMemorySwap, outMemorySwap)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestCreateWithTooLowMemoryLimit(c *check.C) {
|
||||
|
|
Loading…
Reference in a new issue