Sha256: c43b286c2e7805572db1db4eac592aa3219704c634c8441cb5ccefdbd0c6f1bb
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
module HybridPlatformsConductorTest module Helpers module CmdbHelpers # Get a given CMDB instance to be tested # # Parameters:: # * *name* (Symbol): The CMDB name # Result:: # * Cmdb: The CMDB instance def cmdb(name) test_nodes_handler.instance_variable_get(:@cmdbs)[name] end # Register test CMDBs in the test nodes handler as the only CMDB available # # Parameters:: # * *cmdb_names* (Array<Symbol>): The test CMDBs to register [default = [:test_cmdb]] def register_test_cmdb(cmdb_names = [:test_cmdb]) register_plugins( :cmdb, cmdb_names.to_h do |plugin_id| [ plugin_id, HybridPlatformsConductorTest::CmdbPlugins.const_get(plugin_id.to_s.split('_').collect(&:capitalize).join.to_sym) ] end ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems