1// +build integration
2
3package health
4
5import (
6	"context"
7	"testing"
8	"time"
9
10	"github.com/aws/aws-sdk-go-v2/service/health"
11	"github.com/aws/aws-sdk-go-v2/service/internal/integrationtest"
12)
13
14func TestInteg_00_DescribeEntityAggregates(t *testing.T) {
15	ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
16	defer cancelFn()
17
18	cfg, err := integrationtest.LoadConfigWithDefaultRegion("us-east-1")
19	if err != nil {
20		t.Fatalf("failed to load config, %v", err)
21	}
22
23	client := health.NewFromConfig(cfg)
24	params := &health.DescribeEntityAggregatesInput{}
25	_, err = client.DescribeEntityAggregates(ctx, params)
26	if err != nil {
27		t.Errorf("expect no error, got %v", err)
28	}
29}
30