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

Correctly fix aliases quoting logic #206

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Correctly fix aliases quoting logic #206

merged 1 commit into from
Jan 29, 2025

Conversation

ramereth
Copy link
Contributor

@ramereth ramereth commented Jan 29, 2025

We were previously incorrectly adding double quotes for the alias values.
According to the man page it's not required. However, there is a requirement if
its a command being pipe.

In addition, the man page mentions this for the alias name:

The name is a local address (no domain part). Use double quotes when the
name contains any special characters such as whitespace, #', :', or `@'. The
name is folded to lowercase, in order to make database lookups case
insensitive.

This includes logic to support this automatically.

  • Add new tests for aliases testing all types
  • Convert all serverspec tests to inspec
  • Add Github actions
  • Update platforms to test

Signed-off-by: Lance Albertson [email protected]

Description

Describe what this change achieves

Issues Resolved

List any existing issues this PR resolves

Check List

  • A summary of changes made is included in the CHANGELOG under ## Unreleased
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

@ramereth ramereth added the Release: Minor Release to Chef Supermarket as a minor release when merged label Jan 29, 2025
@ramereth ramereth requested a review from a team as a code owner January 29, 2025 22:28
We were previously incorrectly adding double quotes for the alias values.
According to the man page it's not required. However, there is a requirement if
its a command being pipe.

In addition, the man page mentions this for the alias name:

  The  name  is  a  local  address (no domain part).  Use double quotes when the
  name contains any special characters such as whitespace, `#', `:', or `@'. The
  name is folded to lowercase, in order to make database lookups case
  insensitive.

This includes logic to support this automatically.

- Add new tests for aliases testing all types
- Convert all serverspec tests to inspec
- Add Github actions
- Update platforms to test

Signed-off-by: Lance Albertson <[email protected]>
@ramereth ramereth merged commit 1cd55ab into main Jan 29, 2025
103 checks passed
@ramereth ramereth deleted the aliases-no-quotes branch January 29, 2025 22:51
@kitchen-porter
Copy link
Contributor

Released as: 6.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release: Minor Release to Chef Supermarket as a minor release when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants