Example #1
0
 def test_maxppn(self):
     """Test get_cluster_maxppn"""
     for cluster in CLUSTERDATA.keys():
         cd=CLUSTERDATA[cluster]
         self.assertEqual(get_cluster_maxppn(cluster),
                          cd['NP'] if 'NP' in cd else cd['DEFMAXNP'],
                          msg="Found expected maxppn for cluster %s" % cluster)
Example #2
0
    def test_consts(self):
        """The constants shouldn't change by accident"""
        self.assertEqual(MIN_VMEM, 1536 * 1024 * 1024, msg="MIN_VMEM as expected")
        self.assertEqual(DEFAULT_SERVER_CLUSTER, 'delcatty', msg="DEFAULT_SERVER_CLUSTER, as expected")

        self.assertTrue(DEFAULT_SERVER_CLUSTER in CLUSTERDATA, msg='DEFAULT_SERVER_CLUSTER in CLUSTERDATA')

        self.assertEqual(DEFAULT_SERVER, 'default', msg="DEFAULT_SERVER as expected")
        self.assertEqual(sorted(CLUSTERDATA.keys()),
                         SORTED_CLUSTERS + ['zzzmytest', 'zzzmytestavail'],
                         msg='sorted clusters from CLUSTERDATA')
Example #3
0
 def tearDown(self):
     CLUSTERDATA.pop('gengar')
     super(TestSubmitfilter, self).tearDown()
Example #4
0
 def tearDown(self):
     CLUSTERDATA.pop('zzzmytest')
     CLUSTERDATA.pop('zzzmytestavail')
     super(TestPbsClusterdata, self).tearDown()
Example #5
0
 def tearDown(self):
     CLUSTERDATA.pop('gengar')
     super(TestSubmitfilter, self).tearDown()