You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(testing): align tag-and-release e2e test with API workflow (#2240)
Updates the end-to-end test for the 'release tag-and-release' command to
align with the refactoring introduced in commit 2807adf.
The refactoring removed the command's dependency on a local repository
clone, causing the existing e2e test to fail as it was still based on a
local git setup. The command now fetches the state.yaml file directly
from the GitHub API.
This change updates the test by:
- Removing the unnecessary local git repository setup.
- Modifying the mock HTTP server to correctly simulate the multi-step
API process used by the go-github client to download a file (directory
listing followed by content download).
- Updating the 'newTagAndReleaseRunner' to correctly use the
'github-api-endpoint' flag, ensuring the client is properly directed to
the mock server during tests.
Part of #1013.
Note: improving coverage for new code in tag_and_release.go requires
tests with much setup. Given that the new code is a simple error check,
and given the e2e test uses the code, codecov report is ignored.
0 commit comments