def print_Locations(cp): template = getTemplate("GlueCluster", "GlueLocationLocalID") cluster_id = getClusterID(cp) for subClusterId in getSubClusterIDs(cp): for entry in getApplications(cp): entry['subClusterId'] = subClusterId entry['clusterId'] = cluster_id printTemplate(template, entry)
def test_osg_version(self): """ Test the osg-version function and test for the contents in the software. """ my_version = 'OSG-magic-version' cp = config("test_configs/red.conf") version = getOSGVersion(cp) print version self.failUnless(version == my_version, msg="Computed OSG version does"\ " not match the test case's OSG version.") found_osg = False locations = getApplications(cp) for loc in locations: if loc['locationId'] == my_version: self.failUnless(loc['locationName'] == my_version) self.failUnless(loc['version'] == my_version) found_osg = True if found_osg == False: self.fail(msg="OSG version not in software list!")