Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Creates mock generation infrastructure (#1763)
* use mockery * don't include test utilities in build * Revert "don't include test utilities in build" This reverts commit b41ba5e. * TEMPORARY: testing mock change detection * Revert "TEMPORARY: testing mock change detection" This reverts commit 0cbacbc. * centralize lint version in make file * fix call to mockery * timeout in linter * TEMPORARY - delete mock file * Revert "TEMPORARY - delete mock file" This reverts commit d171e9b. * use assert * TEMPORARY - failing unit test * Revert "TEMPORARY - failing unit test" This reverts commit 05ed39b. * use testify mock * change service name * use state * disable version mockery generated files * refactor response * responses in one line each * rename err * clarify file detection message * add info in contributing file * move timeout to config file * TEMPORARY - linter fail * Revert "TEMPORARY - linter fail" This reverts commit 5ef6390. * remove asdf comment * revert lint changes
- Loading branch information
Showing
7 changed files
with
181 additions
and
123 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,11 @@ | ||
with-expecter: false | ||
disable-version-string: true | ||
dir: internal/testutil/mocksvc | ||
outpkg: mocksvc | ||
filename: "{{ .InterfaceName | snakecase }}.go" | ||
mockname: "{{.InterfaceName}}" | ||
|
||
packages: | ||
? github.com/mongodb/terraform-provider-mongodbatlas/internal/service/searchdeployment | ||
: interfaces: | ||
DeploymentService: |
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
Oops, something went wrong.