[ARVADOS] updated: 1.1.0-100-ga18005f

Git user git at public.curoverse.com
Tue Nov 7 13:58:38 EST 2017


Summary of changes:
 sdk/cwl/tests/test_fsaccess.py | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

       via  a18005f8b35a68b4fcd9ccdf76832b28e564289c (commit)
      from  a70727762dafee667b022331307f6c0f949fd7e7 (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 a18005f8b35a68b4fcd9ccdf76832b28e564289c
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Nov 7 13:58:16 2017 -0500

    12568: Update test to check which collection gets evicted
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/sdk/cwl/tests/test_fsaccess.py b/sdk/cwl/tests/test_fsaccess.py
index 43a508f..d52e948 100644
--- a/sdk/cwl/tests/test_fsaccess.py
+++ b/sdk/cwl/tests/test_fsaccess.py
@@ -37,21 +37,33 @@ class TestFsAccess(unittest.TestCase):
         cr().manifest_text.return_value = 'x' * 524289
         self.assertEqual(0, cache.total)
         c1 = cache.get("99999999999999999999999999999991+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*1, cache.total)
 
         c2 = cache.get("99999999999999999999999999999992+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*2, cache.total)
 
         c1 = cache.get("99999999999999999999999999999991+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*2, cache.total)
 
         c3 = cache.get("99999999999999999999999999999993+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*3, cache.total)
+
         c4 = cache.get("99999999999999999999999999999994+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*3, cache.total)
+
         c5 = cache.get("99999999999999999999999999999995+99")
-        self.assertEqual((524289*128)*3, cache.total)
-        c6 = cache.get("99999999999999999999999999999996+99")
+        self.assertNotIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524289*128)*3, cache.total)
 
 
@@ -61,19 +73,36 @@ class TestFsAccess(unittest.TestCase):
         cr().manifest_text.return_value = 'x' * 524287
         self.assertEqual(0, cache.total)
         c1 = cache.get("99999999999999999999999999999991+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*1, cache.total)
 
         c2 = cache.get("99999999999999999999999999999992+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*2, cache.total)
 
         c1 = cache.get("99999999999999999999999999999991+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*2, cache.total)
 
         c3 = cache.get("99999999999999999999999999999993+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*3, cache.total)
+
         c4 = cache.get("99999999999999999999999999999994+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*4, cache.total)
+
         c5 = cache.get("99999999999999999999999999999995+99")
+        self.assertIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*4, cache.total)
+
         c6 = cache.get("99999999999999999999999999999996+99")
+        self.assertNotIn("99999999999999999999999999999991+99", cache.collections)
+        self.assertNotIn("99999999999999999999999999999992+99", cache.collections)
         self.assertEqual((524287*128)*4, cache.total)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list