test/test_out_s3.rb in fluent-plugin-s3-1.0.0.rc8 vs test/test_out_s3.rb in fluent-plugin-s3-1.0.0
- old
+ new
@@ -138,9 +138,19 @@
d = create_driver(conf)
assert_equal false, d.instance.check_bucket
assert_equal false, d.instance.check_object
end
+ def test_configure_with_grant
+ conf = CONFIG.clone
+ conf << "\grant_full_control id='0123456789'\ngrant_read id='1234567890'\ngrant_read_acp id='2345678901'\ngrant_write_acp id='3456789012'\n"
+ d = create_driver(conf)
+ assert_equal "id='0123456789'", d.instance.grant_full_control
+ assert_equal "id='1234567890'", d.instance.grant_read
+ assert_equal "id='2345678901'", d.instance.grant_read_acp
+ assert_equal "id='3456789012'", d.instance.grant_write_acp
+ end
+
def test_format
d = create_driver
time = event_time("2011-01-02 13:14:15 UTC")
d.run(default_tag: "test") do