Skip to content

Commit 7cb88c9

Browse files
implemented e2e test regarding modleRouteGlobalRateLimit in shared.go
Signed-off-by: katara-Jayprakash <[email protected]>
1 parent 8e9d2b0 commit 7cb88c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/router/shared.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package router
1818

1919
import (
2020
"context"
21+
"fmt"
2122
"io"
2223
"net/http"
2324
"strings"
@@ -31,6 +32,7 @@ import (
3132
routercontext "github.com/volcano-sh/kthena/test/e2e/router/context"
3233
"github.com/volcano-sh/kthena/test/e2e/utils"
3334
appsv1 "k8s.io/api/apps/v1"
35+
corev1 "k8s.io/api/core/v1"
3436
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3537
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
3638
)
@@ -840,6 +842,7 @@ func TestModelRouteLoraShared(t *testing.T, testCtx *routercontext.RouterTestCon
840842
utils.UnloadLoRAAdapter(t, "http://127.0.0.1:9000", "lora-B")
841843
t.Log("LoRA adapters unloaded successfully")
842844
}
845+
843846
// TestModelRouteWithGlobalRateLimitShared is a shared test function that can be used by both
844847
// router and gateway-api test suites. When useGatewayAPI is true, it configures ModelRoute
845848
// with ParentRefs to the default Gateway.

0 commit comments

Comments
 (0)