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

Resource 585 create the integration test for azure graph generic resource and azure lock resources #711

Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions libraries/azure_key_vault_rotation_key.rb

This file was deleted.

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
15 changes: 15 additions & 0 deletions test/integration/verify/controls/azure_lock.rb
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