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

Update deprecated Beaker methods #9236

Merged

Conversation

mhashizume
Copy link
Contributor

This PR updates several deprecated Beaker methods that were removed entirely in Beaker 5. This is in preparation for moving Puppet to using Beaker 5 for tests.

@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Feb 1, 2024
@mhashizume mhashizume requested a review from a team as a code owner February 1, 2024 00:48
@mhashizume mhashizume force-pushed the PA-5022/main/beaker-deprecated branch 2 times, most recently from e6deadc to c2d49a1 Compare February 1, 2024 01:13
@mhashizume mhashizume marked this pull request as draft February 1, 2024 21:07
@mhashizume mhashizume force-pushed the PA-5022/main/beaker-deprecated branch 2 times, most recently from 9fc1eb4 to a81f2c0 Compare February 2, 2024 17:55
@mhashizume mhashizume marked this pull request as ready for review February 2, 2024 23:45
@mhashizume mhashizume force-pushed the PA-5022/main/beaker-deprecated branch from a81f2c0 to d2e5496 Compare February 5, 2024 21:54
@tvpartytonight
Copy link
Contributor

jenkins please test this on redhat7-64a

@mhashizume mhashizume force-pushed the PA-5022/main/beaker-deprecated branch from d2e5496 to 71ce4ed Compare February 5, 2024 21:59
@mhashizume
Copy link
Contributor Author

jenkins please test this on redhat7-64a

1 similar comment
@mhashizume
Copy link
Contributor Author

jenkins please test this on redhat7-64a

The assert_no_match method in Beaker was long deprecated then eventually
removed altogether in voxpupuli/beaker@6282311

This commit updates all instances of assert_no_match in Puppet's Beaker
tests with refute_match.
Previously in Beaker, you could use standalone stdout and stderr methods
to access output from remote machines.

These methods were deprecated in 2013 with voxpupuli/beaker@28b2510 and
dropped entirely in voxpupuli/beaker@73a31c7.

This commit removes these methods from puppet tests in favor of calling
stdout and stderr methods on Result objects.
This commit removes a conditional dependent on Passenger support, which
was dropped in Puppet 6.
@mhashizume mhashizume force-pushed the PA-5022/main/beaker-deprecated branch from 71ce4ed to 0037a8d Compare February 6, 2024 23:38
@joshcooper
Copy link
Contributor

LGTM did you want to re-run PR testing? Or just merge?

@tvpartytonight
Copy link
Contributor

I think that the previous PR testing only showed those two errors solved by #9244 , so I think we are good to merge.

@tvpartytonight tvpartytonight merged commit a3e77e7 into puppetlabs:main Feb 7, 2024
9 checks passed
@mhashizume mhashizume deleted the PA-5022/main/beaker-deprecated branch February 7, 2024 16:06
@mhashizume mhashizume added the backport 7.x Generate a backport PR to 7.x label Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

Successfully created backport PR for 7.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 7.x Generate a backport PR to 7.x maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants