Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider: Lift and shift import_*_test.go code into resource_*_test.go files #5891

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Sep 15, 2018

No code changes, just moved the code. The practice of creating the import_*_test.go files is extraneous and inconsistently applied in this provider. Other than reducing the file count, this should give a little speed improvement to some editors/tooling.

At some point we will likely consolidate the _import tests into their regular test counterparts, but that requires running the acceptance testing after updates (and potentially fixing resource code) to complete each one, which is a much slower process.

Closes #4705

Previously and currently:

$ go test -list . ./aws | wc -l
    2530

@bflad bflad added technical-debt Addresses areas of the codebase that need refactoring or redesign. provider Pertains to the provider itself, rather than any interaction with AWS. labels Sep 15, 2018
@bflad bflad requested a review from a team September 15, 2018 00:16
@ghost ghost added the size/XXL Managed by automation to categorize the size of a PR. label Sep 15, 2018
…o files

Reference: #4705

Previously and currently:

```
$ go test -list . ./aws | wc -l
    2530
```
@bflad bflad force-pushed the td-import-test-files-be-gone branch from 5c2f057 to 39e0fd4 Compare September 16, 2018 19:40
@ghost ghost added the size/XXL Managed by automation to categorize the size of a PR. label Sep 16, 2018
@bflad bflad added this to the v1.37.0 milestone Sep 19, 2018
@bflad bflad merged commit c62d620 into master Sep 19, 2018
@bflad bflad deleted the td-import-test-files-be-gone branch September 19, 2018 00:52
@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. size/XXL Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate import_*_test.go files into resource_*_test.go files
2 participants