fluent-plugin-windows-eventlog 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,48 +1,48 @@
1
- require 'helper'
2
- require 'generate-windows-event'
3
-
4
- class WindowsEventLogInputTest < Test::Unit::TestCase
5
-
6
- def setup
7
- Fluent::Test.setup
8
- end
9
-
10
- CONFIG = config_element("ROOT", "", {"tag" => "fluent.eventlog"}, [
11
- config_element("storage", "", {
12
- '@type' => 'local',
13
- 'persistent' => false
14
- })
15
- ])
16
-
17
- def create_driver(conf = CONFIG)
18
- Fluent::Test::Driver::Input.new(Fluent::Plugin::WindowsEventLogInput).configure(conf)
19
- end
20
-
21
- def test_configure
22
- d = create_driver CONFIG
23
- assert_equal 'fluent.eventlog', d.instance.tag
24
- assert_equal 2, d.instance.read_interval
25
- assert_nil d.instance.pos_file
26
- assert_equal ['application'], d.instance.channels
27
- assert_true d.instance.keys.empty?
28
- assert_false d.instance.read_from_head
29
- end
30
-
31
- def test_write
32
- d = create_driver
33
-
34
- service = Fluent::Plugin::EventService.new
35
-
36
- d.run(expect_emits: 1) do
37
- service.run
38
- end
39
-
40
- assert(d.events.length >= 1)
41
- event = d.events.select {|e| e.last["event_id"] == "65500" }.last
42
- record = event.last
43
- assert_equal("application", record["channel"])
44
- assert_equal("65500", record["event_id"])
45
- assert_equal("information", record["event_type"])
46
- assert_equal("fluent-plugins", record["source_name"])
47
- end
48
- end
1
+ require 'helper'
2
+ require 'generate-windows-event'
3
+
4
+ class WindowsEventLogInputTest < Test::Unit::TestCase
5
+
6
+ def setup
7
+ Fluent::Test.setup
8
+ end
9
+
10
+ CONFIG = config_element("ROOT", "", {"tag" => "fluent.eventlog"}, [
11
+ config_element("storage", "", {
12
+ '@type' => 'local',
13
+ 'persistent' => false
14
+ })
15
+ ])
16
+
17
+ def create_driver(conf = CONFIG)
18
+ Fluent::Test::Driver::Input.new(Fluent::Plugin::WindowsEventLogInput).configure(conf)
19
+ end
20
+
21
+ def test_configure
22
+ d = create_driver CONFIG
23
+ assert_equal 'fluent.eventlog', d.instance.tag
24
+ assert_equal 2, d.instance.read_interval
25
+ assert_nil d.instance.pos_file
26
+ assert_equal ['application'], d.instance.channels
27
+ assert_true d.instance.keys.empty?
28
+ assert_false d.instance.read_from_head
29
+ end
30
+
31
+ def test_write
32
+ d = create_driver
33
+
34
+ service = Fluent::Plugin::EventService.new
35
+
36
+ d.run(expect_emits: 1) do
37
+ service.run
38
+ end
39
+
40
+ assert(d.events.length >= 1)
41
+ event = d.events.select {|e| e.last["event_id"] == "65500" }.last
42
+ record = event.last
43
+ assert_equal("application", record["channel"])
44
+ assert_equal("65500", record["event_id"])
45
+ assert_equal("information", record["event_type"])
46
+ assert_equal("fluent-plugins", record["source_name"])
47
+ end
48
+ end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-windows-eventlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - okahashi117
8
8
  - Hiroshi Hatake
9
9
  - Masahiro Nakagawa
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-09-16 00:00:00.000000000 Z
13
+ date: 2022-09-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.9.1
131
+ version: 0.10.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.9.1
138
+ version: 0.10.1
139
139
  description: Fluentd Input plugin to read windows event log.
140
140
  email:
141
141
  - naruki_okahashi@jbat.co.jp
@@ -167,7 +167,7 @@ homepage: https://github.com/fluent/fluent-plugin-windows-eventlog
167
167
  licenses:
168
168
  - Apache-2.0
169
169
  metadata: {}
170
- post_install_message:
170
+ post_install_message:
171
171
  rdoc_options: []
172
172
  require_paths:
173
173
  - lib
@@ -182,8 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.1.4
186
- signing_key:
185
+ rubygems_version: 3.3.5
186
+ signing_key:
187
187
  specification_version: 4
188
188
  summary: Fluentd Input plugin to read windows event log.
189
189
  test_files: