Sha256: a9fab4b6587d56b030963caef0fc4eb0e4d6e3710491cce4c2eaa76e95ceafc8

Contents?: true

Size: 633 Bytes

Versions: 31

Compression:

Stored size: 633 Bytes

Contents

module HybridPlatformsConductor

  # Ancestor for all tests that should be run just on remote nodes
  class TestOnlyRemoteNode < Test

    # Limit the list of nodes for these tests.
    #
    # Result::
    # * Array<String or Regex> or nil: List of nodes allowed for this test, or nil for all. Regular expressions matching node names can also be used.
    def self.only_on_nodes
      # Just 1 node per service and platform
      Test.nodes_handler.prefetch_metadata_of Test.nodes_handler.known_nodes, :local_node
      Test.nodes_handler.known_nodes.reject { |node| Test.nodes_handler.get_local_node_of(node) }
    end

  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.9.4 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.9.2 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.9.1 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.9.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.8.4 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.8.3 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.8.2 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.8.1 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.8.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.7.4 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.7.3 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.7.2 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.7.1 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.7.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.6.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.5.1 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.5.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.4.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb
hybrid_platforms_conductor-33.3.0 lib/hybrid_platforms_conductor/test_only_remote_node.rb