Commit Graph

46 Commits

Author SHA1 Message Date
Brian Pandola
8021098815 Remove newlines from create-access-key response 2017-10-11 10:57:15 -07:00
Jack Danger
3788e42f35 implement handlers for iam attached group policies 2017-10-01 15:01:52 -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
Kate Heddleston
e307dc38e6 Implementing IAM policy versions
Adding definitions for create, list, and delete policy_versions
2017-05-15 14:56:28 -07:00
Steve Pulec
956f44d46c Merge pull request #932 from grahamhar/master
Update list IAM AccessKeys
2017-05-10 22:42:14 -04: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
3fecd7f8e9
Add create date to user response template. 2017-04-24 17:10:02 -06:00
Steve Pulec
34c711189f Cleanup IAM user create format. Closes #898. 2017-04-13 21:39:07 -04:00
Steve Pulec
d35e143a20 Merge pull request #899 from smarlowucf/master
Add list user policies endpoint to iam backend.
2017-04-13 21:18:43 -04: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
Steve Pulec
b62015b27d Add Iam User CreateDate. Closes #886. 2017-04-12 22:19:48 -04: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
bba197e29f Make IAM ARNs more dynamic. Closes #663. 2017-03-19 11:58:24 -04: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
0e2fdf94f9 Cleanup lints. 2017-03-12 20:18:54 -04: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
David Wilcox
1b6007e2b2 Correct IAM list_server_certs template that was based off incorrect docs (#836)
The documentation for this method is here https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListServerCertificates.html

The docs say the return type is this  ServerCertificateMetadataList.member.N

but the sample response incorrectly include a <ServerCertificateMetadata>. I've sent feedback to the AWS docs telling them to fix their stuff but this also needs to be fixed. I haven't checked other templates with <member> tags in them, as they may be prone to this same problem.
2017-03-04 22:36:25 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -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
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
42b95023f5 Added iam backend to servers, added some tests to check backend 2015-08-03 00:31:36 +02: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
70315fd67c Fixed how parameters are passed in following clarification on GitHub comments. 2015-02-27 12:22:31 -08: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
5eab1901e4 added get/generate credential report to mock_iam 2015-02-03 09:42:57 +11:00
Steve Pulec
56007660d8 Cleanup parameter parsing. 2014-12-31 13:23:08 -05:00
dreadpirateshawn
9affa7753d Performance: Leverage jinja2's Environment to cache compiled Templates. 2014-12-12 12:46:07 -08:00
Kevin Glisson
3e45758663 Removing duplicate import 2014-11-30 20:23:56 -08: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
ttacon
5aec4d9de5 Add create_login_profile for iam service 2014-10-29 15:31:49 -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
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Kevin Glisson
d2029c3fa3 adding - get all certificates, get certificate, and upload certificates endpoints 2014-05-29 14:25:26 -07:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00