Add job configuration test for resource groups and handler plugins.

This commit is contained in:
John Chilton
2019-05-01 15:09:24 -04:00
parent 1994c3598f
commit f6e54b49db
+10
View File
@@ -230,6 +230,16 @@ class JobConfXmlParserTestCase(unittest.TestCase):
assert env_dest.env[3]["execute"] == "module load javastuff/2.10"
def test_hanlder_runner_plugins(self):
self.__with_advanced_config()
assert self.job_config.handler_runner_plugins["sge_handler"] == ["sge"]
assert "special_handler1" not in self.job_config.handler_runner_plugins
def test_resource_groups(self):
self.__with_advanced_config()
assert self.job_config.default_resource_group == "default"
assert self.job_config.resource_groups["memoryonly"] == ["memory"]
def test_macro_expansion(self):
self.__with_advanced_config()
for name in ["foo_small", "foo_medium", "foo_large", "foo_longrunning"]: