Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #184 from ripienaar/misc_redundant_stats
Browse files Browse the repository at this point in the history
(misc) remove duplicate stats data
  • Loading branch information
ripienaar committed Feb 11, 2017
2 parents cda6fbf + f7d51c3 commit 1539309
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/mcollective/registration/choria.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def registration_data
{
"timestamp" => Time.now.to_i,
"identity" => config.identity,
"agents" => Agents.agentlist,
"version" => MCollective::VERSION,
"stats" => PluginManager["global_stats"].to_hash,
"nats" => {
Expand Down
2 changes: 0 additions & 2 deletions spec/unit/mcollective/registration/choria_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ module Registration
it "should return the right data" do
t = Time.now
Time.stubs(:now).returns(t)
Agents.expects(:agentlist).returns(["rspec"])
PluginManager.expects(:[]).with("global_stats").returns("g_stats" => 1)
choria.expects(:connected_server).returns("nats.example.net")
choria.expects(:connector_stats).returns("c_stats" => 1)
expect(choria.registration_data).to eq(
"timestamp" => t.to_i,
"identity" => "rspec_identity",
"agents" => ["rspec"],
"version" => MCollective::VERSION,
"stats" => {"g_stats" => 1},
"nats" => {
Expand Down

0 comments on commit 1539309

Please sign in to comment.