mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 12:09:56 +01:00
24 lines
454 B
Go
24 lines
454 B
Go
|
package tests
|
||
|
|
||
|
import (
|
||
|
"github.com/2fas/api/tests"
|
||
|
"github.com/google/uuid"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_MobileApiBandwidthAbuse(t *testing.T) {
|
||
|
someId := uuid.New()
|
||
|
|
||
|
for i := 0; i <= 100; i++ {
|
||
|
tests.DoGet("/mobile/devices/"+someId.String()+"/browser_extensions", nil)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func Test_BrowserExtensionApiBandwidthAbuse(t *testing.T) {
|
||
|
someId := uuid.New()
|
||
|
|
||
|
for i := 0; i <= 100; i++ {
|
||
|
tests.DoGet("/browser_extensions/"+someId.String(), nil)
|
||
|
}
|
||
|
}
|