Model: OrganizationsBackend
Method: create_organization
create_organization now creates master account, root ou, and a
default service control policy objects and adds them to the
OrganizationsBackend object. the policy is attached to both
the master account and the root ou. any subsiquently created
accounts or OU also have the default policy attached.
adding support for organizations service control policies
* [Resolves#2196] - endpoints for querying organizations SC policies
I have added the following mock endpoints to the Organizations service:
- create_policy
- list_policies
- describe_policy
- attach_policy
- list_policies_for_target
- list_targets_for_policy
refactered classes: FakeRoot inherits from FakeOrganizationsUnit
add root_id attribute to class FakeOrganization
dropped 'roots' attribute from class OrganizationaBackend
endpoints covers so far:
- create_organization
- describe_organization
- create_account
- describe_account
- list_accounts
all tests passing.
could use some advise from maintaners.