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

tests(e2e): Base VM image generation improvements #833

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

GabrielNagy
Copy link
Contributor

Details are in the commit messages, basically this tightens up the base VM provisioning part and adds some updates that will make our life easier when running tests.

I've built a noble template locally and with these changes and confirmed they work properly.

Not all actions in the first run script need to run on the first boot.
Some of them we can run when preparing the VM base image itself, namely:
- SSH configuration
- network configuration

The only part that needs to run on first boot is the hostname/hosts
configuration.

This will help mitigate issues with SSH not being fully initialized on
boot.
Obviously this is not recommended in production, but for our testing
workflows it will help being able to log in as any AD user without
specifying a password and keeping track of another secret.

If we do this we don't need to allow password authentication anymore.
This is not enabled by default and is needed to auto-create home
directories for AD users logging in.
@GabrielNagy GabrielNagy requested a review from a team as a code owner October 31, 2023 11:39
@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2023

Codecov Report

Merging #833 (35b6c04) into main (46895a3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #833   +/-   ##
=======================================
  Coverage   86.10%   86.10%           
=======================================
  Files          76       76           
  Lines        8599     8599           
=======================================
  Hits         7404     7404           
  Misses        866      866           
  Partials      329      329           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@denisonbarbosa denisonbarbosa left a comment

Choose a reason for hiding this comment

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

LGTM!

@GabrielNagy GabrielNagy merged commit 5a800d4 into main Oct 31, 2023
6 checks passed
@GabrielNagy GabrielNagy deleted the e2e-image-updates branch October 31, 2023 16:40
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.

3 participants