FactoryBot.define do
  factory :cloud_network do
    sequence(:name)    { |n| "cloud_network_#{seq_padded_for_sorting(n)}" }
    sequence(:ems_ref) { |n| "ems_ref_#{seq_padded_for_sorting(n)}" }
  end

  factory :cloud_network_openstack, :class  => "ManageIQ::Providers::Openstack::NetworkManager::CloudNetwork",
                                    :parent => :cloud_network
  factory :cloud_network_private_openstack,
          :class  => "ManageIQ::Providers::Openstack::NetworkManager::CloudNetwork::Private",
          :parent => :cloud_network_openstack
  factory :cloud_network_public_openstack,
          :class  => "ManageIQ::Providers::Openstack::NetworkManager::CloudNetwork::Public",
          :parent => :cloud_network_openstack
  factory :cloud_network_telefonica, :class  => "ManageIQ::Providers::Telefonica::NetworkManager::CloudNetwork",
          :parent => :cloud_network
  factory :cloud_network_private_telefonica,
          :class  => "ManageIQ::Providers::Telefonica::NetworkManager::CloudNetwork::Private",
          :parent => :cloud_network_telefonica
  factory :cloud_network_public_telefonica,
          :class  => "ManageIQ::Providers::Telefonica::NetworkManager::CloudNetwork::Public",
          :parent => :cloud_network_telefonica
  factory :cloud_network_amazon, :class  => "ManageIQ::Providers::Amazon::NetworkManager::CloudNetwork",
                                 :parent => :cloud_network
  factory :cloud_network_azure, :class  => "ManageIQ::Providers::Azure::NetworkManager::CloudNetwork",
                                :parent => :cloud_network
  factory :cloud_network_google, :class  => "ManageIQ::Providers::Google::NetworkManager::CloudNetwork",
                                 :parent => :cloud_network
  factory :cloud_network_vmware_vdc,
          :class  => "ManageIQ::Providers::Vmware::NetworkManager::CloudNetwork::OrgVdcNet",
          :parent => :cloud_network
  factory :cloud_network_vmware_vapp,
          :class  => "ManageIQ::Providers::Vmware::NetworkManager::CloudNetwork::VappNet",
          :parent => :cloud_network
end
