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-32.10.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.9.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.9.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.8.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.8.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.8.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.7.3 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.7.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.7.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.7.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.6.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.5.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.4.2 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.4.1 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.4.0 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb
hybrid_platforms_conductor-32.3.6 spec/hybrid_platforms_conductor_test/test_plugins/several_checks.rb