Commit Graph

44 Commits

Author SHA1 Message Date
Kenji Okimoto
4646b6363d
Update spec
We must use `type` instead of `@type` to initialize model.
Because we cannot define `@type` expected.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-25 18:08:47 +09:00
Kenji Okimoto
d8213f713b
Use type instead of @type
Because `@type` is not defined in model.
So we must convert name `type` to `@type` or `@type` to `type` at the boundary
between the model and parameters.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 15:42:23 +09:00
Kenji Okimoto
3a2835429a
Add initial_params
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 15:26:50 +09:00
Kenji Okimoto
66f5d8424f
Update specs to follow changes related to validation
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 11:20:13 +09:00
Kenji Okimoto
20da19e85a
Fix in_forward spec
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-20 17:27:19 +09:00
Kenji Okimoto
b0e212e4a8
Remove redundant configuration
The default value of auto_create_table is true.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-20 16:06:52 +09:00
Kenji Okimoto
a849fdeda3
Remove unused module
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-28 11:13:13 +09:00
Kenji Okimoto
1bde0bae1c Rename out_td to out_tdlog
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:35:29 +09:00
Kenji Okimoto
03a5d86f8c
Add specs for previous change
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:28:11 +09:00
uu59
9002b11926 Remove needless --use-v1-config option 2015-11-30 11:45:10 +09:00
yoshihara
acef07e036 Remove its syntax depended on 'rspec-its' gem 2015-04-02 16:09:07 +09:00
uu59
73b9a01289 LocalCommon and Common was separated by historical reason. it's time to be one 2015-02-04 16:55:55 +09:00
uu59
a9a1dfdfa2 Skip td-agent tests if td-agent doesn't installed 2015-02-04 16:02:26 +09:00
uu59
f54a5a24ff Add dryrun button to setting#edit 2015-02-04 15:03:25 +09:00
uu59
cc300d46a9 Agent#dryrun learned file_path argument for arbitrary config file checking 2015-02-04 12:58:52 +09:00
uu59
fea5561c43 Merge pull request #149 from fluent/fix_unstable_spec_on_circle_ci
Fix unstable spec on circle ci
2015-02-04 11:03:18 +09:00
uu59
d3ec0b3184 Maybe fix unstable spec 2015-01-28 17:58:12 +09:00
uu59
2689347946 fix typo 2015-01-28 16:59:02 +09:00
uu59
1c08790abf Add tests and fix dryrun 2015-01-14 14:29:41 +09:00
鳥井 雪
6105886705 Change to use application.yml setting instead of hard coded number 2014-12-17 18:44:17 +09:00
鳥井 雪
7b65e03cc8 Change to use File.join instead of string concatenation
because File.join makes the purpose of code clear and do it safely
2014-12-17 18:19:01 +09:00
鳥井 雪
366fc6364d Fix spec to ensure config_file 2014-12-16 18:17:08 +09:00
鳥井 雪
b87b2c8af4 Add #backup_running_config method
on Fluentd::Agent
2014-12-15 15:37:21 +09:00
鳥井 雪
9a1b72b6b0 Add fluentd.agent#backup_config method
and call it in #config_write and #config_append
to backup config histories
2014-12-11 16:27:04 +09:00
Koichi TANAKA
50b5fbed54 Fix bug: pid become zero when pid file is empty 2014-12-03 17:07:08 +09:00
Koichi TANAKA
7eddae31b7 Add spec for Fluentd::Agent::LocalCommon#pid 2014-12-03 16:36:27 +09:00
Kouhei Sutou
88979eb39b Suppress "already initialized constant KEYS" warning
`Class.new {...}` uses a closure to define a class. Closure keeps
environment that includes local variables and so on. Assignment changes
the environment. So `klass = Class.new { KEYS = [] }` doesn't define
`klass::KEYS`. It defines `Object::KEYS`.

    a = 1
    Class.new do
      a = 2
      X = 3
    end
    p a # => 2
    p X # => 3

We need to use `const_set` to define a constant in `Class.new {...}`.
2014-10-05 15:53:44 +09:00
uu59
8f01694890 Add some specs and fix minor issues 2014-07-29 14:11:05 +09:00
uu59
edafcf3bb5 Fix out_td setting type name 2014-07-29 11:34:47 +09:00
uu59
b36b3eb483 Add <secondary> for out_forward 2014-07-17 16:33:54 +09:00
uu59
1e0d51050c Add spec for Fluentd::Setting::Common 2014-07-17 15:43:45 +09:00
uu59
171558c613 Refactor spec 2014-07-07 16:40:51 +09:00
uu59
d1ad601bbf Fix spec for restart strategy changed 2014-07-07 16:39:52 +09:00
uu59
82d25469f9 Refactoring Fluentd::Agent API 2014-07-02 16:30:00 +09:00
uu59
e6990daa6c Add Fluentd::Agent#errors_since spec 2014-06-30 14:45:57 +09:00
uu59
32f104aec7 Following behavior change on spec 2014-06-30 14:37:52 +09:00
uu59
9aed8408fb Rename Fluentd::Agent::Fluentd{,Gem} for fix autoload problem 2014-06-19 17:33:10 +09:00
uu59
7bf5aa2a2e Follow rspec 2.99 2014-06-02 11:07:37 +09:00
uu59
36e460e885 Add recent error view 2014-05-27 16:57:15 +09:00
uu59
5d85bff58c Fix to fluentd restart equals stop && start, not reload 2014-05-26 16:45:01 +09:00
uu59
c422fde2b9 Refactoring: test API behavior, not implementation detail 2014-05-26 10:39:43 +09:00
uu59
bd8c3dd299 Fix spec 2014-05-23 17:30:02 +09:00
uu59
7eefa05a44 Add specs 2014-05-23 15:16:49 +09:00
uu59
e29d0e31c3 Enhance model spec 2014-05-23 13:09:01 +09:00