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

pam/integration-tests: Wait for command prompts text before continuing #821

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

3v1n0
Copy link
Collaborator

@3v1n0 3v1n0 commented Mar 3, 2025

Sometime we're too fast in writing the command and the final character
isn't recorded yet by VHS, causing failures that aren't really true.

So wait for the whole command being typed before typing enter and
continuing.

Closes: #713

UDENG-6180

3v1n0 added 3 commits March 1, 2025 00:28
In Type in prompt commands we may include slashes, but VHS doesn't
escape them properly, so we need to replace them manually with their
character-escaped version.

See: charmbracelet/vhs#592
…pe commands

Add support for TypeInPrompt+Shell command so that we can add specific
rules in case we're matching a shell prompt, compared to a standard one
Sometime we're too fast in writing the command and the final character
isn't recorded yet by VHS, causing failures that aren't really true.

So wait for the whole command being typed before typing enter and
continuing.

Closes: ubuntu#713
@3v1n0 3v1n0 requested a review from a team as a code owner March 3, 2025 15:39
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.05%. Comparing base (5d2f34d) to head (42e2130).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #821   +/-   ##
=======================================
  Coverage   79.05%   79.05%           
=======================================
  Files         102      102           
  Lines       10383    10383           
  Branches       74       74           
=======================================
  Hits         8208     8208           
  Misses       1709     1709           
  Partials      466      466           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Flaky test TestSSHAuthenticate/Error_if_cannot_connect_to_authd
2 participants