[ARVADOS] updated: 1.3.0-2249-g12eec0fb0

Git user git at public.arvados.org
Thu Mar 5 21:43:24 UTC 2020


Summary of changes:
 lib/dispatchcloud/container/queue_test.go | 7 +++++++
 1 file changed, 7 insertions(+)

       via  12eec0fb0fc7cce9d012c81b44a9684ea45d6926 (commit)
      from  643b160f9af9a245607d4cbee488d08f8516df5e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 12eec0fb0fc7cce9d012c81b44a9684ea45d6926
Author: Tom Clegg <tom at tomclegg.ca>
Date:   Thu Mar 5 16:42:39 2020 -0500

    16219: Test populated container fields.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at tomclegg.ca>

diff --git a/lib/dispatchcloud/container/queue_test.go b/lib/dispatchcloud/container/queue_test.go
index 31f321488..0075ee324 100644
--- a/lib/dispatchcloud/container/queue_test.go
+++ b/lib/dispatchcloud/container/queue_test.go
@@ -106,6 +106,13 @@ func (suite *IntegrationSuite) TestGetLockUnlockCancel(c *check.C) {
 
 func (suite *IntegrationSuite) TestCancelIfNoInstanceType(c *check.C) {
 	errorTypeChooser := func(ctr *arvados.Container) (arvados.InstanceType, error) {
+		// Make sure the relevant container fields are
+		// actually populated.
+		c.Check(ctr.ContainerImage, check.Equals, "test")
+		c.Check(ctr.RuntimeConstraints.VCPUs, check.Equals, 4)
+		c.Check(ctr.RuntimeConstraints.RAM, check.Equals, int64(12000000000))
+		c.Check(ctr.Mounts["/tmp"].Capacity, check.Equals, int64(24000000000))
+		c.Check(ctr.Mounts["/var/spool/cwl"].Capacity, check.Equals, int64(24000000000))
 		return arvados.InstanceType{}, errors.New("no suitable instance type")
 	}
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list