fluent-plugin-cloud-feeds 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/fluent-plugin-cloud-feeds.gemspec +1 -1
- data/lib/fluent/plugin/out_rackspace_cloud_feeds.rb +1 -1
- data/spec/feeds_output_spec.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzlhN2I4ZmIzMGJjZWZjYzk4NTBiODBlY2UxZGRkODg0NTVkZGE5Mg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjA0MDVkNDVjYTk0NzFlNThmN2FjOTM0OWM0YmJhNTM0YTg5NTY2MQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjY0NTA5MGRmZTA4NTlkYTIzOWRiYmIxMzc5ZTQyYjFmOTExNjczM2NmYzkw
|
|
10
|
+
YTgxNzU1Y2EyM2NkZDk3ZGRhNmQ4Nzc4ZGEwYmU4MjhiOGQ0M2Y1Yjk4MWQx
|
|
11
|
+
NTRkZGQ5NzRjZTY5OGFjZjk3YjBkMzM0NDA4OWE2ZjNmZjY1ODc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZGFhNDNjZDA0NGUzZWI4OTEwYjNhYzU4ZWZlNDFjZTgzODEzMmZmZTUxZmMz
|
|
14
|
+
M2FmZWRmZmVkZjc2YjIxMDVjMjgyZGUxOTU4NzU0NTBlMGNmMmQ0NDMxYjUx
|
|
15
|
+
NDE1MWVlZjE3YzM4MTI3OGM5MmY1ZGRlMjVmY2NiODY3NjNkMWE=
|
data/Gemfile.lock
CHANGED
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "fluent-plugin-cloud-feeds"
|
|
5
|
-
s.version = "1.
|
|
5
|
+
s.version = "1.2.0"
|
|
6
6
|
s.authors = ["David Kowis", "Tyler Royal"]
|
|
7
7
|
s.email= ["david.kowis@rackspace.com", "tyler.royal@rackspace.com"]
|
|
8
8
|
s.homepage = "https://github.com/rackerlabs/fluent-plugin-cloud-feeds"
|
|
@@ -110,7 +110,7 @@ EOF
|
|
|
110
110
|
# take the data, put it in to an abdera envelope
|
|
111
111
|
post = Net::HTTP::Post.new @feeds_uri.path
|
|
112
112
|
|
|
113
|
-
post.body = atomic_wrapper(
|
|
113
|
+
post.body = atomic_wrapper(record['message'], time)
|
|
114
114
|
unless @auth_token
|
|
115
115
|
#get new auth token
|
|
116
116
|
@auth_token = authenticate_user
|
data/spec/feeds_output_spec.rb
CHANGED
|
@@ -28,14 +28,13 @@ RSpec.describe('Rackspace Cloud Feeds output plugin') do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def simple_sample_payload
|
|
31
|
-
|
|
31
|
+
<<EOF
|
|
32
32
|
{ "GUID" : "87669264-3fc2-4e6e-b225-2f79f17d14c9", "ServiceCode" : "", "Region" : "", "DataCenter" : "", "Cluster" : "cluster", "Node" : "node", "RequestorIp" : "127.0.0.1", "Timestamp" : "1429546010984", "CadfTimestamp" : "2015-04-20T11:06:50.984-05:00", "Request" : { "Method" : "GET", "MethodLabel" : "", "CadfMethod" : "read/get", "URL" : "", "TargetHost" : "", "QueryString" : "", "Parameters" : { }, "UserName" : "", "ImpersonatorName" : "", "DefaultProjectID" : "", "ProjectID" : [ ], "Roles" : [ ], "UserAgent" : "" }, "Response" : { "Code" : 200, "CadfOutcome" : "success", "Message" : "OK" } }
|
|
33
33
|
EOF
|
|
34
|
-
)
|
|
35
34
|
end
|
|
36
35
|
|
|
37
36
|
def encoded_payload
|
|
38
|
-
{'message' => simple_sample_payload}
|
|
37
|
+
{'message' => simple_sample_payload}
|
|
39
38
|
end
|
|
40
39
|
|
|
41
40
|
def less_simple_payload
|
|
@@ -59,7 +58,7 @@ EOF
|
|
|
59
58
|
|
|
60
59
|
expect(REXML::XPath.first(doc, "/entry/author/name").text).to eq("Repose")
|
|
61
60
|
expect(REXML::XPath.first(doc, "/entry/updated").text).to match(/\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d.\d\d\dZ/)
|
|
62
|
-
expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content
|
|
61
|
+
expect(REXML::XPath.first(doc, "/entry/content").text).to eq(content)
|
|
63
62
|
end
|
|
64
63
|
|
|
65
64
|
def print_logs
|