From 2a0c02376695e6731204ef6ac483c6a695600537 Mon Sep 17 00:00:00 2001 From: aysgg <1739224312@qq.com> Date: Sun, 28 Jun 2026 20:32:16 +0800 Subject: [PATCH] Add comments/notation to TestGetAPIGatewayStatus in pkg/ddc/alluxio/api_gateway_test.go. --- pkg/ddc/alluxio/api_gateway_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/ddc/alluxio/api_gateway_test.go b/pkg/ddc/alluxio/api_gateway_test.go index c054d338a23..31613125186 100644 --- a/pkg/ddc/alluxio/api_gateway_test.go +++ b/pkg/ddc/alluxio/api_gateway_test.go @@ -28,6 +28,12 @@ import ( "k8s.io/apimachinery/pkg/types" ) +// TestGetAPIGatewayStatus tests whether the Alluxio engine's GetAPIGatewayStatus method +// correctly returns the API gateway status with the expected endpoint. +// It uses two different test cases with varying engineName, engineNamespace, and port values, +// and verifies that the generated APIGatewayStatus.Endpoint matches the expected format "%s-master-0.%s:%d". +// The test cases cover both the default namespace and the system namespace scenarios. + func TestGetAPIGatewayStatus(t *testing.T) { endpointFormat := "%s-master-0.%s:%d" testCases := map[string]struct {