test/plugin/test_out_boundio.rb in fluent-plugin-boundio-0.0.2 vs test/plugin/test_out_boundio.rb in fluent-plugin-boundio-0.1.1
- old
+ new
@@ -4,13 +4,13 @@
def setup
Fluent::Test.setup
end
CONFIG = %[
- user_serial_id YOUR_BOUNDIO_USER_SERIAL_ID
- api_key YOUR_BOUNDIO_API_KEY
- user_key YOUR_BOUNDIO_USER_KEY
+ user_serial_id BOUNDIO_USER_SERIAL_ID
+ api_key BOUNDIO_API_KEY
+ user_key BOUNDIO_USER_KEY
default_number 09012345678
]
def create_driver(conf=CONFIG,tag='test')
Fluent::Test::OutputTestDriver.new(Fluent::BoundioOutput, tag).configure(conf)
@@ -19,18 +19,18 @@
def test_configure
assert_raise(Fluent::ConfigError) {
d = create_driver('')
}
d = create_driver %[
- user_serial_id YOUR_BOUNDIO_USER_SERIAL_ID
- api_key YOUR_BOUNDIO_API_KEY
- user_key YOUR_BOUNDIO_USER_KEY
+ user_serial_id BOUNDIO_USER_SERIAL_ID
+ api_key BOUNDIO_API_KEY
+ user_key BOUNDIO_USER_KEY
default_number 09012345678
]
d.instance.inspect
- assert_equal 'YOUR_BOUNDIO_USER_SERIAL_ID', d.instance.user_serial_id
- assert_equal 'YOUR_BOUNDIO_API_KEY', d.instance.api_key
- assert_equal 'YOUR_BOUNDIO_USER_KEY', d.instance.user_key
+ assert_equal 'BOUNDIO_USER_SERIAL_ID', d.instance.user_serial_id
+ assert_equal 'BOUNDIO_API_KEY', d.instance.api_key
+ assert_equal 'BOUNDIO_USER_KEY', d.instance.user_key
assert_equal '09012345678', d.instance.default_number
end
def test_emit
d1 = create_driver(CONFIG, 'input.access')