Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions test/test_connection.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require_relative './helper'
require 'yaml'

Elasticsearch = Embulk::Input::Elasticsearch

module Embulk
class Input::Elasticsearch
class TestConnection < Test::Unit::TestCase
sub_test_case "connection" do
def test_normal

end

def test_error

end
end
end
end
end
30 changes: 30 additions & 0 deletions test/test_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,36 @@ def test_normal
assert_equal Converter.get_sources(results, fields), [["AVTCxiCuNR-BVKOgUB7R", 1, "dummy title"]]
end
end

sub_test_case "convert_value" do
def test_string

end

def test_long

end

def test_double

end

def test_timestamp

end

def test_json

end

def test_boolean

end

def test_typecast_error

end
end
end
end
end