package webScene

import (
	"testing"

	"github.com/tidbcloud/qa-PlatformAPIAuto/webScene/rg/aws"
	"github.com/tidbcloud/qa-gourd/ProductModel"
	"github.com/tidbcloud/qa-gourd/ProductService"
)

func (w *WebE2ECase) RG_aws_rgSmokeUseCase(t *testing.T) {
	t.Parallel()
	//aws.SetPrimaryClusterId("3841797")
	//aws.SetSecondaryClusterId("3841798")

	aws.ExecuteRgSmokeUseCase(t)

	webRequestInfo := ProductService.GetWebAPIRequestInfo(&testing.T{}, ProductModel.Specify)
	primaryClusterId := aws.GetPrimaryClusterId()
	if primaryClusterId != "" {
		webRequestInfo.DeleteClusterById(primaryClusterId)
	}
	secondaryClusterId := aws.GetSecondaryClusterId()
	if secondaryClusterId != "" {
		webRequestInfo.DeleteClusterById(secondaryClusterId)
	}
}
