@@ -200,6 +200,7 @@ def test_multiple_efs(
200200 encryption_in_transits ,
201201 )
202202
203+
203204@pytest .mark .usefixtures ("instance" )
204205def test_efs_access_point (
205206 os ,
@@ -251,8 +252,8 @@ def test_efs_access_point(
251252 "Resource" : f"arn:{ get_arn_partition (region )} :elasticfilesystem:{ region } :{ account_id } :"
252253 f"file-system/{ efs_filesystem_id } " ,
253254 "Condition" : {
254- "StringNotLike" : {"elasticfilesystem:AccessPointArn" :
255- f"arn:{ get_arn_partition (region )} :elasticfilesystem:{ region } :{ account_id } :access-point/{ access_point_id } "
255+ "StringNotLike" : {
256+ "elasticfilesystem:AccessPointArn" : f"arn:{ get_arn_partition (region )} :elasticfilesystem:{ region } :{ account_id } :access-point/{ access_point_id } "
256257 }
257258 },
258259 },
@@ -266,14 +267,16 @@ def test_efs_access_point(
266267 "elasticfilesystem:ClientWrite" ,
267268 ],
268269 "Resource" : f"arn:{ get_arn_partition (region )} :elasticfilesystem:{ region } :{ account_id } :"
269- f"file-system/{ efs_filesystem_id } "
270- }
271- ]
270+ f"file-system/{ efs_filesystem_id } " ,
271+ },
272+ ],
272273 }
273274 boto3 .client ("efs" ).put_file_system_policy (FileSystemId = efs_filesystem_id , Policy = json .dumps (policy ))
274275
275276 mount_dir = "efs_mount_dir"
276- cluster_config = pcluster_config_reader (mount_dir = mount_dir , efs_filesystem_id = efs_filesystem_id , access_point_id = access_point_id )
277+ cluster_config = pcluster_config_reader (
278+ mount_dir = mount_dir , efs_filesystem_id = efs_filesystem_id , access_point_id = access_point_id
279+ )
277280 cluster = clusters_factory (cluster_config )
278281 remote_command_executor = RemoteCommandExecutor (cluster )
279282
@@ -283,7 +286,6 @@ def test_efs_access_point(
283286 _test_efs_correctly_shared (remote_command_executor , mount_dir , scheduler_commands )
284287
285288
286-
287289def _check_efs_after_nodes_reboot (
288290 all_mount_dirs ,
289291 cluster ,
0 commit comments