Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps authored and didierofrivia committed Nov 23, 2023
1 parent 1525fe7 commit 099f4f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/rlptools/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func TestLimitadorRateLimitsFromRLP(t *testing.T) {
Seconds: 10,
Conditions: []string{`limit.l1__2804bad6 == "1"`},
Variables: []string{},
Name: "testNS/rlpA",
},
},
},
Expand All @@ -206,13 +207,15 @@ func TestLimitadorRateLimitsFromRLP(t *testing.T) {
Seconds: 10,
Conditions: []string{`limit.l1__2804bad6 == "1"`},
Variables: []string{},
Name: "testNS/rlpA",
},
{
Namespace: "testNS/rlpA",
MaxValue: 3,
Seconds: 3600,
Conditions: []string{`limit.l2__8a1cee43 == "1"`},
Variables: []string{},
Name: "testNS/rlpA",
},
},
},
Expand All @@ -226,13 +229,15 @@ func TestLimitadorRateLimitsFromRLP(t *testing.T) {
Seconds: 10,
Conditions: []string{`limit.l1__2804bad6 == "1"`},
Variables: []string{},
Name: "testNS/rlpA",
},
{
Namespace: "testNS/rlpA",
MaxValue: 3,
Seconds: 60,
Conditions: []string{`limit.l1__2804bad6 == "1"`},
Variables: []string{},
Name: "testNS/rlpA",
},
},
},
Expand All @@ -246,6 +251,7 @@ func TestLimitadorRateLimitsFromRLP(t *testing.T) {
Seconds: 10,
Conditions: []string{`limit.l1__2804bad6 == "1"`},
Variables: []string{"request.path"},
Name: "testNS/rlpA",
},
},
},
Expand Down

0 comments on commit 099f4f2

Please sign in to comment.