@@ -200,6 +200,7 @@ def test_multiple_efs(
200
200
encryption_in_transits ,
201
201
)
202
202
203
+
203
204
@pytest .mark .usefixtures ("instance" )
204
205
def test_efs_access_point (
205
206
os ,
@@ -251,8 +252,8 @@ def test_efs_access_point(
251
252
"Resource" : f"arn:{ get_arn_partition (region )} :elasticfilesystem:{ region } :{ account_id } :"
252
253
f"file-system/{ efs_filesystem_id } " ,
253
254
"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 } "
256
257
}
257
258
},
258
259
},
@@ -266,14 +267,16 @@ def test_efs_access_point(
266
267
"elasticfilesystem:ClientWrite" ,
267
268
],
268
269
"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
+ ],
272
273
}
273
274
boto3 .client ("efs" ).put_file_system_policy (FileSystemId = efs_filesystem_id , Policy = json .dumps (policy ))
274
275
275
276
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
+ )
277
280
cluster = clusters_factory (cluster_config )
278
281
remote_command_executor = RemoteCommandExecutor (cluster )
279
282
@@ -283,7 +286,6 @@ def test_efs_access_point(
283
286
_test_efs_correctly_shared (remote_command_executor , mount_dir , scheduler_commands )
284
287
285
288
286
-
287
289
def _check_efs_after_nodes_reboot (
288
290
all_mount_dirs ,
289
291
cluster ,
0 commit comments