EFS (Elastic File System)

Implementation details for API efs

Coverage Overview

Elastic File System (EFS) is supported by LocalStack only in the pro version.

AvailabilityTesting*
OperationImplementedEditionInternal Test SuiteExternal Test SuiteTerraform ValidatedAWS ValidatedSnapshot TestedDetails
CreateAccessPoint
CreateFileSystem✔️pro✔️✔️✔️✔️✔️Show Tests
CreateMountTarget
CreateReplicationConfiguration
CreateTags
DeleteAccessPoint
DeleteFileSystem✔️pro✔️✔️✔️✔️✔️Show Tests
DeleteFileSystemPolicy
DeleteMountTarget
DeleteReplicationConfiguration
DeleteTags
DescribeAccessPoints
DescribeAccountPreferences
DescribeBackupPolicy
DescribeFileSystemPolicy✔️pro✔️✔️✔️✔️✔️Show Tests
DescribeFileSystems✔️pro✔️✔️✔️✔️✔️Show Tests
DescribeLifecycleConfiguration✔️pro✔️✔️✔️Show Tests
DescribeMountTargetSecurityGroups
DescribeMountTargets
DescribeReplicationConfigurations
DescribeTags
ListTagsForResource
ModifyMountTargetSecurityGroups
PutAccountPreferences
PutBackupPolicy
PutFileSystemPolicy✔️pro✔️✔️✔️✔️✔️Show Tests
PutLifecycleConfiguration✔️pro✔️✔️✔️Show Tests
TagResource
UntagResource
UpdateFileSystem

Terminology

  • Internal Test Suite: tested by LocalStack's internal integration test suite
  • External Test Suite: covered by an external integration test suite, that runs against LocalStack
  • Terraform Validated: operation tested with Terraform
  • AWS Validated: the integration test that includes this operation call was validated against AWS
  • Snapshot Tested: the operation is part of a snapshot parity test, which verifies the responses by LocalStack and AWS are the same

Testing Details

This section gives an overview about the internal integration test suite and the specific test cases that recorded the API call.

How to read the test details?

For each operation we put up a list of the related integration test cases.
Those operation calls have been recorded during the exeuction of the outlined test cases. Some calls might be internal, i.e., they are not explicitly called in the test, but are triggered implicitly by the LocalStack framework.

  • Parameters: The tests are ordered by the parameters used, which are highlighted in bold.
  • Test Details: LocalStack Community or LocalStack Pro indicates where the test originates. For each test you see:
    • test name
    • status code returned (which is the expected one for the test case)
    • information about validation:
      • AWS validated the test is validated against AWS, meaning it run successfully against real AWS as well
      • Snapshot Tested this is a snapshot parity test, meaning the responses are validated against AWS


CreateFileSystem

Parameters: Backup, CreationToken, Encrypted, PerformanceMode, ProvisionedThroughputInMibps, ThroughputMode
  • LocalStack Pro
    • test_url_output LocalStack Pro: tests/integration/cloudformation/resources/test_efs.py::test_url_output HTTP Status Code: 201 AWS validated Snapshot Tested
Parameters: CreationToken
  • LocalStack Pro
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 201 AWS validated Snapshot Tested
    • test_lifecycle_configuration LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_lifecycle_configuration HTTP Status Code: 201
Parameters: CreationToken, PerformanceMode
  • LocalStack Pro
    • test_create_efs LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_create_efs HTTP Status Code: 201

DeleteFileSystem

Parameters: FileSystemId
  • LocalStack Pro
    • test_url_output LocalStack Pro: tests/integration/cloudformation/resources/test_efs.py::test_url_output HTTP Status Code: 204 AWS validated Snapshot Tested
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 204 AWS validated Snapshot Tested
    • test_create_efs LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_create_efs HTTP Status Code: 204

DescribeFileSystemPolicy

Parameters: FileSystemId
  • LocalStack Pro
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 200 AWS validated Snapshot Tested

DescribeFileSystems

Parameters: - (without any parameters)
  • LocalStack Pro
    • test_create_efs LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_create_efs HTTP Status Code: 200
Parameters: FileSystemId
  • LocalStack Pro
    • test_url_output LocalStack Pro: tests/integration/cloudformation/resources/test_efs.py::test_url_output HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_url_output LocalStack Pro: tests/integration/cloudformation/resources/test_efs.py::test_url_output HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_efs LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_create_efs HTTP Status Code: 200
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 403 (AccessDeniedException) AWS validated Snapshot Tested
    • test_create_efs LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_create_efs HTTP Status Code: 404 (FileSystemNotFound)

DescribeLifecycleConfiguration

Parameters: FileSystemId
  • LocalStack Pro
    • test_lifecycle_configuration LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_lifecycle_configuration HTTP Status Code: 200

PutFileSystemPolicy

Parameters: BypassPolicyLockoutSafetyCheck, FileSystemId, Policy
  • LocalStack Pro
    • test_efs_file_system_policy LocalStack Pro: tests/integration/iam_enforcement/test_iam_enforcement.py::TestIAMEnforcementResourceBasedPolicies::test_efs_file_system_policy HTTP Status Code: 200 AWS validated Snapshot Tested

PutLifecycleConfiguration

Parameters: FileSystemId, LifecyclePolicies
  • LocalStack Pro
    • test_lifecycle_configuration LocalStack Pro: tests/integration/test_efs.py::TestEfsProvider::test_lifecycle_configuration HTTP Status Code: 200


Last modified March 20, 2023: improve Coverage Docs (#505) (46f2fb0c0)