367
Suite.new :report, "Reports interactions" do
369
Puppet::Transaction::Report.terminus_class = :rest
372
newtest :empty, "send empty report" do
373
report = Puppet::Transaction::Report.new
374
report.time = Time.now
378
newtest :fake, "send fake report" do
379
report = Puppet::Transaction::Report.new
387
:failed_restarts => 1,
390
report.newmetric(:resources, resourcemetrics)
398
report.newmetric(:times, timemetrics)
400
report.newmetric(:changes,
404
report.time = Time.now
368
[ "--compile", "-c", GetoptLong::NO_ARGUMENT ],
369
[ "--describe", GetoptLong::REQUIRED_ARGUMENT ],
370
[ "--retrieve", "-R", GetoptLong::REQUIRED_ARGUMENT ],
371
[ "--fork", GetoptLong::REQUIRED_ARGUMENT ],
372
[ "--fqdn", "-F", GetoptLong::REQUIRED_ARGUMENT ],
373
[ "--suite", "-s", GetoptLong::REQUIRED_ARGUMENT ],
374
[ "--test", "-t", GetoptLong::REQUIRED_ARGUMENT ],
375
[ "--pause", "-p", GetoptLong::NO_ARGUMENT ],
376
[ "--repeat", "-r", GetoptLong::REQUIRED_ARGUMENT ],
377
[ "--debug", "-d", GetoptLong::NO_ARGUMENT ],
378
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
379
[ "--list", "-l", GetoptLong::NO_ARGUMENT ],
380
[ "--verbose", "-v", GetoptLong::NO_ARGUMENT ],
381
[ "--version", "-V", GetoptLong::NO_ARGUMENT ],
411
[ "--compile", "-c", GetoptLong::NO_ARGUMENT ],
412
[ "--describe", GetoptLong::REQUIRED_ARGUMENT ],
413
[ "--retrieve", "-R", GetoptLong::REQUIRED_ARGUMENT ],
414
[ "--fork", GetoptLong::REQUIRED_ARGUMENT ],
415
[ "--fqdn", "-F", GetoptLong::REQUIRED_ARGUMENT ],
416
[ "--suite", "-s", GetoptLong::REQUIRED_ARGUMENT ],
417
[ "--test", "-t", GetoptLong::REQUIRED_ARGUMENT ],
418
[ "--pause", "-p", GetoptLong::NO_ARGUMENT ],
419
[ "--repeat", "-r", GetoptLong::REQUIRED_ARGUMENT ],
420
[ "--node", "-n", GetoptLong::REQUIRED_ARGUMENT ],
421
[ "--debug", "-d", GetoptLong::NO_ARGUMENT ],
422
[ "--help", "-h", GetoptLong::NO_ARGUMENT ],
423
[ "--list", "-l", GetoptLong::NO_ARGUMENT ],
424
[ "--verbose", "-v", GetoptLong::NO_ARGUMENT ],
425
[ "--version", "-V", GetoptLong::NO_ARGUMENT ],
384
428
# Add all of the config parameters as valid $options.
385
429
Puppet.settings.addargs($cmdargs)
386
430
Puppet::Util::Log.newdestination(:console)
432
Puppet::Node.terminus_class = :plain
433
Puppet::Node.cache_class = :yaml
434
Puppet::Node::Facts.terminus_class = :facter
435
Puppet::Node::Facts.cache_class = :yaml
388
437
result = GetoptLong.new(*$cmdargs)
392
$options = {:repeat => 1, :fork => 0, :pause => false}
441
$options = {:repeat => 1, :fork => 0, :pause => false, :nodes => []}
395
444
explicit_waitforcert = false