Sha256: 7cb6b06240455fd7cf41348c7f38cb58ec74748f42dd01f585647736c751944b

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

module HybridPlatformsConductor

  module HpcPlugins

    module Test

      # Test that the hostname is correct
      class Hostname < HybridPlatformsConductor::Test

        # Check my_test_plugin.rb.sample documentation for signature details.
        def test_on_node
          {
            'sudo hostname -s' => proc do |stdout|
              assert_equal stdout.first, @node, "Expected hostname to be #{@node}, but got #{stdout.first} instead."
            end
          }
        end

      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-32.4.2 lib/hybrid_platforms_conductor/hpc_plugins/test/hostname.rb
hybrid_platforms_conductor-32.4.1 lib/hybrid_platforms_conductor/hpc_plugins/test/hostname.rb
hybrid_platforms_conductor-32.4.0 lib/hybrid_platforms_conductor/hpc_plugins/test/hostname.rb
hybrid_platforms_conductor-32.3.6 lib/hybrid_platforms_conductor/hpc_plugins/test/hostname.rb