示例#1
0
 def test_json_to_profile_data_staging(self):
     api = BatsimJobProfileAPI.get_data_staging("src", "dest", 10)
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, DataStagingJobProfile)
示例#2
0
 def test_json_to_profile_invalid_type_must_raise(self):
     api = BatsimJobProfileAPI.get_parallel_homogeneous_pfs("nfs", 1, 1)
     api["type"] = "NewType"
     with pytest.raises(NotImplementedError):
         Converters.json_to_profile("n", api)
示例#3
0
 def test_json_to_profile_parallel_homogeneous_pfs(self):
     api = BatsimJobProfileAPI.get_parallel_homogeneous_pfs("nfs", 1, 1)
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, ParallelHomogeneousPFSJobProfile)
示例#4
0
 def test_json_to_profile_parallel_composed(self):
     api = BatsimJobProfileAPI.get_composed(1, ["1", "2"])
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, ComposedJobProfile)
示例#5
0
 def test_json_to_profile_parallel_homogeneous_total(self):
     api = BatsimJobProfileAPI.get_parallel_homogeneous_total(10, 10)
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, ParallelHomogeneousTotalJobProfile)
示例#6
0
 def test_json_to_profile_parallel(self):
     api = BatsimJobProfileAPI.get_parallel(10)
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, ParallelJobProfile)
示例#7
0
 def test_json_to_profile_delay(self):
     api = BatsimJobProfileAPI.get_delay(10)
     p = Converters.json_to_profile("p", api)
     assert isinstance(p, DelayJobProfile)