-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mocks): fully migrate mockery to gomock (#3031)
- Replace all generated mockery by mockgen generated mocks - Replace all usages of mockery mocks with new mockgen mocks - Fix mock usages (sometimes with `.AnyTimes()`) - Replace all `mock.Anything` and `mock.AnyAssignableTo` by `gomock.Any()` - Remove mockery from CI - Remove mockery from documentation - Use local `ECSAPI` interface for devnet for a (much) smaller generated mock (-4000 lines)
- Loading branch information
Showing
72 changed files
with
2,844 additions
and
7,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2023 ChainSafe Systems (ON) | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
package internal | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/aws" | ||
"github.com/aws/aws-sdk-go/aws/request" | ||
"github.com/aws/aws-sdk-go/service/ecs" | ||
) | ||
|
||
// ECSAPI is the interface for the ECS API. | ||
type ECSAPI interface { | ||
ListServicesWithContext(aws.Context, *ecs.ListServicesInput, ...request.Option) ( | ||
*ecs.ListServicesOutput, error) | ||
UpdateServiceWithContext(aws.Context, *ecs.UpdateServiceInput, ...request.Option) ( | ||
*ecs.UpdateServiceOutput, error) | ||
DescribeServicesWithContext(aws.Context, *ecs.DescribeServicesInput, ...request.Option) ( | ||
*ecs.DescribeServicesOutput, error) | ||
} |
Oops, something went wrong.