test/plugin/test_out_sql.rb in fluent-plugin-sql-1.0.0 vs test/plugin/test_out_sql.rb in fluent-plugin-sql-1.1.1
- old
+ new
@@ -16,10 +16,12 @@
database fluentd_test
username fluentd
password fluentd
+ schema_search_path public
+
remove_tag_prefix db
<table>
table logs
column_mapping timestamp:created_at,host:host,ident:ident,pid:pid,message:message
@@ -37,19 +39,21 @@
port: 5432,
adapter: "postgresql",
database: "fluentd_test",
username: "fluentd",
password: "fluentd",
+ schema_search_path: 'public',
remove_tag_suffix: /^db/,
enable_fallback: true
}
actual = {
host: d.instance.host,
port: d.instance.port,
adapter: d.instance.adapter,
database: d.instance.database,
username: d.instance.username,
password: d.instance.password,
+ schema_search_path: d.instance.schema_search_path,
remove_tag_suffix: d.instance.remove_tag_prefix,
enable_fallback: d.instance.enable_fallback
}
assert_equal(expected, actual)
assert_empty(d.instance.tables)