Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abf3b01ba9 |
@@ -230,6 +230,12 @@ func TestLowestPercentageApplies(t *testing.T) {
|
|||||||
map[string]string{asnLimitPercent: "AS64500:50", unknownLimitPercent: "25"},
|
map[string]string{asnLimitPercent: "AS64500:50", unknownLimitPercent: "25"},
|
||||||
noCountry, "25 from " + unknownLimitPercent,
|
noCountry, "25 from " + unknownLimitPercent,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// SWWAF_UNKNOWN_LIMIT_PERCENT is left at its default, 100.
|
||||||
|
"the AS number's, for a client without a country",
|
||||||
|
map[string]string{asnLimitPercent: "AS64500:25"},
|
||||||
|
noCountry, "25 from " + asnLimitPercent,
|
||||||
|
},
|
||||||
} {
|
} {
|
||||||
t.Run(tc.name, func(t *testing.T) {
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|||||||
Reference in New Issue
Block a user