-
Notifications
You must be signed in to change notification settings - Fork 898
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 #10288 from kbrock/relationships_prune_a
Relationships filter_by_resource_type scope (cherry picked from commit 8b85794)
- Loading branch information
Showing
3 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
FactoryGirl.define do | ||
factory :relationship_vm_vmware, :class => :Relationship do | ||
factory :relationship do | ||
resource_type "VmOrTemplate" | ||
end | ||
|
||
factory :relationship_vm_vmware, :parent => :relationship do | ||
resource_type "VmOrTemplate" | ||
end | ||
|
||
factory :relationship_host_vmware, :parent => :relationship do | ||
resource_type "Host" | ||
end | ||
|
||
factory :relationship_storage_vmware, :parent => :relationship do | ||
resource_type "Storage" | ||
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