File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
tests/integration-tests/tests/storage Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 33
33
from utils import generate_stack_name , random_alphanumeric , retrieve_cfn_outputs
34
34
35
35
from tests .common .schedulers_common import SlurmCommands
36
- from tests .common .utils import get_aws_domain , retrieve_latest_ami
36
+ from tests .common .utils import CLASSIC_AWS_DOMAIN , get_aws_domain , retrieve_latest_ami
37
37
38
38
39
39
def get_cluster_subnet_ids_groups (cluster : Cluster , scheduler : str , include_head_node : bool = True ):
@@ -675,11 +675,20 @@ def assert_fsx_lustre_correctly_mounted(
675
675
mount_name = mount_name ,
676
676
mount_dir = mount_dir ,
677
677
mount_options = mount_options ,
678
- aws_domain_regex = re .escape (get_aws_domain (region )),
678
+ aws_domain_regex = re .escape (get_aws_domain_for_fsx (region )),
679
679
),
680
680
)
681
681
682
682
683
+ def get_aws_domain_for_fsx (region ):
684
+ # Return the AWS domain for FSx resources.
685
+ # Notice that China and GovCloud use the Commercial domain.
686
+ if "us-iso" in region :
687
+ return get_aws_domain (region )
688
+ else :
689
+ return CLASSIC_AWS_DOMAIN
690
+
691
+
683
692
def get_mount_name (fsx_fs_id , region ):
684
693
fsx = boto3 .client ("fsx" , region_name = region )
685
694
if fsx_fs_id .startswith ("fc-" ):
You can’t perform that action at this time.
0 commit comments