Organizations

Implementation details for API organizations

Coverage Overview

Organizations is supported by LocalStack only in the pro image.

AvailabilityTesting*
OperationImplementedImageInternal Test SuiteExternal Test SuiteTerraform ValidatedAWS ValidatedSnapshot TestedDetails
AcceptHandshake
AttachPolicy✔️pro✔️
CancelHandshake
CloseAccount✔️pro✔️
CreateAccount✔️pro✔️✔️Show Tests
CreateGovCloudAccount
CreateOrganization✔️pro✔️✔️✔️Show Tests
CreateOrganizationalUnit✔️pro✔️✔️
CreatePolicy✔️pro✔️✔️✔️Show Tests
DeclineHandshake
DeleteOrganization✔️pro✔️✔️✔️Show Tests
DeleteOrganizationalUnit✔️pro✔️✔️
DeletePolicy✔️pro✔️✔️✔️Show Tests
DeleteResourcePolicy
DeregisterDelegatedAdministrator✔️pro✔️
DescribeAccount✔️pro✔️✔️Show Tests
DescribeCreateAccountStatus✔️pro✔️
DescribeEffectivePolicy
DescribeHandshake
DescribeOrganization✔️pro✔️✔️✔️Show Tests
DescribeOrganizationalUnit✔️pro✔️✔️
DescribePolicy✔️pro✔️✔️
DescribeResourcePolicy
DetachPolicy✔️pro✔️
DisableAWSServiceAccess✔️pro✔️
DisablePolicyType✔️pro✔️
EnableAWSServiceAccess✔️pro✔️✔️
EnableAllFeatures
EnablePolicyType✔️pro✔️
InviteAccountToOrganization
LeaveOrganization
ListAWSServiceAccessForOrganization✔️pro✔️✔️
ListAccounts✔️pro✔️✔️
ListAccountsForParent✔️pro✔️✔️
ListChildren✔️pro✔️
ListCreateAccountStatus✔️pro✔️
ListDelegatedAdministrators✔️pro✔️
ListDelegatedServicesForAccount✔️pro✔️
ListHandshakesForAccount
ListHandshakesForOrganization
ListOrganizationalUnitsForParent✔️pro✔️
ListParents✔️pro✔️✔️
ListPolicies✔️pro✔️✔️
ListPoliciesForTarget✔️pro✔️
ListRoots✔️pro✔️✔️
ListTagsForResource✔️pro✔️✔️✔️Show Tests
ListTargetsForPolicy✔️pro✔️
MoveAccount✔️pro✔️
PutResourcePolicy
RegisterDelegatedAdministrator✔️pro✔️✔️
RemoveAccountFromOrganization✔️pro✔️✔️Show Tests
TagResource✔️pro✔️✔️✔️Show Tests
UntagResource✔️pro✔️✔️
UpdateOrganizationalUnit✔️pro✔️
UpdatePolicy✔️pro✔️

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 execution 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


CreateAccount

Parameters: AccountName, Email
  • LocalStack Pro
    • test_create_and_describe_account LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_and_describe_account HTTP Status Code: 200
    • test_create_account_with_non_existing_org LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_account_with_non_existing_org HTTP Status Code: 400 (AWSOrganizationsNotInUseException)

CreateOrganization

Parameters: FeatureSet
  • LocalStack Pro
    • test_create_and_describe_account LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_and_describe_account HTTP Status Code: 200
    • test_organization LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_organization HTTP Status Code: 200
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200

CreatePolicy

Parameters: Content, Description, Name, Tags, Type
  • LocalStack Pro
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200

DeleteOrganization

Parameters: - (without any parameters)
  • LocalStack Pro
    • test_create_and_describe_account LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_and_describe_account HTTP Status Code: 200
    • test_organization LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_organization HTTP Status Code: 200
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200

DeletePolicy

Parameters: PolicyId
  • LocalStack Pro
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200

DescribeAccount

Parameters: AccountId
  • LocalStack Pro
    • test_create_and_describe_account LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_and_describe_account HTTP Status Code: 200

DescribeOrganization

Parameters: - (without any parameters)
  • LocalStack Pro
    • test_organization LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_organization HTTP Status Code: 200
    • test_create_account_with_non_existing_org LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_account_with_non_existing_org HTTP Status Code: 400 (AWSOrganizationsNotInUseException)
    • test_organization LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_organization HTTP Status Code: 400 (AWSOrganizationsNotInUseException)

ListTagsForResource

Parameters: ResourceId
  • LocalStack Pro
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200

RemoveAccountFromOrganization

Parameters: AccountId
  • LocalStack Pro
    • test_create_and_describe_account LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_create_and_describe_account HTTP Status Code: 200

TagResource

Parameters: ResourceId, Tags
  • LocalStack Pro
    • test_tag_policy LocalStack Pro: tests/aws/services/organizations/test_organizations.py::TestOrganizations::test_tag_policy HTTP Status Code: 200