X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/934d880aa5d10ed3382f9924a9a9f5694b41f266..2d046b9d2f27779f1e74e951fd7108dd88ba57c3:/lib/dispatchcloud/node_size_test.go diff --git a/lib/dispatchcloud/node_size_test.go b/lib/dispatchcloud/node_size_test.go index e948538160..ea98efe1d2 100644 --- a/lib/dispatchcloud/node_size_test.go +++ b/lib/dispatchcloud/node_size_test.go @@ -5,7 +5,7 @@ package dispatchcloud import ( - "git.curoverse.com/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/arvados" check "gopkg.in/check.v1" ) @@ -128,4 +128,16 @@ func (*NodeSizeSuite) TestScratchForDockerImage(c *check.C) { // Estimated size is 384 MiB (402653184 bytes) // Want to reserve 2x the estimated size, so 805306368 bytes c.Check(n, check.Equals, int64(805306368)) + + n = EstimateScratchSpace(&arvados.Container{ + ContainerImage: "d5025c0f29f6eef304a7358afa82a822+-342", + }) + // Parse error will return 0 + c.Check(n, check.Equals, int64(0)) + + n = EstimateScratchSpace(&arvados.Container{ + ContainerImage: "d5025c0f29f6eef304a7358afa82a822+34", + }) + // Short manifest will return 0 + c.Check(n, check.Equals, int64(0)) }