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

Add a test example in google_service_account.md and fix for #200 #199

Merged
merged 7 commits into from
Nov 4, 2019
Merged
6 changes: 6 additions & 0 deletions docs/resources/google_service_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ The following examples show how to use this InSpec audit resource.
its('oauth2_client_id') { should eq 12345678 }
end

### Test that a GCP project IAM service account does not have user managed keys

describe google_service_account(name: 'projects/sample-project/serviceAccounts/[email protected]') do
it { should have_user_managed_keys }
end

<br>

## Properties
Expand Down