Sha256: 09eed7cec2ca4df246369babe537e4ae1b2b1aeab883c5bcf69fd28af0664138

Contents?: true

Size: 666 Bytes

Versions: 36

Compression:

Stored size: 666 Bytes

Contents

describe HybridPlatformsConductor::ActionsExecutor do

  context 'checking connector plugin ssh' do

    context 'checking connectable nodes selection' do

      # Return the connector to be tested
      #
      # Result::
      # * Connector: Connector to be tested
      def test_connector
        test_actions_executor.connector(:ssh)
      end

      it 'selects connectable nodes correctly' do
        with_test_platform(nodes: {
          'node1' => { meta: { host_ip: '192.168.42.42' } },
          'node2' => {}
        }) do
          expect(test_connector.connectable_nodes_from(%w[node1 node2])).to eq ['node1']
        end
      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/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.9.1 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.9.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.8.2 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.8.1 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.8.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.7.3 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.7.2 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.7.1 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.7.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.6.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.5.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.4.2 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.4.1 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.4.0 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb
hybrid_platforms_conductor-32.3.6 spec/hybrid_platforms_conductor_test/api/actions_executor/connectors/ssh/connectable_nodes_spec.rb