Skip to content

Commit 50085a0

Browse files
Sean Smithtilne
authored andcommitted
Test for Default FSx Configuration
Signed-off-by: Sean Smith <[email protected]>
1 parent 13d4418 commit 50085a0

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

cli/tests/pcluster/config/test_section_fsx.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,24 @@ def test_fsx_param_from_file(mocker, param_key, param_value, expected_value, exp
209209
"MasterSubnetId": "subnet-12345678",
210210
"AvailabilityZone": "mocked_avail_zone",
211211
"FSXOptions": "fsx,fs-12345678901234567,10,key1,1020,s3://test-export,"
212-
"s3://test-import,10,SCRATCH_1,50",
212+
"s3://test-import,1:10:17,SCRATCH_1,50",
213213
},
214214
),
215215
),
216216
("test1,test2", SystemExit()),
217217
("test4", SystemExit()),
218218
("test5", SystemExit()),
219+
(
220+
"test6",
221+
utils.merge_dicts(
222+
DefaultCfnParams["cluster"].value,
223+
{
224+
"MasterSubnetId": "subnet-12345678",
225+
"AvailabilityZone": "mocked_avail_zone",
226+
"FSXOptions": "/fsx,NONE,3600,NONE,NONE,NONE,NONE,NONE,NONE,NONE",
227+
},
228+
),
229+
),
219230
],
220231
)
221232
def test_fsx_from_file_to_cfn(mocker, pcluster_config_reader, settings_label, expected_cfn_params):

cli/tests/pcluster/config/test_section_fsx/test_fsx_from_file_to_cfn/pcluster.config.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fsx_kms_key_id = key1
3030
imported_file_chunk_size = 1020
3131
export_path = s3://test-export
3232
import_path = s3://test-import
33-
weekly_maintenance_start_time = 10
33+
weekly_maintenance_start_time = 1:10:17
3434
deployment_type = SCRATCH_1
3535
per_unit_storage_throughput = 50
3636

@@ -45,3 +45,7 @@ shared_dir = /fsx
4545
performance_mode = generalPurpose
4646
encrypted = true
4747
export_path = s3://test-export
48+
49+
[fsx test6]
50+
shared_dir = /fsx
51+
storage_capacity = 3600

0 commit comments

Comments
 (0)