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

Add integration tests for github public/private repositories #99

Merged
merged 6 commits into from
Nov 14, 2020

Conversation

preslavmihaylov
Copy link
Owner

@preslavmihaylov preslavmihaylov commented Nov 13, 2020

Closes #79

In order to avoid regressions in integrations with supported issue trackers (Pivotal, Redmine, Github, Gitlab, etc) and avoid the need for extensive manual testing before accepting any PR, I've started preparing a test suite which verifies that todocheck can correctly integrate with all supported issue trackers for both private and public repositories.

In this PR, I'm creating the test suite for integrating with private & public github repositories. To do that, I have created a github secret which contains the api key for reading the repositories and is available to the tests in the github action.

Additionally, I had to fix an issue where the setupMockIssueTrackerServer in the scenario builder was always setting up a mock server regardless if one was needed. This lead to some small regressions in the rest of the integration tests due to an invalid issue tracker origin as per our validations.

Finally, these tests have been setup to only run in CI (github actions) because they rely on a sensitive secret which is available in the CI environment thanks to Github secrets, but is not available in the local environment of any of the maintainers.

Related to #120

Copy link
Collaborator

@mehdy mehdy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mehdy mehdy merged commit 9405a4f into master Nov 14, 2020
@preslavmihaylov preslavmihaylov deleted the add-github-tests branch November 27, 2020 19:08
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.

Create a test for testing integration with private & public github repositories
2 participants