Miles Tjandrawidjaja
798776cf50
Ensure resources are cleaned when running test:integration even if integration tests fail ( #56 )
...
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-07-05 22:30:27 +02:00
Steffanie Freeman
29b4fbebe4
Add to_s method to aws_iam_password_policy ( #61 )
...
* Add to_s method to aws_iam_password_policy
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
* Use single quoted string and remove unnecessary substring
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-06-29 03:03:20 -07:00
Miles Tjandrawidjaja
1a360cff8b
Prompt for namespace if not set in environment variable instead of providing a random namespace ( #57 )
...
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-06-28 05:55:01 -07:00
Steffanie Freeman
99baa9b2ab
Add to_s method to aws_iam_user ( #60 )
...
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-06-28 05:46:59 -07:00
Miles Tjandrawidjaja
a1dc5e981e
[ISSUE-39] - Cover Recommendation 1.12 ( #49 )
...
* Adding resource aws_iam_root_user
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
* Adding to_s method to class aws_iam_root_user
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
* Cleaner to_s result for aws_iam_root_user
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-06-13 07:44:11 +02:00
Miles Tjandrawidjaja
5c319ff056
[ISSUE-36] - Cover Recommendation 1.10 ( #47 )
...
* Add query for password_reuse_prevention to iam_password_policy
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
* Use mock over stub, and more concise language for tests in aws_iam_password_policy
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
* Rename method prevent_password_reuse to prevents_password_reuse
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-06-13 07:41:43 +02:00
Chris Redekop
15459ca295
Add access_keys method to aws_iam_user ( #44 )
...
* Add access_keys method to aws_iam_user
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
* Fix unit test that accessed AWS
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
* Incorporate PR feedback
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
* Fix unit tests
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
* Update tests based on PR feedback
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
* Rebase to master
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-06-13 07:36:43 +02:00
Christoph Hartmann
faa2840c1f
update readme
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-05-22 18:49:27 -05:00
Christoph Hartmann
1ec156962a
Merge pull request #45 from chef/getusersfinalfinal
...
Add list_users
2017-05-22 18:32:32 -05:00
Christoph Hartmann
ab59dd4c3e
Merge pull request #48 from chef/MinorCleanup
...
Remove Unneeded Require Statement
2017-05-22 18:29:57 -05:00
Christoph Hartmann
426a4af22e
Merge pull request #35 from chef/issue24
...
[ISSUE-24] - Use terraform environment to avoid integration tests collisions
2017-05-22 18:27:52 -05:00
Miles Tjandrawidjaja
323a0e8064
Remove unneeded require statement
...
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-05-13 21:40:13 -04:00
sfreeman
beedecf247
Add list_users
...
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-05-10 15:41:03 -04:00
Miles
69434fec48
Use terraform environments to avoid integration test collisions
...
* When running integration tests with Rakefile use terraform environment based on environment variable INSPEC_TERRAFORM_ENV
** If INSPEC_TERRAFORM_ENV is not provided, a random string will be used
* Use terraform environment as a namespace for AWS artifacts
* Use attribute file for inspec to be aware of the terraform environment used
Signed-off-by: Miles Tjandrawidjaja <miles@tjandrawidjaja.com>
2017-05-06 14:14:53 -04:00
Christoph Hartmann
5581762c64
Merge pull request #33 from chef/issue25-b
...
Defensive programming for aws_iam_access_key
2017-05-05 16:20:03 +02:00
Chris Redekop
0ab4ae7d6e
Update resource based on PR feedback
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-05-02 14:54:57 +00:00
Chris Redekop
3f22a54aa6
Remove unnecessary test resource
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-05-02 14:54:57 +00:00
Chris Redekop
37bcce6618
Add defensive programming
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-05-02 14:54:57 +00:00
Christoph Hartmann
11905af32a
Merge pull request #32 from chef/issue31
...
add password expiry and password expiry time to iam_password_policy
2017-05-02 11:23:44 +02:00
Christoph Hartmann
042b6550dd
Merge pull request #30 from chef/Issue9-UserProvider
...
User provider refactor
2017-05-02 11:20:48 +02:00
Chris Redekop
891f075d13
Update resource based on PR feedback
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-28 10:52:42 +00:00
Viktor Yakovlyev
19f752f778
add 1.11, password expiry and password expiry time in days, fix examples
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
check for unset password expiry
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
pr changes
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-04-28 10:52:42 +00:00
sfreeman
c43c863109
Added user provider
...
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-04-27 16:17:43 -04:00
Christoph Hartmann
bbe60c9614
Merge pull request #28 from chef/issue25
...
Add a new access-key resource
2017-04-18 15:12:06 +02:00
Chris Redekop
915e2fd7c6
Updates based on PR feedback
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Chris Redekop
3cdb639a0c
Uncomment unit tests
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Chris Redekop
fcb8d17feb
Incorporate PR feedback
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Chris Redekop
44e15b85f9
Update usage example
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Chris Redekop
e0dfbad730
Fix Rubocop issue
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Chris Redekop
d428a96bab
Add a new access-key resource
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-04-18 15:03:31 +02:00
Christoph Hartmann
aff0185f48
Merge pull request #29 from chef/issue20
...
Add iam password policy
2017-04-12 22:33:33 +02:00
Viktor Yakovlyev
ff72e81915
Add iam password policy
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
wire up mock resource twice
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
cleaning up as per pr feedback
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
style fixes
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
fix indent in test
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
remove unneeded line
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
use minitest mock instead of object
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-04-11 14:16:21 -04:00
Steffanie Freeman
298d7b09b1
Merge pull request #23 from chef/UpdateGitIgnore
...
Add files to gitignore
2017-03-29 15:34:33 -04:00
sfreeman
a148780216
Add files to gitignore
...
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-03-29 15:29:01 -04:00
Christoph Hartmann
d28064d15d
Merge pull request #19 from chef/issue6
...
Implement aws_iam_user resource
2017-03-16 16:09:17 +01:00
sfreeman
d9221bb925
Add ability to choose a user by username
...
Add has MFA enabled member
Add "has console password" member
Signed-off-by: sfreeman <Steffanie.Freeman@d2l.com>
2017-03-15 15:49:13 -04:00
Christoph Hartmann
6657a5d48d
Merge pull request #17 from chef/issue15
...
Add rake task to clean up integration test instances
2017-02-27 15:18:05 +01:00
Chris Redekop
33d4b196cc
Cleanup the cleanup task
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-23 17:41:36 +00:00
Chris Redekop
ee6fbe6ac1
Update README to match Rakefile
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-22 14:16:58 +00:00
Chris Redekop
040d5cbffc
Rename integration tasks
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-22 14:15:12 +00:00
Viktor Yakovlyev
88f6e5f716
update readme with new integration test behaviour
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 15:28:30 -05:00
Viktor Yakovlyev
5d6900fb86
add cleanup by default on integration tests
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 15:25:27 -05:00
Chris Redekop
6a098470fd
Merge pull request #16 from chef/issue13
...
Fixes #13 , return of false values for ec2#exists
2017-02-16 15:05:30 -05:00
Viktor Yakovlyev
bdd86542b0
add negative case test for exists?
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 14:33:21 -05:00
Viktor Yakovlyev
f0773ccc75
fix tests
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 14:27:35 -05:00
Viktor Yakovlyev
46919d7155
Merge branch 'issue13' of https://github.com/chef/inspec-aws into issue13
2017-02-16 14:03:08 -05:00
Viktor Yakovlyev
6ee43f8fb5
Adding check for ec2 instance existence. #13
...
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
2017-02-16 14:02:44 -05:00
Chris Redekop
3cad7d1e78
#13 , Ec2#exists returns false positives
...
Signed-off-by: Chris Redekop <chris.redekop@d2l.com>
2017-02-16 14:02:44 -05:00
Christoph Hartmann
892d11aef2
Merge pull request #14 from chef/issue11
...
Add unit tests for EC2 resource
2017-02-14 18:40:37 +01:00
Christoph Hartmann
1117020d52
update readme
2017-02-14 18:38:19 +01:00