2022-12-31 10:22:38 +01:00
|
|
|
package tests
|
|
|
|
|
|
|
|
import (
|
2023-10-24 09:27:34 +02:00
|
|
|
"testing"
|
|
|
|
|
2022-12-31 10:22:38 +01:00
|
|
|
"github.com/google/uuid"
|
2023-01-30 19:59:42 +01:00
|
|
|
"github.com/twofas/2fas-server/tests"
|
2022-12-31 10:22:38 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func Test_MobileApiBandwidthAbuse(t *testing.T) {
|
|
|
|
someId := uuid.New()
|
|
|
|
|
|
|
|
for i := 0; i <= 100; i++ {
|
2023-10-24 09:27:34 +02:00
|
|
|
tests.DoAPIGet(t, "/mobile/devices/"+someId.String()+"/browser_extensions", nil)
|
2022-12-31 10:22:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func Test_BrowserExtensionApiBandwidthAbuse(t *testing.T) {
|
|
|
|
someId := uuid.New()
|
|
|
|
|
|
|
|
for i := 0; i <= 100; i++ {
|
2023-10-24 09:27:34 +02:00
|
|
|
tests.DoAPIGet(t, "/browser_extensions/"+someId.String(), nil)
|
2022-12-31 10:22:38 +01:00
|
|
|
}
|
|
|
|
}
|