mcollective-client 2.11.4 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mcollective.rb CHANGED
@@ -59,7 +59,7 @@ module MCollective
59
59
 
60
60
  MCollective::Vendor.load_vendored
61
61
 
62
- VERSION="2.11.4"
62
+ VERSION="2.12.0"
63
63
 
64
64
  def self.version
65
65
  VERSION
@@ -17,7 +17,7 @@ module MCollective
17
17
  attr_reader :default_discovery_method, :default_discovery_options
18
18
  attr_reader :publish_timeout, :threaded, :soft_shutdown, :activate_agents
19
19
  attr_reader :registration_splay, :discovery_timeout, :soft_shutdown_timeout
20
- attr_reader :connection_timeout
20
+ attr_reader :connection_timeout, :default_batch_size, :default_batch_sleep_time
21
21
 
22
22
  def initialize
23
23
  @configured = false
@@ -125,6 +125,10 @@ module MCollective
125
125
  @soft_shutdown_timeout = Integer(val)
126
126
  when "activate_agents"
127
127
  @activate_agents = Util.str_to_bool(val)
128
+ when "default_batch_size"
129
+ @default_batch_size = Integer(val)
130
+ when "default_batch_sleep_time"
131
+ @default_batch_sleep_time = Float(val)
128
132
  when "topicprefix", "topicsep", "queueprefix", "rpchelptemplate", "helptemplatedir"
129
133
  Log.warn("Use of deprecated '#{key}' option. This option is ignored and should be removed from '#{configfile}'")
130
134
  else
@@ -212,6 +216,8 @@ module MCollective
212
216
  @soft_shutdown_timeout = nil
213
217
  @activate_agents = true
214
218
  @connection_timeout = nil
219
+ @default_batch_size = 0
220
+ @default_batch_sleep_time = 1
215
221
  end
216
222
 
217
223
  def libdir
@@ -437,7 +437,7 @@ module MCollective
437
437
 
438
438
  # We expect all messages we get to be of STOMP frame type MESSAGE, raise on unexpected types
439
439
  if msg.command != 'MESSAGE'
440
- Log.debug("Unexpected '#{msg.command}' frame. Headers: #{msg.headers.inspect} Body: #{msg.body.inspect}")
440
+ Log.warn("Unexpected '#{msg.command}' frame. Headers: #{msg.headers.inspect} Body: #{msg.body.inspect}")
441
441
  raise UnexpectedMessageType.new(exponential_back_off),
442
442
  "Received frame of type '#{msg.command}' expected 'MESSAGE'"
443
443
  end
@@ -23,7 +23,11 @@ module MCollective
23
23
  fact_files.each do |file|
24
24
  begin
25
25
  if File.exist?(file)
26
- facts.merge!(YAML.load(File.read(file)))
26
+ if YAML.respond_to? :safe_load
27
+ facts.merge!(YAML.safe_load(File.read(file)))
28
+ else
29
+ facts.merge!(YAML.load(File.read(file))) # rubocop:disable Security/YAMLLoad
30
+ end
27
31
  else
28
32
  raise("Can't find YAML file to load: #{file}")
29
33
  end
@@ -15,6 +15,8 @@ module MCollective
15
15
 
16
16
  @logger = ::Logger.new(config.logfile, config.keeplogs, config.max_log_size)
17
17
  @logger.formatter = ::Logger::Formatter.new
18
+ # ISO-8601 with sub-second precision and offset from UTC.
19
+ @logger.formatter.datetime_format = "%Y-%m-%dT%H:%M:%S.%6N%:z "
18
20
 
19
21
  set_level(config.loglevel.to_sym)
20
22
  end
@@ -71,8 +71,8 @@ module MCollective
71
71
  @discovery_options = initial_options[:discovery_options] || []
72
72
  @force_display_mode = initial_options[:force_display_mode] || false
73
73
 
74
- @batch_size = initial_options[:batch_size] || 0
75
- @batch_sleep_time = Float(initial_options[:batch_sleep_time] || 1)
74
+ @batch_size = initial_options[:batch_size] || Config.instance.default_batch_size
75
+ @batch_sleep_time = Float(initial_options[:batch_sleep_time] || Config.instance.default_batch_sleep_time)
76
76
  @batch_mode = determine_batch_mode(@batch_size)
77
77
 
78
78
  agent_filter agent
@@ -412,8 +412,8 @@ module MCollective
412
412
 
413
413
  Message.stubs(:new)
414
414
 
415
- Log.stubs(:debug)
416
- Log.expects(:debug).with('Unexpected \'ERROR\' frame. Headers: "headers" Body: "Out of cheese exception"')
415
+ Log.stubs(:warn)
416
+ Log.expects(:warn).with('Unexpected \'ERROR\' frame. Headers: "headers" Body: "Out of cheese exception"')
417
417
 
418
418
  expect { connector.receive }.to raise_error(UnexpectedMessageType, /Received frame of type 'ERROR' expected 'MESSAGE'/)
419
419
  end
@@ -8,6 +8,7 @@ module MCollective
8
8
  module Logger
9
9
  describe File_logger do
10
10
  let(:mock_logger) { mock('logger') }
11
+ let(:mock_formatter) { mock('formatter') }
11
12
 
12
13
  before :each do
13
14
  Config.instance.stubs(:loglevel).returns("error")
@@ -17,6 +18,9 @@ module MCollective
17
18
  ::Logger.stubs(:new).returns(mock_logger)
18
19
  mock_logger.stubs(:formatter=)
19
20
  mock_logger.stubs(:level=)
21
+
22
+ mock_logger.stubs(:formatter).returns(mock_formatter)
23
+ mock_formatter.stubs(:datetime_format=)
20
24
  end
21
25
 
22
26
  describe "#start" do
@@ -156,6 +156,18 @@ module MCollective
156
156
  c = Client.new("rspec", :options => {:config => "/nonexisting", :disctimeout => 10})
157
157
  c.instance_variable_get("@discovery_timeout").should == 10
158
158
  end
159
+
160
+ it "should default to configured batch options" do
161
+ expect(@client.batch_size).to eq(0)
162
+ expect(@client.batch_sleep_time).to eq(1)
163
+
164
+ Config.instance.stubs(:default_batch_size).returns(1000)
165
+ Config.instance.stubs(:default_batch_sleep_time).returns(30)
166
+ c = Client.new("rspec", :options => {})
167
+
168
+ expect(c.batch_size).to eq(1000)
169
+ expect(c.batch_sleep_time).to eq(30)
170
+ end
159
171
  end
160
172
 
161
173
  describe "#validate_request" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcollective-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.4
4
+ version: 2.12.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-02 00:00:00.000000000 Z
12
+ date: 2018-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: systemu
@@ -66,266 +66,266 @@ executables:
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
- - lib/mcollective/rpc.rb
70
- - lib/mcollective/monkey_patches.rb
71
- - lib/mcollective/connector.rb
72
- - lib/mcollective/pluginmanager.rb
73
- - lib/mcollective/client.rb
74
- - lib/mcollective/rpc/helpers.rb
75
- - lib/mcollective/rpc/client.rb
76
- - lib/mcollective/rpc/progress.rb
77
- - lib/mcollective/rpc/reply.rb
78
- - lib/mcollective/rpc/audit.rb
79
- - lib/mcollective/rpc/result.rb
80
- - lib/mcollective/rpc/agent.rb
81
- - lib/mcollective/rpc/request.rb
82
- - lib/mcollective/rpc/stats.rb
83
- - lib/mcollective/rpc/actionrunner.rb
84
- - lib/mcollective/facts/yaml_facts.rb
85
- - lib/mcollective/facts/base.rb
86
- - lib/mcollective/security.rb
87
- - lib/mcollective/log.rb
88
- - lib/mcollective/matcher.rb
89
- - lib/mcollective/unix_daemon.rb
90
- - lib/mcollective/application/rpc.rb
91
- - lib/mcollective/application/plugin.rb
92
- - lib/mcollective/application/ping.rb
93
- - lib/mcollective/application/completion.rb
94
- - lib/mcollective/application/describe_filter.rb
95
- - lib/mcollective/application/facts.rb
96
- - lib/mcollective/application/help.rb
97
- - lib/mcollective/application/inventory.rb
98
- - lib/mcollective/application/find.rb
99
- - lib/mcollective/validator/regex_validator.ddl
100
- - lib/mcollective/validator/typecheck_validator.ddl
101
- - lib/mcollective/validator/shellsafe_validator.ddl
102
- - lib/mcollective/validator/ipv6address_validator.ddl
103
- - lib/mcollective/validator/length_validator.ddl
104
- - lib/mcollective/validator/shellsafe_validator.rb
105
- - lib/mcollective/validator/ipv4address_validator.ddl
106
- - lib/mcollective/validator/ipv4address_validator.rb
107
- - lib/mcollective/validator/array_validator.ddl
108
- - lib/mcollective/validator/length_validator.rb
109
- - lib/mcollective/validator/regex_validator.rb
110
- - lib/mcollective/validator/ipv6address_validator.rb
111
- - lib/mcollective/validator/array_validator.rb
112
- - lib/mcollective/validator/typecheck_validator.rb
113
- - lib/mcollective/windows_daemon.rb
114
- - lib/mcollective/aggregate/sum.ddl
69
+ - lib/mcollective.rb
70
+ - lib/mcollective/agent.rb
71
+ - lib/mcollective/agent/discovery.rb
72
+ - lib/mcollective/agent/rpcutil.ddl
73
+ - lib/mcollective/agent/rpcutil.rb
74
+ - lib/mcollective/agents.rb
75
+ - lib/mcollective/aggregate.rb
115
76
  - lib/mcollective/aggregate/average.ddl
116
- - lib/mcollective/aggregate/summary.ddl
77
+ - lib/mcollective/aggregate/average.rb
78
+ - lib/mcollective/aggregate/base.rb
79
+ - lib/mcollective/aggregate/result.rb
80
+ - lib/mcollective/aggregate/result/base.rb
117
81
  - lib/mcollective/aggregate/result/collection_result.rb
118
82
  - lib/mcollective/aggregate/result/numeric_result.rb
119
- - lib/mcollective/aggregate/result/base.rb
83
+ - lib/mcollective/aggregate/sum.ddl
120
84
  - lib/mcollective/aggregate/sum.rb
121
- - lib/mcollective/aggregate/result.rb
122
- - lib/mcollective/aggregate/average.rb
85
+ - lib/mcollective/aggregate/summary.ddl
123
86
  - lib/mcollective/aggregate/summary.rb
124
- - lib/mcollective/aggregate/base.rb
125
- - lib/mcollective/optionparser.rb
126
- - lib/mcollective/ssl.rb
127
- - lib/mcollective/runnerstats.rb
128
- - lib/mcollective/shell.rb
129
- - lib/mcollective/validator.rb
130
- - lib/mcollective/vendor/require_vendored.rb
131
- - lib/mcollective/matcher/parser.rb
132
- - lib/mcollective/matcher/scanner.rb
133
- - lib/mcollective/audit/logfile.rb
134
- - lib/mcollective/config.rb
135
- - lib/mcollective/message.rb
136
87
  - lib/mcollective/application.rb
137
- - lib/mcollective/pluginpackager.rb
138
- - lib/mcollective/facts.rb
139
- - lib/mcollective/aggregate.rb
140
- - lib/mcollective/cache.rb
141
- - lib/mcollective/exceptions.rb
142
- - lib/mcollective/registration/agentlist.rb
143
- - lib/mcollective/registration/base.rb
144
- - lib/mcollective/discovery/mc.rb
145
- - lib/mcollective/discovery/mc.ddl
146
- - lib/mcollective/discovery/flatfile.ddl
147
- - lib/mcollective/discovery/stdin.ddl
148
- - lib/mcollective/discovery/stdin.rb
149
- - lib/mcollective/discovery/flatfile.rb
88
+ - lib/mcollective/application/completion.rb
89
+ - lib/mcollective/application/describe_filter.rb
90
+ - lib/mcollective/application/facts.rb
91
+ - lib/mcollective/application/find.rb
92
+ - lib/mcollective/application/help.rb
93
+ - lib/mcollective/application/inventory.rb
94
+ - lib/mcollective/application/ping.rb
95
+ - lib/mcollective/application/plugin.rb
96
+ - lib/mcollective/application/rpc.rb
150
97
  - lib/mcollective/applications.rb
151
- - lib/mcollective/generators.rb
152
- - lib/mcollective/data/fact_data.ddl
153
- - lib/mcollective/data/agent_data.rb
154
- - lib/mcollective/data/collective_data.rb
98
+ - lib/mcollective/audit/logfile.rb
99
+ - lib/mcollective/cache.rb
100
+ - lib/mcollective/client.rb
101
+ - lib/mcollective/config.rb
102
+ - lib/mcollective/connector.rb
103
+ - lib/mcollective/connector/activemq.ddl
104
+ - lib/mcollective/connector/activemq.rb
105
+ - lib/mcollective/connector/base.rb
106
+ - lib/mcollective/connector/rabbitmq.ddl
107
+ - lib/mcollective/connector/rabbitmq.rb
108
+ - lib/mcollective/data.rb
155
109
  - lib/mcollective/data/agent_data.ddl
156
- - lib/mcollective/data/result.rb
110
+ - lib/mcollective/data/agent_data.rb
111
+ - lib/mcollective/data/base.rb
157
112
  - lib/mcollective/data/collective_data.ddl
113
+ - lib/mcollective/data/collective_data.rb
114
+ - lib/mcollective/data/fact_data.ddl
158
115
  - lib/mcollective/data/fact_data.rb
159
116
  - lib/mcollective/data/fstat_data.ddl
160
117
  - lib/mcollective/data/fstat_data.rb
161
- - lib/mcollective/data/base.rb
118
+ - lib/mcollective/data/result.rb
119
+ - lib/mcollective/ddl.rb
120
+ - lib/mcollective/ddl/agentddl.rb
121
+ - lib/mcollective/ddl/base.rb
162
122
  - lib/mcollective/ddl/dataddl.rb
163
123
  - lib/mcollective/ddl/discoveryddl.rb
164
124
  - lib/mcollective/ddl/validatorddl.rb
165
- - lib/mcollective/ddl/agentddl.rb
166
- - lib/mcollective/ddl/base.rb
167
- - lib/mcollective/data.rb
168
- - lib/mcollective/logger/file_logger.rb
169
- - lib/mcollective/logger/console_logger.rb
170
- - lib/mcollective/logger/syslog_logger.rb
171
- - lib/mcollective/logger/base.rb
172
- - lib/mcollective/registration.rb
173
125
  - lib/mcollective/discovery.rb
174
- - lib/mcollective/util.rb
126
+ - lib/mcollective/discovery/flatfile.ddl
127
+ - lib/mcollective/discovery/flatfile.rb
128
+ - lib/mcollective/discovery/mc.ddl
129
+ - lib/mcollective/discovery/mc.rb
130
+ - lib/mcollective/discovery/stdin.ddl
131
+ - lib/mcollective/discovery/stdin.rb
132
+ - lib/mcollective/exceptions.rb
133
+ - lib/mcollective/facts.rb
134
+ - lib/mcollective/facts/base.rb
135
+ - lib/mcollective/facts/yaml_facts.rb
136
+ - lib/mcollective/generators.rb
137
+ - lib/mcollective/generators/agent_generator.rb
138
+ - lib/mcollective/generators/base.rb
139
+ - lib/mcollective/generators/data_generator.rb
140
+ - lib/mcollective/generators/templates/action_snippet.erb
141
+ - lib/mcollective/generators/templates/data_input_snippet.erb
142
+ - lib/mcollective/generators/templates/ddl.erb
143
+ - lib/mcollective/generators/templates/plugin.erb
144
+ - lib/mcollective/log.rb
175
145
  - lib/mcollective/logger.rb
146
+ - lib/mcollective/logger/base.rb
147
+ - lib/mcollective/logger/console_logger.rb
148
+ - lib/mcollective/logger/file_logger.rb
149
+ - lib/mcollective/logger/syslog_logger.rb
150
+ - lib/mcollective/matcher.rb
151
+ - lib/mcollective/matcher/parser.rb
152
+ - lib/mcollective/matcher/scanner.rb
153
+ - lib/mcollective/message.rb
154
+ - lib/mcollective/monkey_patches.rb
155
+ - lib/mcollective/optionparser.rb
156
+ - lib/mcollective/pluginmanager.rb
157
+ - lib/mcollective/pluginpackager.rb
176
158
  - lib/mcollective/pluginpackager/agent_definition.rb
159
+ - lib/mcollective/pluginpackager/debpackage_packager.rb
160
+ - lib/mcollective/pluginpackager/modulepackage_packager.rb
161
+ - lib/mcollective/pluginpackager/ospackage_packager.rb
162
+ - lib/mcollective/pluginpackager/rpmpackage_packager.rb
163
+ - lib/mcollective/pluginpackager/standard_definition.rb
164
+ - lib/mcollective/pluginpackager/templates/debian/Makefile.erb
165
+ - lib/mcollective/pluginpackager/templates/debian/changelog.erb
177
166
  - lib/mcollective/pluginpackager/templates/debian/compat.erb
178
167
  - lib/mcollective/pluginpackager/templates/debian/control.erb
179
- - lib/mcollective/pluginpackager/templates/debian/rules.erb
180
- - lib/mcollective/pluginpackager/templates/debian/changelog.erb
181
- - lib/mcollective/pluginpackager/templates/debian/Makefile.erb
182
168
  - lib/mcollective/pluginpackager/templates/debian/copyright.erb
169
+ - lib/mcollective/pluginpackager/templates/debian/rules.erb
170
+ - lib/mcollective/pluginpackager/templates/module/Modulefile.erb
183
171
  - lib/mcollective/pluginpackager/templates/module/README.md.erb
184
172
  - lib/mcollective/pluginpackager/templates/module/_manifest.pp.erb
185
- - lib/mcollective/pluginpackager/templates/module/Modulefile.erb
186
173
  - lib/mcollective/pluginpackager/templates/redhat/rpm_spec.erb
187
- - lib/mcollective/pluginpackager/standard_definition.rb
188
- - lib/mcollective/pluginpackager/rpmpackage_packager.rb
189
- - lib/mcollective/pluginpackager/debpackage_packager.rb
190
- - lib/mcollective/pluginpackager/ospackage_packager.rb
191
- - lib/mcollective/pluginpackager/modulepackage_packager.rb
192
- - lib/mcollective/agent.rb
193
- - lib/mcollective/agents.rb
194
- - lib/mcollective/agent/discovery.rb
195
- - lib/mcollective/agent/rpcutil.rb
196
- - lib/mcollective/agent/rpcutil.ddl
197
- - lib/mcollective/ddl.rb
198
- - lib/mcollective/connector/activemq.rb
199
- - lib/mcollective/connector/rabbitmq.rb
200
- - lib/mcollective/connector/rabbitmq.ddl
201
- - lib/mcollective/connector/activemq.ddl
202
- - lib/mcollective/connector/base.rb
203
- - lib/mcollective/generators/agent_generator.rb
204
- - lib/mcollective/generators/templates/action_snippet.erb
205
- - lib/mcollective/generators/templates/ddl.erb
206
- - lib/mcollective/generators/templates/data_input_snippet.erb
207
- - lib/mcollective/generators/templates/plugin.erb
208
- - lib/mcollective/generators/data_generator.rb
209
- - lib/mcollective/generators/base.rb
210
- - lib/mcollective/vendor.rb
211
- - lib/mcollective/security/ssl.rb
174
+ - lib/mcollective/registration.rb
175
+ - lib/mcollective/registration/agentlist.rb
176
+ - lib/mcollective/registration/base.rb
177
+ - lib/mcollective/rpc.rb
178
+ - lib/mcollective/rpc/actionrunner.rb
179
+ - lib/mcollective/rpc/agent.rb
180
+ - lib/mcollective/rpc/audit.rb
181
+ - lib/mcollective/rpc/client.rb
182
+ - lib/mcollective/rpc/helpers.rb
183
+ - lib/mcollective/rpc/progress.rb
184
+ - lib/mcollective/rpc/reply.rb
185
+ - lib/mcollective/rpc/request.rb
186
+ - lib/mcollective/rpc/result.rb
187
+ - lib/mcollective/rpc/stats.rb
188
+ - lib/mcollective/runnerstats.rb
189
+ - lib/mcollective/security.rb
212
190
  - lib/mcollective/security/aes_security.rb
213
- - lib/mcollective/security/psk.rb
214
191
  - lib/mcollective/security/base.rb
215
- - lib/mcollective.rb
192
+ - lib/mcollective/security/psk.rb
193
+ - lib/mcollective/security/ssl.rb
194
+ - lib/mcollective/shell.rb
195
+ - lib/mcollective/ssl.rb
196
+ - lib/mcollective/unix_daemon.rb
197
+ - lib/mcollective/util.rb
198
+ - lib/mcollective/validator.rb
199
+ - lib/mcollective/validator/array_validator.ddl
200
+ - lib/mcollective/validator/array_validator.rb
201
+ - lib/mcollective/validator/ipv4address_validator.ddl
202
+ - lib/mcollective/validator/ipv4address_validator.rb
203
+ - lib/mcollective/validator/ipv6address_validator.ddl
204
+ - lib/mcollective/validator/ipv6address_validator.rb
205
+ - lib/mcollective/validator/length_validator.ddl
206
+ - lib/mcollective/validator/length_validator.rb
207
+ - lib/mcollective/validator/regex_validator.ddl
208
+ - lib/mcollective/validator/regex_validator.rb
209
+ - lib/mcollective/validator/shellsafe_validator.ddl
210
+ - lib/mcollective/validator/shellsafe_validator.rb
211
+ - lib/mcollective/validator/typecheck_validator.ddl
212
+ - lib/mcollective/validator/typecheck_validator.rb
213
+ - lib/mcollective/vendor.rb
214
+ - lib/mcollective/vendor/require_vendored.rb
215
+ - lib/mcollective/windows_daemon.rb
216
216
  - bin/mco
217
- - spec/fixtures/util/3.out
217
+ - spec/Rakefile
218
+ - spec/fixtures/application/test.rb
219
+ - spec/fixtures/test-cert.pem
220
+ - spec/fixtures/test-private.pem
221
+ - spec/fixtures/test-public.pem
218
222
  - spec/fixtures/util/1.in
219
- - spec/fixtures/util/4.in
220
223
  - spec/fixtures/util/1.out
221
- - spec/fixtures/util/3.in
222
- - spec/fixtures/util/4.out
223
224
  - spec/fixtures/util/2.in
224
225
  - spec/fixtures/util/2.out
225
- - spec/fixtures/application/test.rb
226
- - spec/fixtures/test-cert.pem
227
- - spec/fixtures/test-public.pem
228
- - spec/fixtures/test-private.pem
226
+ - spec/fixtures/util/3.in
227
+ - spec/fixtures/util/3.out
228
+ - spec/fixtures/util/4.in
229
+ - spec/fixtures/util/4.out
229
230
  - spec/monkey_patches/instance_variable_defined.rb
230
231
  - spec/spec.opts
231
- - spec/Rakefile
232
- - spec/unit/mcollective/application_spec.rb
233
- - spec/unit/mcollective/runnerstats_spec.rb
234
- - spec/unit/mcollective/validator_spec.rb
235
- - spec/unit/mcollective/rpc/agent_spec.rb
236
- - spec/unit/mcollective/rpc/helpers_spec.rb
237
- - spec/unit/mcollective/rpc/stats_spec.rb
238
- - spec/unit/mcollective/rpc/actionrunner_spec.rb
239
- - spec/unit/mcollective/rpc/request_spec.rb
240
- - spec/unit/mcollective/rpc/result_spec.rb
241
- - spec/unit/mcollective/rpc/client_spec.rb
242
- - spec/unit/mcollective/rpc/reply_spec.rb
243
- - spec/unit/mcollective/facts/base_spec.rb
244
- - spec/unit/mcollective/facts/yaml_facts_spec.rb
245
- - spec/unit/mcollective/vendor_spec.rb
246
- - spec/unit/mcollective/ssl_spec.rb
247
- - spec/unit/mcollective/application/plugin_spec.rb
248
- - spec/unit/mcollective/validator/ipv6address_validator_spec.rb
249
- - spec/unit/mcollective/validator/ipv4address_validator_spec.rb
250
- - spec/unit/mcollective/validator/regex_validator_spec.rb
251
- - spec/unit/mcollective/validator/array_validator_spec.rb
252
- - spec/unit/mcollective/validator/length_validator_spec.rb
253
- - spec/unit/mcollective/validator/typecheck_validator_spec.rb
254
- - spec/unit/mcollective/validator/shellsafe_validator_spec.rb
255
- - spec/unit/mcollective/aggregate/base_spec.rb
232
+ - spec/spec_helper.rb
233
+ - spec/unit/mcollective/agent/rpcutil_spec.rb
234
+ - spec/unit/mcollective/agents_spec.rb
256
235
  - spec/unit/mcollective/aggregate/average_spec.rb
236
+ - spec/unit/mcollective/aggregate/base_spec.rb
257
237
  - spec/unit/mcollective/aggregate/result/base_spec.rb
258
238
  - spec/unit/mcollective/aggregate/result/collection_result_spec.rb
259
239
  - spec/unit/mcollective/aggregate/result/numeric_result_spec.rb
260
240
  - spec/unit/mcollective/aggregate/sum_spec.rb
261
241
  - spec/unit/mcollective/aggregate/summary_spec.rb
262
- - spec/unit/mcollective/matcher_spec.rb
263
- - spec/unit/mcollective/windows_daemon_spec.rb
264
- - spec/unit/mcollective/config_spec.rb
265
- - spec/unit/mcollective/applications_spec.rb
266
- - spec/unit/mcollective/cache_spec.rb
267
- - spec/unit/mcollective/matcher/scanner_spec.rb
268
- - spec/unit/mcollective/matcher/parser_spec.rb
269
- - spec/unit/mcollective/audit/logfile_spec.rb
270
- - spec/unit/mcollective/string_spec.rb
271
- - spec/unit/mcollective/ddl_spec.rb
272
- - spec/unit/mcollective/log_spec.rb
273
- - spec/unit/mcollective/pluginmanager_spec.rb
274
- - spec/unit/mcollective/registration/base_spec.rb
275
- - spec/unit/mcollective/discovery/flatfile_spec.rb
276
- - spec/unit/mcollective/discovery/stdin_spec.rb
277
- - spec/unit/mcollective/discovery/mc_spec.rb
278
- - spec/unit/mcollective/data/collective_data_spec.rb
279
- - spec/unit/mcollective/data/base_spec.rb
242
+ - spec/unit/mcollective/aggregate_spec.rb
243
+ - spec/unit/mcollective/application/plugin_spec.rb
244
+ - spec/unit/mcollective/application_spec.rb
245
+ - spec/unit/mcollective/applications_spec.rb
246
+ - spec/unit/mcollective/array_spec.rb
247
+ - spec/unit/mcollective/audit/logfile_spec.rb
248
+ - spec/unit/mcollective/cache_spec.rb
249
+ - spec/unit/mcollective/client_spec.rb
250
+ - spec/unit/mcollective/config_spec.rb
251
+ - spec/unit/mcollective/connector/activemq_spec.rb
252
+ - spec/unit/mcollective/connector/base_spec.rb
253
+ - spec/unit/mcollective/connector/rabbitmq_spec.rb
280
254
  - spec/unit/mcollective/data/agent_data_spec.rb
281
- - spec/unit/mcollective/data/result_spec.rb
282
- - spec/unit/mcollective/data/fstat_data_spec.rb
255
+ - spec/unit/mcollective/data/base_spec.rb
256
+ - spec/unit/mcollective/data/collective_data_spec.rb
283
257
  - spec/unit/mcollective/data/fact_data_spec.rb
258
+ - spec/unit/mcollective/data/fstat_data_spec.rb
259
+ - spec/unit/mcollective/data/result_spec.rb
260
+ - spec/unit/mcollective/data_spec.rb
261
+ - spec/unit/mcollective/ddl/agentddl_spec.rb
284
262
  - spec/unit/mcollective/ddl/base_spec.rb
285
263
  - spec/unit/mcollective/ddl/dataddl_spec.rb
286
264
  - spec/unit/mcollective/ddl/discoveryddl_spec.rb
287
- - spec/unit/mcollective/ddl/agentddl_spec.rb
265
+ - spec/unit/mcollective/ddl_spec.rb
266
+ - spec/unit/mcollective/discovery/flatfile_spec.rb
267
+ - spec/unit/mcollective/discovery/mc_spec.rb
268
+ - spec/unit/mcollective/discovery/stdin_spec.rb
288
269
  - spec/unit/mcollective/discovery_spec.rb
270
+ - spec/unit/mcollective/facts/base_spec.rb
271
+ - spec/unit/mcollective/facts/yaml_facts_spec.rb
272
+ - spec/unit/mcollective/facts_spec.rb
273
+ - spec/unit/mcollective/generators/agent_generator_spec.rb
274
+ - spec/unit/mcollective/generators/base_spec.rb
275
+ - spec/unit/mcollective/generators/data_generator_spec.rb
276
+ - spec/unit/mcollective/generators/snippets/agent_ddl
277
+ - spec/unit/mcollective/generators/snippets/data_ddl
278
+ - spec/unit/mcollective/log_spec.rb
289
279
  - spec/unit/mcollective/logger/base_spec.rb
290
280
  - spec/unit/mcollective/logger/console_logger_spec.rb
291
281
  - spec/unit/mcollective/logger/file_logger_spec.rb
292
282
  - spec/unit/mcollective/logger/syslog_logger_spec.rb
293
- - spec/unit/mcollective/shell_spec.rb
294
- - spec/unit/mcollective/data_spec.rb
295
- - spec/unit/mcollective/packagers/modulepackage_packager_spec.rb
283
+ - spec/unit/mcollective/matcher/parser_spec.rb
284
+ - spec/unit/mcollective/matcher/scanner_spec.rb
285
+ - spec/unit/mcollective/matcher_spec.rb
286
+ - spec/unit/mcollective/message_spec.rb
287
+ - spec/unit/mcollective/monkey_patches_spec.rb
288
+ - spec/unit/mcollective/optionparser_spec.rb
296
289
  - spec/unit/mcollective/packagers/debpackage_packager_spec.rb
290
+ - spec/unit/mcollective/packagers/modulepackage_packager_spec.rb
297
291
  - spec/unit/mcollective/packagers/ospackage_spec.rb
298
292
  - spec/unit/mcollective/packagers/rpmpackage_packager_spec.rb
299
- - spec/unit/mcollective/client_spec.rb
300
- - spec/unit/mcollective/pluginpackager/standard_definition_spec.rb
293
+ - spec/unit/mcollective/pluginmanager_spec.rb
301
294
  - spec/unit/mcollective/pluginpackager/agent_definition_spec.rb
302
- - spec/unit/mcollective/agent/rpcutil_spec.rb
303
- - spec/unit/mcollective/aggregate_spec.rb
304
- - spec/unit/mcollective/array_spec.rb
305
- - spec/unit/mcollective/optionparser_spec.rb
306
- - spec/unit/mcollective/message_spec.rb
295
+ - spec/unit/mcollective/pluginpackager/standard_definition_spec.rb
307
296
  - spec/unit/mcollective/pluginpackager_spec.rb
308
- - spec/unit/mcollective/connector/rabbitmq_spec.rb
309
- - spec/unit/mcollective/connector/base_spec.rb
310
- - spec/unit/mcollective/connector/activemq_spec.rb
311
- - spec/unit/mcollective/generators/snippets/data_ddl
312
- - spec/unit/mcollective/generators/snippets/agent_ddl
313
- - spec/unit/mcollective/generators/base_spec.rb
314
- - spec/unit/mcollective/generators/data_generator_spec.rb
315
- - spec/unit/mcollective/generators/agent_generator_spec.rb
316
- - spec/unit/mcollective/runner_spec.rb
317
- - spec/unit/mcollective/util_spec.rb
318
- - spec/unit/mcollective/agents_spec.rb
319
- - spec/unit/mcollective/monkey_patches_spec.rb
320
- - spec/unit/mcollective/unix_daemon_spec.rb
297
+ - spec/unit/mcollective/registration/base_spec.rb
298
+ - spec/unit/mcollective/rpc/actionrunner_spec.rb
299
+ - spec/unit/mcollective/rpc/agent_spec.rb
300
+ - spec/unit/mcollective/rpc/client_spec.rb
301
+ - spec/unit/mcollective/rpc/helpers_spec.rb
302
+ - spec/unit/mcollective/rpc/reply_spec.rb
303
+ - spec/unit/mcollective/rpc/request_spec.rb
304
+ - spec/unit/mcollective/rpc/result_spec.rb
305
+ - spec/unit/mcollective/rpc/stats_spec.rb
321
306
  - spec/unit/mcollective/rpc_spec.rb
322
- - spec/unit/mcollective/facts_spec.rb
323
- - spec/unit/mcollective/symbol_spec.rb
307
+ - spec/unit/mcollective/runner_spec.rb
308
+ - spec/unit/mcollective/runnerstats_spec.rb
324
309
  - spec/unit/mcollective/security/aes_security_spec.rb
325
- - spec/unit/mcollective/security/ssl_spec.rb
326
310
  - spec/unit/mcollective/security/base_spec.rb
327
311
  - spec/unit/mcollective/security/psk_spec.rb
328
- - spec/spec_helper.rb
312
+ - spec/unit/mcollective/security/ssl_spec.rb
313
+ - spec/unit/mcollective/shell_spec.rb
314
+ - spec/unit/mcollective/ssl_spec.rb
315
+ - spec/unit/mcollective/string_spec.rb
316
+ - spec/unit/mcollective/symbol_spec.rb
317
+ - spec/unit/mcollective/unix_daemon_spec.rb
318
+ - spec/unit/mcollective/util_spec.rb
319
+ - spec/unit/mcollective/validator/array_validator_spec.rb
320
+ - spec/unit/mcollective/validator/ipv4address_validator_spec.rb
321
+ - spec/unit/mcollective/validator/ipv6address_validator_spec.rb
322
+ - spec/unit/mcollective/validator/length_validator_spec.rb
323
+ - spec/unit/mcollective/validator/regex_validator_spec.rb
324
+ - spec/unit/mcollective/validator/shellsafe_validator_spec.rb
325
+ - spec/unit/mcollective/validator/typecheck_validator_spec.rb
326
+ - spec/unit/mcollective/validator_spec.rb
327
+ - spec/unit/mcollective/vendor_spec.rb
328
+ - spec/unit/mcollective/windows_daemon_spec.rb
329
329
  - spec/windows_spec.opts
330
330
  homepage: https://docs.puppetlabs.com/mcollective/
331
331
  licenses: []
@@ -365,116 +365,116 @@ signing_key:
365
365
  specification_version: 3
366
366
  summary: Client libraries for the Mcollective Application Server
367
367
  test_files:
368
- - spec/fixtures/util/3.out
368
+ - spec/Rakefile
369
+ - spec/fixtures/application/test.rb
370
+ - spec/fixtures/test-cert.pem
371
+ - spec/fixtures/test-private.pem
372
+ - spec/fixtures/test-public.pem
369
373
  - spec/fixtures/util/1.in
370
- - spec/fixtures/util/4.in
371
374
  - spec/fixtures/util/1.out
372
- - spec/fixtures/util/3.in
373
- - spec/fixtures/util/4.out
374
375
  - spec/fixtures/util/2.in
375
376
  - spec/fixtures/util/2.out
376
- - spec/fixtures/application/test.rb
377
- - spec/fixtures/test-cert.pem
378
- - spec/fixtures/test-public.pem
379
- - spec/fixtures/test-private.pem
377
+ - spec/fixtures/util/3.in
378
+ - spec/fixtures/util/3.out
379
+ - spec/fixtures/util/4.in
380
+ - spec/fixtures/util/4.out
380
381
  - spec/monkey_patches/instance_variable_defined.rb
381
382
  - spec/spec.opts
382
- - spec/Rakefile
383
- - spec/unit/mcollective/application_spec.rb
384
- - spec/unit/mcollective/runnerstats_spec.rb
385
- - spec/unit/mcollective/validator_spec.rb
386
- - spec/unit/mcollective/rpc/agent_spec.rb
387
- - spec/unit/mcollective/rpc/helpers_spec.rb
388
- - spec/unit/mcollective/rpc/stats_spec.rb
389
- - spec/unit/mcollective/rpc/actionrunner_spec.rb
390
- - spec/unit/mcollective/rpc/request_spec.rb
391
- - spec/unit/mcollective/rpc/result_spec.rb
392
- - spec/unit/mcollective/rpc/client_spec.rb
393
- - spec/unit/mcollective/rpc/reply_spec.rb
394
- - spec/unit/mcollective/facts/base_spec.rb
395
- - spec/unit/mcollective/facts/yaml_facts_spec.rb
396
- - spec/unit/mcollective/vendor_spec.rb
397
- - spec/unit/mcollective/ssl_spec.rb
398
- - spec/unit/mcollective/application/plugin_spec.rb
399
- - spec/unit/mcollective/validator/ipv6address_validator_spec.rb
400
- - spec/unit/mcollective/validator/ipv4address_validator_spec.rb
401
- - spec/unit/mcollective/validator/regex_validator_spec.rb
402
- - spec/unit/mcollective/validator/array_validator_spec.rb
403
- - spec/unit/mcollective/validator/length_validator_spec.rb
404
- - spec/unit/mcollective/validator/typecheck_validator_spec.rb
405
- - spec/unit/mcollective/validator/shellsafe_validator_spec.rb
406
- - spec/unit/mcollective/aggregate/base_spec.rb
383
+ - spec/spec_helper.rb
384
+ - spec/unit/mcollective/agent/rpcutil_spec.rb
385
+ - spec/unit/mcollective/agents_spec.rb
407
386
  - spec/unit/mcollective/aggregate/average_spec.rb
387
+ - spec/unit/mcollective/aggregate/base_spec.rb
408
388
  - spec/unit/mcollective/aggregate/result/base_spec.rb
409
389
  - spec/unit/mcollective/aggregate/result/collection_result_spec.rb
410
390
  - spec/unit/mcollective/aggregate/result/numeric_result_spec.rb
411
391
  - spec/unit/mcollective/aggregate/sum_spec.rb
412
392
  - spec/unit/mcollective/aggregate/summary_spec.rb
413
- - spec/unit/mcollective/matcher_spec.rb
414
- - spec/unit/mcollective/windows_daemon_spec.rb
415
- - spec/unit/mcollective/config_spec.rb
393
+ - spec/unit/mcollective/aggregate_spec.rb
394
+ - spec/unit/mcollective/application/plugin_spec.rb
395
+ - spec/unit/mcollective/application_spec.rb
416
396
  - spec/unit/mcollective/applications_spec.rb
417
- - spec/unit/mcollective/cache_spec.rb
418
- - spec/unit/mcollective/matcher/scanner_spec.rb
419
- - spec/unit/mcollective/matcher/parser_spec.rb
397
+ - spec/unit/mcollective/array_spec.rb
420
398
  - spec/unit/mcollective/audit/logfile_spec.rb
421
- - spec/unit/mcollective/string_spec.rb
422
- - spec/unit/mcollective/ddl_spec.rb
423
- - spec/unit/mcollective/log_spec.rb
424
- - spec/unit/mcollective/pluginmanager_spec.rb
425
- - spec/unit/mcollective/registration/base_spec.rb
426
- - spec/unit/mcollective/discovery/flatfile_spec.rb
427
- - spec/unit/mcollective/discovery/stdin_spec.rb
428
- - spec/unit/mcollective/discovery/mc_spec.rb
429
- - spec/unit/mcollective/data/collective_data_spec.rb
430
- - spec/unit/mcollective/data/base_spec.rb
399
+ - spec/unit/mcollective/cache_spec.rb
400
+ - spec/unit/mcollective/client_spec.rb
401
+ - spec/unit/mcollective/config_spec.rb
402
+ - spec/unit/mcollective/connector/activemq_spec.rb
403
+ - spec/unit/mcollective/connector/base_spec.rb
404
+ - spec/unit/mcollective/connector/rabbitmq_spec.rb
431
405
  - spec/unit/mcollective/data/agent_data_spec.rb
432
- - spec/unit/mcollective/data/result_spec.rb
433
- - spec/unit/mcollective/data/fstat_data_spec.rb
406
+ - spec/unit/mcollective/data/base_spec.rb
407
+ - spec/unit/mcollective/data/collective_data_spec.rb
434
408
  - spec/unit/mcollective/data/fact_data_spec.rb
409
+ - spec/unit/mcollective/data/fstat_data_spec.rb
410
+ - spec/unit/mcollective/data/result_spec.rb
411
+ - spec/unit/mcollective/data_spec.rb
412
+ - spec/unit/mcollective/ddl/agentddl_spec.rb
435
413
  - spec/unit/mcollective/ddl/base_spec.rb
436
414
  - spec/unit/mcollective/ddl/dataddl_spec.rb
437
415
  - spec/unit/mcollective/ddl/discoveryddl_spec.rb
438
- - spec/unit/mcollective/ddl/agentddl_spec.rb
416
+ - spec/unit/mcollective/ddl_spec.rb
417
+ - spec/unit/mcollective/discovery/flatfile_spec.rb
418
+ - spec/unit/mcollective/discovery/mc_spec.rb
419
+ - spec/unit/mcollective/discovery/stdin_spec.rb
439
420
  - spec/unit/mcollective/discovery_spec.rb
421
+ - spec/unit/mcollective/facts/base_spec.rb
422
+ - spec/unit/mcollective/facts/yaml_facts_spec.rb
423
+ - spec/unit/mcollective/facts_spec.rb
424
+ - spec/unit/mcollective/generators/agent_generator_spec.rb
425
+ - spec/unit/mcollective/generators/base_spec.rb
426
+ - spec/unit/mcollective/generators/data_generator_spec.rb
427
+ - spec/unit/mcollective/generators/snippets/agent_ddl
428
+ - spec/unit/mcollective/generators/snippets/data_ddl
429
+ - spec/unit/mcollective/log_spec.rb
440
430
  - spec/unit/mcollective/logger/base_spec.rb
441
431
  - spec/unit/mcollective/logger/console_logger_spec.rb
442
432
  - spec/unit/mcollective/logger/file_logger_spec.rb
443
433
  - spec/unit/mcollective/logger/syslog_logger_spec.rb
444
- - spec/unit/mcollective/shell_spec.rb
445
- - spec/unit/mcollective/data_spec.rb
446
- - spec/unit/mcollective/packagers/modulepackage_packager_spec.rb
434
+ - spec/unit/mcollective/matcher/parser_spec.rb
435
+ - spec/unit/mcollective/matcher/scanner_spec.rb
436
+ - spec/unit/mcollective/matcher_spec.rb
437
+ - spec/unit/mcollective/message_spec.rb
438
+ - spec/unit/mcollective/monkey_patches_spec.rb
439
+ - spec/unit/mcollective/optionparser_spec.rb
447
440
  - spec/unit/mcollective/packagers/debpackage_packager_spec.rb
441
+ - spec/unit/mcollective/packagers/modulepackage_packager_spec.rb
448
442
  - spec/unit/mcollective/packagers/ospackage_spec.rb
449
443
  - spec/unit/mcollective/packagers/rpmpackage_packager_spec.rb
450
- - spec/unit/mcollective/client_spec.rb
451
- - spec/unit/mcollective/pluginpackager/standard_definition_spec.rb
444
+ - spec/unit/mcollective/pluginmanager_spec.rb
452
445
  - spec/unit/mcollective/pluginpackager/agent_definition_spec.rb
453
- - spec/unit/mcollective/agent/rpcutil_spec.rb
454
- - spec/unit/mcollective/aggregate_spec.rb
455
- - spec/unit/mcollective/array_spec.rb
456
- - spec/unit/mcollective/optionparser_spec.rb
457
- - spec/unit/mcollective/message_spec.rb
446
+ - spec/unit/mcollective/pluginpackager/standard_definition_spec.rb
458
447
  - spec/unit/mcollective/pluginpackager_spec.rb
459
- - spec/unit/mcollective/connector/rabbitmq_spec.rb
460
- - spec/unit/mcollective/connector/base_spec.rb
461
- - spec/unit/mcollective/connector/activemq_spec.rb
462
- - spec/unit/mcollective/generators/snippets/data_ddl
463
- - spec/unit/mcollective/generators/snippets/agent_ddl
464
- - spec/unit/mcollective/generators/base_spec.rb
465
- - spec/unit/mcollective/generators/data_generator_spec.rb
466
- - spec/unit/mcollective/generators/agent_generator_spec.rb
467
- - spec/unit/mcollective/runner_spec.rb
468
- - spec/unit/mcollective/util_spec.rb
469
- - spec/unit/mcollective/agents_spec.rb
470
- - spec/unit/mcollective/monkey_patches_spec.rb
471
- - spec/unit/mcollective/unix_daemon_spec.rb
448
+ - spec/unit/mcollective/registration/base_spec.rb
449
+ - spec/unit/mcollective/rpc/actionrunner_spec.rb
450
+ - spec/unit/mcollective/rpc/agent_spec.rb
451
+ - spec/unit/mcollective/rpc/client_spec.rb
452
+ - spec/unit/mcollective/rpc/helpers_spec.rb
453
+ - spec/unit/mcollective/rpc/reply_spec.rb
454
+ - spec/unit/mcollective/rpc/request_spec.rb
455
+ - spec/unit/mcollective/rpc/result_spec.rb
456
+ - spec/unit/mcollective/rpc/stats_spec.rb
472
457
  - spec/unit/mcollective/rpc_spec.rb
473
- - spec/unit/mcollective/facts_spec.rb
474
- - spec/unit/mcollective/symbol_spec.rb
458
+ - spec/unit/mcollective/runner_spec.rb
459
+ - spec/unit/mcollective/runnerstats_spec.rb
475
460
  - spec/unit/mcollective/security/aes_security_spec.rb
476
- - spec/unit/mcollective/security/ssl_spec.rb
477
461
  - spec/unit/mcollective/security/base_spec.rb
478
462
  - spec/unit/mcollective/security/psk_spec.rb
479
- - spec/spec_helper.rb
463
+ - spec/unit/mcollective/security/ssl_spec.rb
464
+ - spec/unit/mcollective/shell_spec.rb
465
+ - spec/unit/mcollective/ssl_spec.rb
466
+ - spec/unit/mcollective/string_spec.rb
467
+ - spec/unit/mcollective/symbol_spec.rb
468
+ - spec/unit/mcollective/unix_daemon_spec.rb
469
+ - spec/unit/mcollective/util_spec.rb
470
+ - spec/unit/mcollective/validator/array_validator_spec.rb
471
+ - spec/unit/mcollective/validator/ipv4address_validator_spec.rb
472
+ - spec/unit/mcollective/validator/ipv6address_validator_spec.rb
473
+ - spec/unit/mcollective/validator/length_validator_spec.rb
474
+ - spec/unit/mcollective/validator/regex_validator_spec.rb
475
+ - spec/unit/mcollective/validator/shellsafe_validator_spec.rb
476
+ - spec/unit/mcollective/validator/typecheck_validator_spec.rb
477
+ - spec/unit/mcollective/validator_spec.rb
478
+ - spec/unit/mcollective/vendor_spec.rb
479
+ - spec/unit/mcollective/windows_daemon_spec.rb
480
480
  - spec/windows_spec.opts