Skip to content

Use Dir.glob with base parameter in acceptance tests#93

Merged
david22swan merged 2 commits into
puppetlabs:mainfrom
ekohl:simplify-specs
Jun 25, 2024
Merged

Use Dir.glob with base parameter in acceptance tests#93
david22swan merged 2 commits into
puppetlabs:mainfrom
ekohl:simplify-specs

Conversation

@ekohl
Copy link
Copy Markdown
Contributor

@ekohl ekohl commented Jun 15, 2024

This didn't work because using absolute paths doesn't work. By using relative paths in expect it can use the base parameter.

It also enhances the be_an_empty_glob matcher to avoid a double glob because it avoids any potential race condition.

While cleaning up, it also fixes a typo in the be_identical_as_soource matcher.

ekohl added 2 commits June 15, 2024 19:46
This didn't work because using absolute paths doesn't work. By using
relative paths in expect it can use the base parameter.

It also enhances the be_an_empty_glob matcher to avoid a double glob
because it avoids any potential race condition.
@ekohl ekohl requested a review from a team as a code owner June 15, 2024 17:47
Copy link
Copy Markdown
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

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

Tests are passing and it reads fine so LGTM

@david22swan david22swan merged commit c407756 into puppetlabs:main Jun 25, 2024
@ekohl ekohl deleted the simplify-specs branch June 25, 2024 15:43
@dana-doherty dana-doherty added the feature New feature or request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants