Sha256: e7a0bbc15af8a5aaf47a09fcebaa84f93d41b51dc811939c7ce9935cfc374ac3
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 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 = @nodes_handler. known_nodes. to_h { |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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hybrid_platforms_conductor-33.9.5 | lib/hybrid_platforms_conductor/hpc_plugins/test/veids.rb |
hybrid_platforms_conductor-33.9.4 | lib/hybrid_platforms_conductor/hpc_plugins/test/veids.rb |