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

tests: Extend events_controller setup method of Azure DevOps #2852

Merged
merged 2 commits into from
Dec 22, 2022

Conversation

SSKLCP
Copy link
Contributor

@SSKLCP SSKLCP commented Dec 22, 2022

what

Extending the server/controllers/events/events_controller_test.go setup method that is currently used for Github / GitLab to include Azure DevOps and moving ADO tests to use this method rather than having to write out the setup steps for every test. (Which are increasing in number)

No functionality should change.

why

Make code as DRY as possible.

references

@SSKLCP SSKLCP requested a review from a team as a code owner December 22, 2022 12:58
@SSKLCP
Copy link
Contributor Author

SSKLCP commented Dec 22, 2022

@krrrr38 - Is this what you had in mind?

@nitrocode nitrocode changed the title Extending events_controller setup method to support Azure DevOps tests: Extend events_controller setup method of Azure DevOps Dec 22, 2022
@nitrocode nitrocode merged commit ef3f39a into runatlantis:main Dec 22, 2022
@nitrocode
Copy link
Member

Nice work on consolidation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make tests more DRY in events_controller_test
2 participants