Repository navigation
ENT-14444: Added cfengine test i2, now reports a test-suite using the assert-promise module - #250
Open
SimonThalvorsen wants to merge 4 commits into
Open
SimonThalvorsen wants to merge 4 commits into
SimonThalvorsen wants to merge 4 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #250 +/- ##
==========================================
+ Coverage 55.05% 58.75% +3.69%
==========================================
Files 33 34 +1
Lines 4299 4689 +390
==========================================
+ Hits 2367 2755 +388
- Misses 1932 1934 +2
🚀 New features to boost your workflow:
|
SimonThalvorsen
force-pushed
the
test-test
branch
from
October 7, 2026 10:46
1c0e3b5 to
079365b
Compare
Member
|
@SimonThalvorsen is this done and ready for review? |
Contributor
Author
@olehermanse partly. The general idea is there, have put it on hold for now, so not super well tested, but feedback is welcome |
SimonThalvorsen
force-pushed
the
test-test
branch
4 times, most recently
from
November 9, 2026 14:41
e9b771b to
d53247c
Compare
SimonThalvorsen
marked this pull request as draft
November 9, 2026 15:26
SimonThalvorsen
force-pushed
the
test-test
branch
2 times, most recently
from
November 10, 2026 12:48
1cbb1dc to
0e75c4f
Compare
…-promise module Runs test_*.cf files or a deployed policy's own assert: promises (or just a plain built-policy run) in disposable Docker container and reports a pytest-style pass/fail summary. In a cfbs project, each test file runs at the end of the project's real promises.cf (with its fixture applied); --test-only runs just the test bundles from a minimal generated policy instead. Adds --dockerfile/--rebuild flags for testing against a custom base image. Ticket: ENT-14444 Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
Covers the assert promise vocabulary, a standalone test suite (auto-discovery and an explicit directory argument), a cfbs project suite with a local module, and the full-policy default versus --test-only. Ticket: ENT-14444 Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
Ticket: ENT-14444 Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
Ticket: ENT-14444 Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>
SimonThalvorsen
force-pushed
the
test-test
branch
from
November 10, 2026 14:14
0e75c4f to
b052f2f
Compare
SimonThalvorsen
marked this pull request as ready for review
November 10, 2026 14:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs test_*.cf files or a deployed policy's own assert: promises (or just a plain built-policy run) in disposable Docker container and reports a pytest-style pass/fail summary.
Adds --dockerfile/--rebuild flags for testing against a custom base image.
Ticket: ENT-14444