Sha256: c128ea6cdb743c8e95837f0366cd6b6e8290476517cfb36c19057427b81ea065

Contents?: true

Size: 671 Bytes

Versions: 19

Compression:

Stored size: 671 Bytes

Contents

require "embulk/input/marketo_api"

module Embulk
  module Input
    class MarketoApiTest < Test::Unit::TestCase
      class SoapClientTest < self
        data do
          {
            lead: [:lead, MarketoApi::Soap::Lead],
            activity_log: [:activity_log, MarketoApi::Soap::ActivityLog],
          }
        end

        def test_valid_target(data)
          target, expected = data
          actual = MarketoApi.soap_client({}, target)
          assert_equal(expected, actual.class)
        end

        def test_unknown_target
          assert_raise do
            MarketoApi.soap_client({}, "unknown")
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
embulk-input-marketo-0.5.6 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.5 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.4 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.3 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.2 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.1 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.5.0 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.4.0 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.3.2 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.3.1 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.3.0 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.5 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.4 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.3 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.2 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.1 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.2.0 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.1.1 test/embulk/input/test_marketo_api.rb
embulk-input-marketo-0.1.0 test/embulk/input/test_marketo_api.rb