package regionalservice

import (
	"context"
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/tidbcloud/observability/pkg/common/constants"
)

func TestClusterHandler_ServiceInfo(t *testing.T) {
	resp, err := GetServiceHandler().ServiceInfo(context.TODO())
	assert.NoError(t, err)
	assert.Equal(t, constants.ObservabilityRegionalServer, resp.ServiceName)
	assert.Equal(t, 2, len(resp.AvailableSpecs))
}
