test/plugin/in_mongo_tail.rb in fluent-plugin-mongo-0.7.11 vs test/plugin/in_mongo_tail.rb in fluent-plugin-mongo-0.7.12
- old
+ new
@@ -11,10 +11,11 @@
database test
collection log
tag_key tag
time_key time
id_store_file /tmp/fluent_mongo_last_id
+ id_store_collection test_last_id
]
def create_driver(conf = CONFIG)
Fluent::Test::InputTestDriver.new(Fluent::MongoTailInput).configure(conf)
end
@@ -26,9 +27,10 @@
assert_equal('test', d.instance.database)
assert_equal('log', d.instance.collection)
assert_equal('tag', d.instance.tag_key)
assert_equal('time', d.instance.time_key)
assert_equal('/tmp/fluent_mongo_last_id', d.instance.id_store_file)
+ assert_equal('test_last_id', d.instance.id_store_collection)
end
def test_url_configration
config = %[
type mongo_tail