mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 12:09:56 +01:00
794a93fa8a
* Fix e2e tests after separating admin api
25 lines
477 B
Go
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)
|
|
}
|
|
}
|