Skip to content
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

iam_role example in documentation raises "Method call :attached_policies is black-listed" #196

Closed
nhinds opened this issue Dec 5, 2016 · 1 comment
Labels

Comments

@nhinds
Copy link

nhinds commented Dec 5, 2016

The iam_role resource documentation suggests using the following syntax:

describe iam_role('my-iam-role') do
  its('attached_policies.count') { should eq 5 }
end

Doing so results in the following error being raised:

Awspec::BlackListForwardable::CalledMethodInBlackList:
  Method call :attached_policies is black-listed
# .../gems/awspec-0.60.0/lib/awspec/resource_reader.rb:9:in `method_missing_via_black_list'
# .../gems/awspec-0.60.0/lib/awspec/type/base.rb:62:in `method_missing'

The alternate suggested form ("resource.attached_policies.count") gives the same error.

@k1LoW
Copy link
Owner

k1LoW commented Dec 6, 2016

Thank you for good issue. now fixing.

@k1LoW k1LoW added the bug label Dec 6, 2016
@k1LoW k1LoW closed this as completed in 1174e60 Dec 6, 2016
k1LoW added a commit that referenced this issue Dec 6, 2016
Fix #196 : Add `attached_policies` to WHITE_LIST_RE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants