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

Avoid network ops in tests #564

Merged
merged 6 commits into from
May 23, 2024
Merged

Avoid network ops in tests #564

merged 6 commits into from
May 23, 2024

Conversation

niik
Copy link
Member

@niik niik commented May 21, 2024

Based on #563 but broken out to be reviewed separately.

While working on #563 I noticed that we were doing actual clone's (or attempting to) of repositories hosted online. Several of these repositories are completely outside of the current team's control. This is both risky and unnecessary.

I've updated these tests to either a) not use clone at all when it doesn't have to, b) clone a local repository over the file:// protocol when the http protocol isn't required or c) clone using a fake Git server running locally.

I've also removed some tests that don't appear to be testing any dugite-specific functionality at all.

@niik niik requested a review from sergiou87 May 21, 2024 14:03
sergiou87
sergiou87 previously approved these changes May 21, 2024
Base automatically changed from use-dugite-system-config to main May 23, 2024 09:58
@niik niik dismissed sergiou87’s stale review May 23, 2024 09:58

The base branch was changed.

@niik niik requested a review from sergiou87 May 23, 2024 09:58
@niik niik merged commit 95e8605 into main May 23, 2024
10 checks passed
@niik niik deleted the avoid-network-ops branch May 23, 2024 11:07
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.

2 participants