Sha256: a5800fe2554e0169adba250cb712ea7b5737d9bcebe2f3d3b8f7ca190f3d19fd

Contents?: true

Size: 1.42 KB

Versions: 36

Compression:

Stored size: 1.42 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, exit_code|
            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

36 entries across 36 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.0.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.18.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.17.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.17.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.16.4 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.16.3 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.16.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.16.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.16.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.15.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.14.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.13.4 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.13.3 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.13.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.13.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.13.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.12.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.11.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.11.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.11.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb