Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkg/ddc/alluxio/api_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading