diff options
| author | Luke Kanies <luke@reductivelabs.com> | 2010-03-23 10:31:55 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | f4ef039245e14d278955f0692296511e4e45c744 (patch) | |
| tree | 5203114d3a63e19e9942571db8308ea38faf9d8e /spec/integration | |
| parent | fdefb646e722207c57fee9decf4e22fa582a072d (diff) | |
| download | puppet-f4ef039245e14d278955f0692296511e4e45c744.tar.gz puppet-f4ef039245e14d278955f0692296511e4e45c744.tar.xz puppet-f4ef039245e14d278955f0692296511e4e45c744.zip | |
Changing REST report integration test to use new interface
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/indirector/report/rest.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/integration/indirector/report/rest.rb b/spec/integration/indirector/report/rest.rb index a3894f9a9..76b3b9003 100644 --- a/spec/integration/indirector/report/rest.rb +++ b/spec/integration/indirector/report/rest.rb @@ -74,7 +74,7 @@ describe "Report REST Terminus" do :failed_restarts => 1, :scheduled => 10 } - report.newmetric(:resources, resourcemetrics) + report.add_metric(:resources, resourcemetrics) timemetrics = { :resource1 => 10, @@ -82,13 +82,12 @@ describe "Report REST Terminus" do :resource3 => 40, :resource4 => 20, } - report.newmetric(:times, timemetrics) + report.add_metric(:times, timemetrics) - report.newmetric(:changes, + report.add_metric(:changes, :total => 20 ) - report.time = Time.now report.save end end |
