2fas-server/tests/mobile/mobile_security_test.go
Tobiasz Heller 794a93fa8a
Fix e2e tests after separating admin api (#11)
* Fix e2e tests after separating admin api
2023-10-24 09:27:34 +02:00

25 lines
477 B
Go

package tests
import (
"testing"
"github.com/google/uuid"
"github.com/twofas/2fas-server/tests"
)
func Test_MobileApiBandwidthAbuse(t *testing.T) {
someId := uuid.New()
for i := 0; i <= 100; i++ {
tests.DoAPIGet(t, "/mobile/devices/"+someId.String()+"/browser_extensions", nil)
}
}
func Test_BrowserExtensionApiBandwidthAbuse(t *testing.T) {
someId := uuid.New()
for i := 0; i <= 100; i++ {
tests.DoAPIGet(t, "/browser_extensions/"+someId.String(), nil)
}
}