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: Make e2e tests more vcs agnostic #4836

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

lukemassa
Copy link
Contributor

@lukemassa lukemassa commented Aug 12, 2024

what

  • Have DeleteBranch() take the bare branch name, not heads/<branchName> (the latter is apparently a github implementation detail)
  • Instead of hard-coding the semantics of the "status" of an atlantis run, defer into the VCS. For example, Github has a state called failure whereas gitlab has a state called failed, both of which mean the same thing, and indicate that the run is done

why

Make the e2e tests more agnostic to which VCS they are being run on. This will make it more straightforward to add new VCSs.

tests

The e2e tests themselves passing should be good enough.

references

Working towards #4582.

@lukemassa lukemassa requested review from a team as code owners August 12, 2024 17:19
@lukemassa lukemassa requested review from jamengual, nitrocode and X-Guardian and removed request for a team August 12, 2024 17:19
@github-actions github-actions bot added size/s go Pull requests that update Go code labels Aug 12, 2024
@lukemassa lukemassa force-pushed the more_vcs_isolation_in_e2e_tests branch from 7228f3a to d3a710e Compare August 12, 2024 22:31
@chenrui333 chenrui333 added the e2e label Aug 12, 2024
@lukemassa lukemassa merged commit 9f887f8 into main Aug 13, 2024
28 checks passed
@lukemassa lukemassa deleted the more_vcs_isolation_in_e2e_tests branch August 13, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e go Pull requests that update Go code size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants