Skip to content

ENT-14731: Added tests for cf-reactor - #6430

Open
victormlg wants to merge 8 commits into
cfengine:masterfrom
victormlg:cf-reactor.MoreTests
Open

victormlg wants to merge 8 commits into
cfengine:masterfrom
victormlg:cf-reactor.MoreTests

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
The check was removed by accident in 9c10ad3. Now it
is reverted back to how it was

Signed-off-by: Victor Moene <victor.moene@northern.tech>
These tests cover the reactor bundles and the events promise
type.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
Added a folder to cover all event types with test. Starting with file_deleted.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
cf-reactor should parse edit_line bundles so it can use them in the
"then" bundles run on reaction to events

Signed-off-by: Victor Moene <victor.moene@northern.tech>
The promises of edit_line and edit_xml bundles always used
CF_EDIT_IFELAPSED (1 minute) as their ifelapsed, ignoring the default
ifelapsed. cf-reactor sets the default to 0 for the bundles it runs on
events, so a file edited by an event was not edited again by another
event less than a minute later. Edit promises now use the lower of the
two (EDIT_IFELAPSED).

Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg
victormlg force-pushed the cf-reactor.MoreTests branch from bdfab9a to 0a9ecc2 Compare October 21, 2026 13:36
… event

Signed-off-by: Victor Moene <victor.moene@northern.tech>
Comment thread tests/reactor/run.sh
export CF_BINDIR

for t in "$PWD"/tests/*.sh; do
for t in "$PWD"/tests/*/*.sh; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this change in this commit with "Moved 001_vars test into 001_basics/" ?

@@ -0,0 +1,38 @@
#######################################################

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I got this far and see this PR is quite long. I can continue the review next week.

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.

2 participants