Skip to content

Move expectation out of let block - #2558

Open
ekohl wants to merge 2 commits into
puppetlabs:mainfrom
ekohl:fix-test
Open

Move expectation out of let block#2558
ekohl wants to merge 2 commits into
puppetlabs:mainfrom
ekohl:fix-test

Conversation

@ekohl

@ekohl ekohl commented Aug 16, 2024

Copy link
Copy Markdown
Collaborator

Summary

Otherwise it isn't executed.

Related Issues (if any)

Fixes: ec74a8e ("Add support for setting UserDir in Virtual Hosts")

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@ekohl
ekohl requested review from a team, bastelfreak and smortex as code owners August 16, 2024 23:51
it {
expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir')
.with(content: %r{^\s+UserDir disabled$})
.with(content: %r{^\s+UUserDir enabled bob$})

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Looks like there was already a typo in UUserDir here, which is proof the test didn't ran.

bastelfreak
bastelfreak previously approved these changes Aug 17, 2024
ekohl added 2 commits August 28, 2026 15:07
Otherwise it isn't executed.

Fixes: ec74a8e ("Add support for setting UserDir in Virtual Hosts")
@jst-cyr

jst-cyr commented Aug 28, 2026

Copy link
Copy Markdown
Member

Running CI tests for this PR here: #2647

@jst-cyr

jst-cyr commented Aug 28, 2026

Copy link
Copy Markdown
Member

Acceptance test results for this PR: https://github.com/puppetlabs/puppetlabs-apache/actions/runs/33202661914?pr=2647

All red platforms (SLES-12, SLES-15, Debian-13) match pre-existing failures on the nightly main build. SLES-12 is a known provisioning flake affecting all modules, and SLES-15/Debian-13 fail identically on nightly with the same spec and error (apache2ctl missing on SLES-15, apache2 systemd start failure on Debian-13). None of these are caused by this PR.

From a testing perspective, looks good. Needs engineering review when available.

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.

5 participants