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

Clear and create forwarded ports on suspend/resume #1679

Merged
merged 2 commits into from Nov 23, 2022

Conversation

electrofelix
Copy link
Contributor

Ensure forwarded ports are cleared on suspend and recreated on resume.
Included tests to exercise the entire up/start behaviour to ensure the
expected actions are called in various scenarios, moving config validate
to only occur at the entrypoints and dropping it from being called
during start. Also eliminate a duplicate SetupComplete call.

Fixes: #1115

@github-actions
Copy link

github-actions bot commented Nov 23, 2022

Download the latest artifacts for this pull request here:

Ensure forwarded ports are cleared on suspend and recreated on resume.
Included tests to exercise the entire up/start behaviour to ensure the
expected actions are called in various scenarios, moving config validate
to only occur at the entrypoints and dropping it from being called
during start. Also eliminate a duplicate SetupComplete call.

Fixes: #1115
@electrofelix electrofelix force-pushed the clear-and-restore-forwarded-ports branch from 7fc443e to 281d028 Compare November 23, 2022 13:33
@coveralls
Copy link

coveralls commented Nov 23, 2022

Pull Request Test Coverage Report for Build 3532551488

  • 8 of 9 (88.89%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-4.2%) to 76.041%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/vagrant-libvirt/action.rb 8 9 88.89%
Totals Coverage Status
Change from base Build 3513900634: -4.2%
Covered Lines: 2866
Relevant Lines: 3769

💛 - Coveralls

@electrofelix electrofelix enabled auto-merge (squash) November 23, 2022 13:39
@github-actions
Copy link

A docker image containing the code from this plugin to allow testing locally without installing
can be pulled from: ghcr.io/vagrant-libvirt/vagrant-libvirt:pr-1679-slim

If you need the image with the full dev toolchain, you can instead pull: ghcr.io/vagrant-libvirt/vagrant-libvirt:pr-1679

@electrofelix electrofelix merged commit f25a375 into main Nov 23, 2022
@electrofelix electrofelix deleted the clear-and-restore-forwarded-ports branch November 23, 2022 13:44
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.

forwarded_port (ssh tunnel) not re-created after suspend and resume
2 participants