Skip to content

Commit 43fe3bc

Browse files
authored
Add notation to TestQueryAPIGatewayEndpoint in pkg\ddc\alluxio\api_ga… (#4940)
* Add notation to TestQueryAPIGatewayEndpoint in pkg\ddc\alluxio\api_gateway_test.go Signed-off-by: fongaijie <fongaijie@yahoo.com> * Add notation to TestQueryAPIGatewayEndpoint in pkg\ddc\alluxio\api_gateway_test.go Signed-off-by: fongaijie <fongaijie@yahoo.com> --------- Signed-off-by: fongaijie <fongaijie@yahoo.com>
1 parent 8ea0f29 commit 43fe3bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/ddc/alluxio/api_gateway_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ func mockAlluxioEngineWithClient(name, ns string, port int32) *AlluxioEngine {
9595
return e
9696
}
9797

98+
// TestQueryAPIGatewayEndpoint tests whether the Alluxio engine's queryAPIGatewayEndpoint method
99+
// correctly returns the API gateway access endpoint.
100+
// It uses two different test cases with varying engineName, engineNamespace, and port values,
101+
// and verifies that the generated endpoint string matches the expected format "%s-master-0.%s:%d".
102+
// The test cases cover both the default namespace and the system namespace scenarios.
98103
func TestQueryAPIGatewayEndpoint(t *testing.T) {
99104
endpointFormat := "%s-master-0.%s:%d"
100105
testCases := map[string]struct {

0 commit comments

Comments
 (0)