// Code generated by smithy-go-codegen DO NOT EDIT.


//go:build snapshot
package ecs

import (
	"context"
	"errors"
	"fmt"
	"io/fs"
	"io"
	"github.com/aws/smithy-go/middleware"
	"os"
	"testing"
)

const ssprefix = "snapshot"

type snapshotOK struct{}

func (snapshotOK) Error() string { return "error: success" }

func createp(path string) (*os.File, error) {
    if err := os.Mkdir(ssprefix, 0700); err != nil && !errors.Is(err, fs.ErrExist) {
        return nil, err
    }
    return os.Create(path)
}

func sspath(op string) string {
    return fmt.Sprintf("%s/api_op_%s.go.snap", ssprefix, op)
}

func updateSnapshot(stack *middleware.Stack, operation string) error {
    f, err := createp(sspath(operation))
    if err != nil {
        return err
    }
    defer f.Close()
    if _, err := f.Write([]byte(stack.String())); err != nil {
        return err
    }
    return snapshotOK{}
}

func testSnapshot(stack *middleware.Stack, operation string) error {
    f, err := os.Open(sspath(operation))
    if errors.Is(err, fs.ErrNotExist) {
        return snapshotOK{}
    }
    if err != nil {
        return err
    }
    defer f.Close()
    expected, err := io.ReadAll(f)
    if err != nil {
        return err
    }
    if actual := stack.String(); actual != string(expected) {
        return fmt.Errorf("%s != %s", expected, actual)
    }
    return snapshotOK{}
}
func TestCheckSnapshot_CreateCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "CreateCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_CreateCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "CreateCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_CreateService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "CreateService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_CreateTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "CreateTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteAccountSetting(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteAccountSetting(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteAccountSetting")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteTaskDefinitions(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteTaskDefinitions(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteTaskDefinitions")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeleteTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeleteTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeregisterContainerInstance(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeregisterContainerInstance(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeregisterContainerInstance")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DeregisterTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeregisterTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DeregisterTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeCapacityProviders(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeCapacityProviders(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeCapacityProviders")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeClusters(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeClusters(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeClusters")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeContainerInstances(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeContainerInstances(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeContainerInstances")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeServices(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeServices(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeServices")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeTasks(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTasks(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeTasks")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DescribeTaskSets(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTaskSets(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DescribeTaskSets")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_DiscoverPollEndpoint(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DiscoverPollEndpoint(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "DiscoverPollEndpoint")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ExecuteCommand(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ExecuteCommand(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ExecuteCommand")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_GetTaskProtection(t *testing.T) {
    svc := New(Options{})
    _, err := svc.GetTaskProtection(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "GetTaskProtection")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListAccountSettings(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListAccountSettings(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListAccountSettings")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListClusters(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListClusters(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListClusters")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListContainerInstances(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListContainerInstances(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListContainerInstances")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListServices(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListServices(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListServices")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListServicesByNamespace(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListServicesByNamespace(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListServicesByNamespace")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListTagsForResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListTagsForResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListTaskDefinitionFamilies(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTaskDefinitionFamilies(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListTaskDefinitionFamilies")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListTaskDefinitions(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTaskDefinitions(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListTaskDefinitions")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_ListTasks(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTasks(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "ListTasks")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_PutAccountSetting(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAccountSetting(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "PutAccountSetting")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_PutAccountSettingDefault(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAccountSettingDefault(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "PutAccountSettingDefault")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_PutAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "PutAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_PutClusterCapacityProviders(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutClusterCapacityProviders(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "PutClusterCapacityProviders")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_RegisterContainerInstance(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RegisterContainerInstance(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "RegisterContainerInstance")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_RegisterTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RegisterTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "RegisterTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_RunTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RunTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "RunTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_StartTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.StartTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "StartTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_StopTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.StopTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "StopTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_SubmitAttachmentStateChanges(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitAttachmentStateChanges(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "SubmitAttachmentStateChanges")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_SubmitContainerStateChange(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitContainerStateChange(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "SubmitContainerStateChange")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_SubmitTaskStateChange(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitTaskStateChange(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "SubmitTaskStateChange")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_TagResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.TagResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "TagResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UntagResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UntagResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UntagResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateClusterSettings(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateClusterSettings(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateClusterSettings")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateContainerAgent(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateContainerAgent(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateContainerAgent")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateContainerInstancesState(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateContainerInstancesState(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateContainerInstancesState")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateServicePrimaryTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateServicePrimaryTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateServicePrimaryTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateTaskProtection(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateTaskProtection(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateTaskProtection")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestCheckSnapshot_UpdateTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return testSnapshot(stack, "UpdateTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}
func TestUpdateSnapshot_CreateCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "CreateCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_CreateCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "CreateCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_CreateService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "CreateService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_CreateTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.CreateTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "CreateTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteAccountSetting(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteAccountSetting(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteAccountSetting")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteTaskDefinitions(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteTaskDefinitions(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteTaskDefinitions")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeleteTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeleteTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeleteTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeregisterContainerInstance(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeregisterContainerInstance(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeregisterContainerInstance")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DeregisterTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DeregisterTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DeregisterTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeCapacityProviders(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeCapacityProviders(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeCapacityProviders")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeClusters(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeClusters(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeClusters")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeContainerInstances(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeContainerInstances(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeContainerInstances")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeServices(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeServices(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeServices")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeTasks(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTasks(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeTasks")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DescribeTaskSets(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DescribeTaskSets(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DescribeTaskSets")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_DiscoverPollEndpoint(t *testing.T) {
    svc := New(Options{})
    _, err := svc.DiscoverPollEndpoint(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "DiscoverPollEndpoint")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ExecuteCommand(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ExecuteCommand(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ExecuteCommand")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_GetTaskProtection(t *testing.T) {
    svc := New(Options{})
    _, err := svc.GetTaskProtection(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "GetTaskProtection")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListAccountSettings(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListAccountSettings(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListAccountSettings")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListClusters(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListClusters(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListClusters")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListContainerInstances(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListContainerInstances(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListContainerInstances")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListServices(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListServices(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListServices")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListServicesByNamespace(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListServicesByNamespace(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListServicesByNamespace")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListTagsForResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListTagsForResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListTaskDefinitionFamilies(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTaskDefinitionFamilies(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListTaskDefinitionFamilies")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListTaskDefinitions(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTaskDefinitions(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListTaskDefinitions")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_ListTasks(t *testing.T) {
    svc := New(Options{})
    _, err := svc.ListTasks(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "ListTasks")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_PutAccountSetting(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAccountSetting(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "PutAccountSetting")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_PutAccountSettingDefault(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAccountSettingDefault(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "PutAccountSettingDefault")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_PutAttributes(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutAttributes(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "PutAttributes")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_PutClusterCapacityProviders(t *testing.T) {
    svc := New(Options{})
    _, err := svc.PutClusterCapacityProviders(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "PutClusterCapacityProviders")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_RegisterContainerInstance(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RegisterContainerInstance(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "RegisterContainerInstance")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_RegisterTaskDefinition(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RegisterTaskDefinition(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "RegisterTaskDefinition")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_RunTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.RunTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "RunTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_StartTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.StartTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "StartTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_StopTask(t *testing.T) {
    svc := New(Options{})
    _, err := svc.StopTask(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "StopTask")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_SubmitAttachmentStateChanges(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitAttachmentStateChanges(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "SubmitAttachmentStateChanges")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_SubmitContainerStateChange(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitContainerStateChange(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "SubmitContainerStateChange")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_SubmitTaskStateChange(t *testing.T) {
    svc := New(Options{})
    _, err := svc.SubmitTaskStateChange(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "SubmitTaskStateChange")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_TagResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.TagResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "TagResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UntagResource(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UntagResource(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UntagResource")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateCapacityProvider(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateCapacityProvider(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateCapacityProvider")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateCluster(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateCluster(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateCluster")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateClusterSettings(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateClusterSettings(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateClusterSettings")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateContainerAgent(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateContainerAgent(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateContainerAgent")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateContainerInstancesState(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateContainerInstancesState(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateContainerInstancesState")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateService(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateService(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateService")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateServicePrimaryTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateServicePrimaryTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateServicePrimaryTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateTaskProtection(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateTaskProtection(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateTaskProtection")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}

func TestUpdateSnapshot_UpdateTaskSet(t *testing.T) {
    svc := New(Options{})
    _, err := svc.UpdateTaskSet(context.Background(), nil, func(o *Options) {
        o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
            return updateSnapshot(stack, "UpdateTaskSet")
        })
    })
    if _, ok := err.(snapshotOK); !ok && err != nil {
        t.Fatal(err)
    }
}
