-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #711 from inspec/RESOURCE-585-create-the-integrati…
…on-test-for-azure-graph-generic-resource-azure-lock-and-azure-key-vault-rotation-key-resources Resource 585 create the integration test for azure graph generic resource and azure lock resources
- Loading branch information
Showing
3 changed files
with
23 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
test/integration/verify/controls/azure_graph_generic_resources.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
control "azure_graph_generic_resources" do | ||
title "Testing the plural resource of azure_graph_generic_resources." | ||
desc "Testing the plural resource of azure_graph_generic_resources." | ||
|
||
describe azure_graph_generic_resources(resource: "users", filter: { given_name: "John" }) do | ||
it { should exist } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource_group = input("resource_group", value: nil) | ||
resource_name = input("windows_vm_name", value: nil) | ||
|
||
control "azure_lock_test" do | ||
title "Testing the singular resource of azure_lock." | ||
desc "Testing the singular resource of azure_lock." | ||
|
||
vm_id = azure_virtual_machine(resource_group: resource_group, name: resource_name).id | ||
|
||
describe azure_locks(resource_id: vm_id).ids.each do |lock_id| | ||
describe azure_lock(resource_id: lock_id) do | ||
it("properties.notes") { should_not be_empty } | ||
end | ||
end | ||
end |