Commit Graph

54 Commits

Author SHA1 Message Date
kbalk
0fa43c85b4
Techdebt: Replace sure with regular assertions in Organizations (#6675)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2023-08-16 10:19:33 +00:00
Jonathan Loscalzo
ea826891d3
Add Tags to Organizations Policies (#6338) 2023-05-22 22:28:45 -07:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
David
79aaf2bc03
Organizations: Add delete_organizational_unit (#5635) 2022-11-03 15:13:06 -01:00
David
d4d6e3b939
Organizations: setting default FeatureSet to ALL in create_organization (#5497) 2022-09-28 09:29:43 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
79a2a9d423
Preparation for MultiAccount support (#5157) 2022-06-04 11:30:16 +00:00
Brian Pandola
eb3da8f91d Add Pagination for Organizations:ListAccountsForParent
Closes #5034
2022-05-13 22:12:18 -07:00
Brian Pandola
f389d507e8 Add Pagination for Organizations:ListOrganizationalUnitsForParent 2022-05-13 22:12:18 -07:00
Iain Samuel McLean Elder
a79df7bc87
fix(org): close_account matches public API (#5072) 2022-04-30 10:03:19 +00:00
donelupus
27e469d95e
Add organizations close_account feature (#5040) 2022-04-21 09:44:31 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Brian Pandola
a90d8c801b Add Pagination for Organizations:ListAccounts 2022-03-19 17:34:58 -07:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
efb19b92f0
CloudTrail improvements (#4875) 2022-02-19 23:45:36 -01:00
Daniel Fangl
ebe74d2eb0
disallow organization deletion when accounts are members, allow removal of accounts from organization (#4773) 2022-01-25 09:25:40 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
5f7167ce62
Organisations - Detach policy, and asserts it actually happens (#3759) 2021-08-22 10:49:48 +01:00
Bert Blommers
7acdfe4feb
Introduce Pylint to check for duplicate test method names (#3684) 2021-08-21 16:33:15 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
stromp
9e4972b43f
Add Tag support for other resource types then an account (#3982)
* - Adding checking for resource type in tag functions
- Adding TargetNotFoundException when no resource found
- Adding support for tags for root OU, OU and Policies
- Adding tests covering the new code
- Adding test for deletion of a tag

* fixed linting issue

* - renamed helper function to a more logical name
- added tests for helper function
- fixed bugs in tests for tag functions

Co-authored-by: Sjoerd Tromp <stromp@schubergphilis.com>
2021-06-05 15:12:17 +01:00
chrisw-dev
def46b5130
adding list_create_account_status to organization #3691 (#3692)
* adding list_create_account_status to organization #3691

* removing todo comment

Co-authored-by: Chris Walters <chriskwalters@hotmail.com>
2021-02-15 11:39:23 +00:00
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
Benjamin
82dbaadfc4
added organizations detach_policy response, model, and tests, issue #… (#3278)
* added organizations detach_policy response, model, and tests, issue #3239

Signed-off-by: Ben <ben.lipscomb@fmr.com>

* Created individual tests for detach_policy exceptions, updated regex statements for Root, OU, and Account Id
2020-09-25 16:55:29 +01:00
Anton Grübel
252d679b27
Organizations - implement Policy Type functionality (#3207)
* Add organizations.enable_policy_type

* Add organizations.disable_policy_type

* Add support for AISERVICES_OPT_OUT_POLICY
2020-08-02 10:56:19 +01:00
Anton Grübel
8162947ebb
Organizations - implement Delegated Administrator functionality (#3200)
* Add organizations.register_delegated_administrator

* Add organizations.list_delegated_administrators

* Add organizations.list_delegated_services_for_account

* Add organizations.deregister_delegated_administrator

* Fix Python2 incompatibility
2020-07-31 16:32:57 +01:00
Bert Blommers
03dd55d39d
Organisations - Put back assertions that got lost in a merge (#3184) 2020-07-27 12:36:31 +01:00
Hector Acosta
cdc4385e2a
Various changes to organizations endpoint (#3175)
* Raise DuplicatePolicyException when a policy with the same name exists

* Implement update_policy

* Implement delete_policy
2020-07-27 12:32:11 +01:00
Anton Grübel
f31f8e08c1
Organizations - implement AWS Service Access functionality (#3122)
* Add organizations.enable_aws_service_access

* Add organizations.list_aws_service_access_for_organization

* Add organizations.disable_aws_service_access
2020-07-14 10:27:39 +01:00
Paweł Tomak
fc9eab2591
Raise DuplicateOrganizationalUnitException
Calling UpdateOrganizationalUnit with name that already exists should
raise proper error.
2020-02-06 12:38:37 +01:00
Paweł Tomak
14ebf29a61
Add UpdateOrganizationalUnit endpoint to Organizations API 2020-02-06 11:49:41 +01:00
gruebel
158db1f5d6 Move exception to dedicated class 2019-11-21 22:03:25 +01:00
gruebel
d0ef72725c Add organizations.untag_resource 2019-11-17 15:28:38 +01:00
gruebel
c10afa3ab5 Add organizations.list_tags_for_resource 2019-11-17 15:10:38 +01:00
gruebel
febec75364 Add organizations.tag_resource 2019-11-17 14:52:57 +01:00
Stephen Muss
a6255f9801 Added describe_create_account_status to organizations 2019-11-06 20:43:21 +11:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Ashley Gould
7d453fec9a [Resolves #2355] - create_organization(): add master account, default policy
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.
2019-08-06 16:52:31 -07:00
Ashley Gould
a3f6d2c110 [Resolves #2196] - endpoints for querying organizations SC policies (#2197)
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
2019-05-25 10:20:19 +01:00
Ashley Gould
7a88e634eb organizations: add exception test for describe_organization endpoint 2018-10-08 15:27:19 -07:00
Ashley Gould
05928b1497 [issue #1720] Add support for AWS Organizations
added exception handling in class OrganizationsBackend
2018-09-28 08:34:19 -07:00
Ashley Gould
40e422b74d [issue #1720] Add support for AWS Organizations
ready for pull request
did a little cleanup refactoring
local tests pass
2018-09-28 08:34:19 -07:00
Ashley Gould
01912bdca7 organizations: fix python 2.7 test errors 2018-09-28 08:34:19 -07:00
Ashley Gould
8f400b7110 organizations: add endpoint list_chilren 2018-09-28 08:34:19 -07:00
Ashley Gould
30a9aa33e5 organizations: endpoint list_parents now support account_id param
refactered classes: FakeRoot inherits from FakeOrganizationsUnit
add root_id attribute to class FakeOrganization
dropped 'roots' attribute from class OrganizationaBackend
2018-09-28 08:34:18 -07:00
Ashley Gould
009dcdb21a organizations: and another 2 endpoints:
list_accounts_for_parent
move_account
2018-09-28 08:34:18 -07:00
Ashley Gould
fc2447c6a4 organiziaions: 2 new endpoints:
list_organizational_units_for_parents
list_parents
2018-09-28 08:34:18 -07:00