Sha256: 9c8e54fe7141fb2a727c6b72ea3ab862b4e8d036dffb47a9cc2c519d632c26ac
Contents?: true
Size: 1.41 KB
Versions: 31
Compression:
Stored size: 1.41 KB
Contents
module HybridPlatformsConductorTest module TestPlugins # Test plugin at several levels class SeveralChecks < HybridPlatformsConductor::Test class << self # Sequences of tests # Array< [ Symbol, String, String, String ] > # Array< [ test_name, platform, node, comment ] > attr_accessor :runs end # Check my_test_plugin.rb.sample documentation for signature details. def test SeveralChecks.runs << [@name, '', '', 'Global test'] end # Check my_test_plugin.rb.sample documentation for signature details. def test_on_platform SeveralChecks.runs << [@name, @platform.name, '', 'Platform test'] end # Check my_test_plugin.rb.sample documentation for signature details. def test_for_node SeveralChecks.runs << [@name, @node, 'Node test'] end # Check my_test_plugin.rb.sample documentation for signature details. def test_on_node { "test_#{@node}.sh" => proc do |stdout, stderr| SeveralChecks.runs << [@name, @node, "Node SSH test: #{stdout.join("\n")} - #{stderr.join("\n")}"] end } end # Check my_test_plugin.rb.sample documentation for signature details. def test_on_check_node(stdout, _stderr, _exit_status) SeveralChecks.runs << [@name, @node, "Node check-node test: #{stdout}"] end end end end
Version data entries
31 entries across 31 versions & 1 rubygems