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

chore: Move gitlab client test data into testdata/ files #4086

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

lukemassa
Copy link
Contributor

@lukemassa lukemassa commented Dec 21, 2023

what

Moving test data for testing gitlab client into dedicated testdata/ files

why

This is the way all the other VCSs handle responses. It makes it easier to read and tweak if need be. I believe there's a bug in the content of one of these strings, but I wanted to translate them to files so it's easier to track down and identify first.

tests

Ran unit tests

references

@lukemassa lukemassa requested review from a team as code owners December 21, 2023 05:41
@lukemassa lukemassa requested review from jamengual and nitrocode and removed request for a team December 21, 2023 05:41
@github-actions github-actions bot added go Pull requests that update Go code provider/gitlab labels Dec 21, 2023
@lukemassa
Copy link
Contributor Author

Ah, looks like our CI prevents us from using init() functions. I'll have to move the references into the code, I'll take a look at that later

@lukemassa lukemassa marked this pull request as draft December 21, 2023 05:47
@lukemassa lukemassa marked this pull request as ready for review December 21, 2023 17:13
@lukemassa lukemassa force-pushed the move_gitlab_client_test_to_file branch from 25aa32c to e5c7a09 Compare December 21, 2023 17:13
@chenrui333
Copy link
Member

make sense, one nit comment, I wonder if it should be chore rather than feat :)

@lukemassa lukemassa changed the title feat: Move gitlab client test data into testdata/ files chore: Move gitlab client test data into testdata/ files Dec 22, 2023
@lukemassa lukemassa merged commit 1035d92 into runatlantis:main Dec 22, 2023
25 checks passed
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…#4086)

* feat: Move gitlab client test data into testdata/ files

* Cleanup
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…#4086)

* feat: Move gitlab client test data into testdata/ files

* Cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code provider/gitlab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants