Class: OpsManagerUiDrivers::Version15::Settings::OpenStack

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager_ui_drivers/version15/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_settings) ⇒ OpenStack

Returns a new instance of OpenStack.



95
96
97
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 95

def initialize(test_settings)
  @test_settings = test_settings
end

Class Method Details

.works_with?(iaas_type) ⇒ Boolean

Returns:

  • (Boolean)


91
92
93
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 91

def self.works_with?(iaas_type)
  iaas_type == 'openstack'
end

Instance Method Details

#fieldsObject



99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 99

def fields
  {
    'identity_endpoint' => test_settings.ops_manager.openstack.identity_endpoint,
    'username'          => test_settings.ops_manager.openstack.username,
    'password'          => test_settings.ops_manager.openstack.password,
    'tenant'            => test_settings.ops_manager.openstack.tenant,
    'security_group'    => test_settings.ops_manager.openstack.security_group_name,
    'key_pair_name'     => test_settings.ops_manager.openstack.key_pair_name,
    'ssh_private_key'   => test_settings.ops_manager.openstack.ssh_private_key,
    'region'            => test_settings.ops_manager.openstack.region,
  }
end