-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add attributes s3_key_prefix & organization_trail to aws_cloudtrail_trail resource #967
Conversation
✅ Deploy Preview for inspec-aws canceled.
|
@rezen Please check DCO is failing. Please commit the code with the following command with the following command
|
|
||
alias multi_region_trail? is_multi_region_trail | ||
alias log_file_validation_enabled? log_file_validation_enabled | ||
alias has_log_file_validation_enabled? log_file_validation_enabled | ||
alias organization_trail? is_organization_trail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this? We dont require the alias. is_organization_trail looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to run with the control with organization_trail, it failed. It is not taking the alias.
Code that I have used is
control "test1" do
describe aws_cloudtrail_trail('testbucketname') do
its("is_organization_trail") { should eq false }
its("organization_trail") { should eq false }
its("organization_trail") { should eq "" }
end
end
output
× test1: CloudTrail testbucketname (2 failed)
✔ CloudTrail testbucketname is_organization_trail is expected to eq false
× CloudTrail testbucketname organization_trail is expected to eq false
expected: false
got: #<#<Class:0x000000010fc0d860>::NullResponse:0x000000010fa83198>
(compared using ==)
× CloudTrail testbucketname organization_trail is expected to eq false
expected: false
got: #<#<Class:0x000000010fc0d860>::NullResponse:0x000000010fa83198>
(compared using ==)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rezen Please check this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try it { should be_organizational_trail } . It makes good English.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it { should be_organizational_trail }
This is working fine. So we can merge this PR.
@soumyo13 I did the sign off, I think it's unhappy because I didn't include my email in |
@rezen Please add the email in the sign off. I think that will work and DCO will pass. |
2e5c555
to
5c167eb
Compare
…ttributes Signed-off-by: Andres Hermosilla <an2dres5m@gmail.com>
Signed-off-by: Andres Hermosilla <an2dre5m@gmail.com>
Signed-off-by: Andres Hermosilla <an2dres5m@gmail.com>
5c167eb
to
a42b16a
Compare
@soumyo13 Fixed the DCO 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Added attributes
s3_key_prefix
&organization_trail
to aws_cloudtrail_trail resourceCheck List
Please fill box or appropriate ([x]) or mark N/A.
rake lint
passes