Sha256: 6af4b995783793a7057fa0399e2d58792079c860ecf4a1acb20f371317e1ce95
Contents?: true
Size: 890 Bytes
Versions: 36
Compression:
Stored size: 890 Bytes
Contents
module HybridPlatformsConductor module HpcPlugins module Test # Test that VEIDs are assigned correctly class Veids < HybridPlatformsConductor::Test # Check my_test_plugin.rb.sample documentation for signature details. def test # Get a map of VEIDs per node @nodes_handler.prefetch_metadata_of @nodes_handler.known_nodes, :veid veids = Hash[@nodes_handler. known_nodes. map { |node| [node, @nodes_handler.get_veid_of(node) ? @nodes_handler.get_veid_of(node).to_i : nil] } ] # Check there are no duplicates veids.group_by { |_node, veid| veid }.each do |veid, nodes| error "VEID #{veid} is used by the following nodes: #{nodes.map { |node, _veid| node }.join(', ')}" if !veid.nil? && nodes.size > 1 end end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems