Commit Graph

199 Commits

Author SHA1 Message Date
Jack Danger
cdb1ebf666 pep8 fixes 2017-10-01 15:02:06 -07:00
Jack Danger
9f02a84d8d test attaching group policies 2017-10-01 15:02:00 -07:00
Jack Danger
8f2f7fa20d Adding a script to import all of AWS' managed policies
fixes #1118
2017-09-19 14:01:08 -07:00
Toshiya Kawasaki
ee4ca0c39a Support IAM account alias (#1088) 2017-09-07 11:21:44 -07:00
Brian Pandola
bca5047202 Implement additional IAM endpoints
- attach_user_policy
- detach_user_policy
- list_attached_user_policies
2017-08-14 13:55:53 -07:00
David Cuthbert
672604d3e7 Add support for iam:DetachRolePolicy and iam:DeleteRolePolicy. (#1052)
* Add support for iam:DetachRolePolicy and iam:DeleteRolePolicy.

* Raise proper exceptions for iam:DetachRolePolicy and iam:DeleteRolePolicy when the policy doesn't exist.
2017-08-13 21:58:11 -07:00
Jack Danger
e445c81e83 Implement IAM {update,get}_login_profile 2017-07-27 14:22:25 -07:00
Jack Danger Canty
15d3397a60 implementing IAM delete_role
Fixes #957
2017-05-19 16:23:42 -07:00
Jack Danger
6ff8d500e5 Merge pull request #946 from heddle317/add_policy_version
Add policy version
2017-05-15 15:10:49 -07:00
Kate Heddleston
992b475093 testing create, get, list, delete policy versions 2017-05-15 14:56:30 -07:00
graham-hargreaves
835fe2d742 Update list IAM AccessKeys
Add the creation date, including timezone info, to the data returned
when requesting all AccessKeys for an IAM user.

This fixes #75
2017-05-07 16:31:26 +01:00
Sean Marlow
9a2f2fcd4b
Add list user policies endpoint to iam backend.
- Add response and endpoint methods.
- Add test covering put, get, delete and list user policy.
2017-04-13 15:09:23 -06:00
Sean Marlow
8b9d685f1c
Add mfa device endpoints to iam backend.
- Add mfa device class
- Add mfa devices dictionary to user class
- Add responses, endpoints and tests
2017-03-27 13:13:40 -06:00
Steve Pulec
2d05f8a79a Add functionality for iam get-user with current user. Closes #480. 2017-03-19 11:09:30 -04:00
Steve Pulec
896f040fca Fix sqs tests for server mode. 2017-03-05 10:09:19 -05:00
Steve Pulec
3b4ef2cf15 Merge in master. 2017-03-05 09:58:39 -05:00
Léo Cavaillé
9b6d3983d2 iam: add group policy methods (#849)
Implemented mocks for:
* get_all_group_policies
* list_group_policies (boto3)
* get_group_policy
* put_group_policy
2017-03-04 22:56:36 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Jesse Szwedko
d42432bfef IAM: raise error if requiested instance profile does not exist (#802)
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 21:36:50 -05:00
Steve Pulec
201efd5773 Fix bug with listing IAM users. 2017-01-11 20:54:47 -05:00
Sean Marlow
fa3663c610 Add support for login profile deletion (#768)
* Add support for delete_login_profile.

Mock deletion of login profile. Set password to
none. Add tests to cover new endpoint.

* Fix typo in create_login_profile response.

Change CreateUserResult to CreateLoginProfileResult
in the CREATE_LOGIN_PROFILE_TEMPLATE. Caused KeyError
when using boto3.

Add test to cover boto3 in addition to boto.
2016-11-11 17:05:01 -05:00
Taro Sato
159a81723c Implement IAM managed policy.
This requires boto 2.39 for managed policy tests
2016-10-20 10:07:41 -07:00
Steve Pulec
ea319698aa Merge pull request #669 from netors/feature/implement-iam-list-users-for-boto3
implemented iam list users (Closes #668)
2016-08-27 21:13:53 -04:00
Michael Barrett
4bfbcf4d03 Causes get_server_certificate to fail correctly
When no certificate with the name exists, the API should return a 404
(NoSuchEntity).
2016-08-14 17:40:39 -07:00
Ernesto Ruy Sanchez
9c587ec6b1 added assert response returns Users 2016-07-25 08:59:57 -07:00
Ernesto Ruy Sanchez
e84dad6509 implemented iam list users 2016-07-20 15:12:02 -07:00
Steve Pulec
68de6feb01 Add iam remove_role_from_instance_profile. Closes #563. 2016-05-04 22:25:46 -04:00
andy
71358603ac Add roles to the list instance profiles response 2016-03-10 09:27:52 +00:00
Jot
930ac58a4d Added sns backend to servers, added some tests to check backend 2015-08-04 00:20:04 +02:00
Simon-Pierre Gingras
db7d7a9330 IAM: get_role should thrown when role is unexisting 2015-06-29 10:46:05 -04:00
Steve Pulec
be5f041416 Add IAM list_groups and list_groups_for_user. Closes #343. 2015-04-30 19:32:53 -04:00
Mike Grima
3a357c0fe3 Added in test for the boto IAM method: list_instance_profiles_for_role() 2015-02-26 21:28:15 -08:00
Mike Fuller
abae19d273 fixing up base64 encoding for python 3 back to using base64 module 2015-02-05 17:07:08 +11:00
Mike Fuller
d0a60d8702 fixing up base64 encoding for python 3 2015-02-05 17:03:11 +11:00
Mike Fuller
5547a917a6 use should.match instead of should.contain as string is not an interable. 2015-02-04 12:50:18 +11:00
Mike Fuller
5eab1901e4 added get/generate credential report to mock_iam 2015-02-03 09:42:57 +11:00
Kevin Glisson
cc312d29fc Adding put_role_policy, get_role_policy, and list_role_policies, update_assume_role_policy 2014-11-30 20:11:13 -08:00
Kevin Glisson
7f6af025f3 Create role does not allow for document policies to be passed to it 2014-11-30 11:16:29 -08:00
ttacon
5aec4d9de5 Add create_login_profile for iam service 2014-10-29 15:31:49 -04:00
Rory-Finnegan
bf996f1461 Fixed py26 errors related to using assert_raises in tests. 2014-09-03 19:24:05 -04:00
Rory-Finnegan
a3b02f3f8b Added get_user and delete_access_key endpoints. 2014-09-03 16:57:51 -04:00
Rory-Finnegan
ac74af4085 Added several new endpoints for accessing iam groups and users,
include unit tests.
2014-09-03 16:57:03 -04:00
David Baumgold
eedb4c4b73 Support Python 3 using six 2014-08-28 10:57:43 -04:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Steve Pulec
1d2bf48e40 Remove dupe line. 2014-07-18 20:56:02 -04:00
Kevin Glisson
fc30f5ba1f adding tests 2014-07-18 17:31:57 -07:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00