feature #696: Fix timestamp value for tests

This commit is contained in:
Daniel Molina committed 2011-07-08 19:13:40 +02:00
1 parent d2a11a7be2
commit 3f124aa537
3 files changed
+13 -35

No files matched your search

+9 -31
View File
@@ -18,38 +18,16 @@
:DB: sqlite:///tmp/test_one_acct.db
# Duration of each daemon loop in seconds
:STEP: 300 # 5 minutes
:STEP: 2
#-------------------------------------------------------------------------------
# VM Monitoring
#-------------------------------------------------------------------------------
# Number of daemon loops until an accounting watch
:ACCOUNTING_STEPS: 1
:VM_MONITORING:
# Number of daemon loops until a VM monitoring watch
:VM_MONITORING_STEPS: 1
# Number of daemon loops until a VM monitoring watch
:STEPS: 1
# Number of VM records to preserve
:WINDOW_SIZE: 5
#-------------------------------------------------------------------------------
# HOST Monitoring
#-------------------------------------------------------------------------------
:HOST_MONITORING:
# Number of daemon loops until a Hosts monitoring watch
:STEPS: 3
# Number of HOST records to preserve
:WINDOW_SIZE: 5
#-------------------------------------------------------------------------------
# Accounting
#-------------------------------------------------------------------------------
:ACCOUNTING:
# Number of daemon loops until an accounting watch
:STEPS: 10
# Number of daemon loops until a Hosts monitoring watch
:HOST_MONITORING_STEPS: 1
# Number of records to preserve
:WINDOW_SIZE: 10
+3 -3
View File
@@ -75,7 +75,7 @@ describe "1 Vm 1 History" do
@watch_client.running_time(ts1, ts2).to_i.should eql(0)
ts3 = 300
@accounting.set_mock_timestamp(ts2)
@accounting.set_mock_timestamp(ts3)
values = {
:uid => 2,
@@ -181,7 +181,7 @@ describe "1 Vm 1 History" do
@watch_client.prolog_time(ts1, ts2).to_i.should eql(5)
ts3 = 300
@accounting.set_mock_timestamp(ts2)
@accounting.set_mock_timestamp(ts3)
values = {
:uid => 2,
@@ -287,7 +287,7 @@ describe "1 Vm 1 History" do
@watch_client.prolog_time(ts1, ts2).to_i.should eql(5)
ts3 = 300
@accounting.set_mock_timestamp(ts2)
@accounting.set_mock_timestamp(ts3)
values = {
:uid => 2,
+1 -1
View File
@@ -51,7 +51,7 @@ describe "1 Vm X History" do
@watch_client.running_time(ts1, ts2).to_i.should eql(sum)
ts3 = 300
@accounting.set_mock_timestamp(ts2)
@accounting.set_mock_timestamp(ts3)
values = {
:uid => 2,