Skip to content

Conversation

@jakub-nt
Copy link
Contributor

No description provided.

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Copy link
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

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

Test looks good, but the ticket number in the PR title is wrong.

@jakub-nt jakub-nt changed the title CFE-4538: Add shell unit testing of added_by field updating CFE-4537: Add shell unit testing of added_by field updating Jun 23, 2025
@jakub-nt jakub-nt requested a review from olehermanse June 23, 2025 17:52
@olehermanse olehermanse merged commit 268441d into cfengine:master Jun 23, 2025
11 checks passed
cfbs --non-interactive init

# Ensure adding a module during initialization is treated as adding manually
cat cfbs.json | grep -F "added_by" | grep -F "cfbs init"
Copy link
Contributor

Choose a reason for hiding this comment

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

In stead of cat cfbs.json | grep -F "added_by" you could do grep -F "added_by" cfbs.json. Just FYI, no need to change anything

Copy link
Member

Choose a reason for hiding this comment

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

Or grep -E "added_by|cfbs init" cfbs.json

Copy link
Contributor

@larsewi larsewi Jun 25, 2025

Choose a reason for hiding this comment

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

^ would match added_by or cfbs init? But I think he wants to look for a line that contains added_by and this line should also contain cfbs init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants