Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)