Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Nov 1, 2017
1 parent b1e2205 commit a58effe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rules/ruleset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,15 @@ func TestActiveRuleSetForwardMappingPoliciesForNonRollupID(t *testing.T) {
policy.NewPolicy(policy.NewStoragePolicy(time.Minute, xtime.Minute, time.Hour), policy.DefaultAggregationID),
},
),
policy.NewStagedPolicies(
35000,
false,
[]policy.Policy{
policy.NewPolicy(policy.NewStoragePolicy(10*time.Second, xtime.Second, 2*time.Hour), policy.DefaultAggregationID),
policy.NewPolicy(policy.NewStoragePolicy(30*time.Second, xtime.Second, 6*time.Hour), policy.DefaultAggregationID),
policy.NewPolicy(policy.NewStoragePolicy(time.Minute, xtime.Minute, time.Hour), policy.DefaultAggregationID),
},
),
},
},
{
Expand Down Expand Up @@ -387,6 +396,15 @@ func TestActiveRuleSetReverseMappingPoliciesForNonRollupID(t *testing.T) {
policy.NewPolicy(policy.NewStoragePolicy(time.Minute, xtime.Minute, time.Hour), policy.DefaultAggregationID),
},
),
policy.NewStagedPolicies(
35000,
false,
[]policy.Policy{
policy.NewPolicy(policy.NewStoragePolicy(10*time.Second, xtime.Second, 2*time.Hour), policy.DefaultAggregationID),
policy.NewPolicy(policy.NewStoragePolicy(30*time.Second, xtime.Second, 6*time.Hour), policy.DefaultAggregationID),
policy.NewPolicy(policy.NewStoragePolicy(time.Minute, xtime.Minute, time.Hour), policy.DefaultAggregationID),
},
),
},
},
{
Expand Down Expand Up @@ -729,6 +747,13 @@ func TestActiveRuleSetRollupResults(t *testing.T) {
policy.NewPolicy(policy.NewStoragePolicy(10*time.Second, xtime.Second, 24*time.Hour), policy.DefaultAggregationID),
},
),
policy.NewStagedPolicies(
30000,
false,
[]policy.Policy{
policy.NewPolicy(policy.NewStoragePolicy(10*time.Second, xtime.Second, 24*time.Hour), policy.DefaultAggregationID),
},
),
policy.NewStagedPolicies(
34000,
true,
Expand Down

0 comments on commit a58effe

Please sign in to comment.