示例#1
0
def test_efs_section_to_cfn(mocker, section_dict, expected_cfn_params):
    mocker.patch("pcluster.config.param_types.get_efs_mount_target_id",
                 return_value="valid_mount_target_id")
    mocker.patch(
        "pcluster.config.pcluster_config.PclusterConfig.get_master_availability_zone",
        return_value="mocked_avail_zone")
    utils.assert_section_to_cfn(mocker, EFS, section_dict, expected_cfn_params)
def test_raid_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, RAID, section_dict,
                                expected_cfn_params)
示例#3
0
def test_fsx_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, FSX, section_dict, expected_cfn_params)
示例#4
0
def test_ebs_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, EBS, section_dict, expected_cfn_params)
示例#5
0
def test_dcv_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, DCV, section_dict, expected_cfn_params)
def test_vpc_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, VPC, section_dict, expected_cfn_params)
示例#7
0
def test_scaling_section_to_cfn(mocker, section_dict, expected_cfn_params):
    utils.assert_section_to_cfn(mocker, SCALING, section_dict,
                                expected_cfn_params)