1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
//go:build integration
// +build integration
package lightsail
import (
"context"
"testing"
"time"
"github.com/aws/aws-sdk-go-v2/service/internal/integrationtest"
"github.com/aws/aws-sdk-go-v2/service/lightsail"
)
func TestInteg_00_GetActiveNames(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
cfg, err := integrationtest.LoadConfigWithDefaultRegion("us-west-2")
if err != nil {
t.Fatalf("failed to load config, %v", err)
}
client := lightsail.NewFromConfig(cfg)
params := &lightsail.GetActiveNamesInput{}
_, err = client.GetActiveNames(ctx, params)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
func TestInteg_00_GetContainerServicePowers(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
cfg, err := integrationtest.LoadConfigWithDefaultRegion("us-west-2")
if err != nil {
t.Fatalf("failed to load config, %v", err)
}
client := lightsail.NewFromConfig(cfg)
params := &lightsail.GetContainerServicePowersInput{}
_, err = client.GetContainerServicePowers(ctx, params)
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
|