@@ -36,10 +36,9 @@ def test_ebs_single(scheduler, pcluster_config_reader, clusters_factory):
3636 _test_ebs_correctly_shared (remote_command_executor , mount_dir , scheduler_commands )
3737
3838
39- @pytest .mark .regions (["ap-northeast-2" ])
40- @pytest .mark .instances (["c5.xlarge" ]) # Test on EBS-Only and NVMe instances
41- @pytest .mark .schedulers (["sge" ])
42- @pytest .mark .oss (["alinux2" ]) # centos6 does not support GPT
39+ # centos6 does not support GPT
40+ @pytest .mark .dimensions ("ap-northeast-2" , "c5.xlarge" , "alinux2" , "sge" )
41+ @pytest .mark .dimensions ("cn-northwest-1" , "c4.xlarge" , "ubuntu1804" , "slurm" )
4342@pytest .mark .usefixtures ("os" , "instance" )
4443def test_ebs_snapshot (
4544 request , vpc_stacks , region , scheduler , pcluster_config_reader , clusters_factory , snapshots_factory
@@ -69,10 +68,8 @@ def test_ebs_snapshot(
6968
7069
7170# cn-north-1 does not support KMS
72- @pytest .mark .regions (["ca-central-1" ])
73- @pytest .mark .instances (["c5.xlarge" ])
74- @pytest .mark .schedulers (["slurm" , "awsbatch" ])
75- @pytest .mark .oss (["ubuntu1804" ])
71+ @pytest .mark .dimensions ("ca-central-1" , "c5.xlarge" , "alinux2" , "awsbatch" )
72+ @pytest .mark .dimensions ("ca-central-1" , "c5.xlarge" , "ubuntu1804" , "slurm" )
7673@pytest .mark .usefixtures ("region" , "os" , "instance" )
7774def test_ebs_multiple (scheduler , pcluster_config_reader , clusters_factory ):
7875 mount_dirs = ["/ebs_mount_dir_{0}" .format (i ) for i in range (0 , 5 )]
@@ -87,10 +84,7 @@ def test_ebs_multiple(scheduler, pcluster_config_reader, clusters_factory):
8784 _test_ebs_correctly_shared (remote_command_executor , mount_dir , scheduler_commands )
8885
8986
90- @pytest .mark .regions (["cn-northwest-1" ])
91- @pytest .mark .instances (["c4.xlarge" ])
92- @pytest .mark .schedulers (["slurm" ])
93- @pytest .mark .oss (["alinux" ])
87+ @pytest .mark .dimensions ("cn-northwest-1" , "c4.xlarge" , "alinux" , "slurm" )
9488@pytest .mark .usefixtures ("region" , "os" , "instance" )
9589def test_default_ebs (scheduler , pcluster_config_reader , clusters_factory ):
9690 cluster_config = pcluster_config_reader ()
@@ -103,10 +97,7 @@ def test_default_ebs(scheduler, pcluster_config_reader, clusters_factory):
10397 _test_ebs_correctly_shared (remote_command_executor , mount_dir , scheduler_commands )
10498
10599
106- @pytest .mark .regions (["us-gov-east-1" ])
107- @pytest .mark .instances (["c5.xlarge" ])
108- @pytest .mark .schedulers (["torque" ])
109- @pytest .mark .oss (["ubuntu1604" ])
100+ @pytest .mark .dimensions ("us-gov-east-1" , "c5.xlarge" , "ubuntu1604" , "torque" )
110101@pytest .mark .usefixtures ("region" , "os" , "instance" )
111102def test_ebs_single_empty (scheduler , pcluster_config_reader , clusters_factory ):
112103 cluster_config = pcluster_config_reader ()
0 commit comments