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