Skip to content

Commit 6d1b266

Browse files
committed
Assert there are no policies
The policies are optimized dow in the C code, they get instanciated only upon request. We need to get something like xccdf_policy_model_get_all_policies. To iterate through all meaningful policies within benchmark+tailoring.
1 parent 67df325 commit 6d1b266

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/xccdf/policy_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def test_new_policy_model
2121
@s = OpenSCAP::Source.new '../data/xccdf.xml'
2222
b = OpenSCAP::Xccdf::Benchmark.new @s
2323
pm = OpenSCAP::Xccdf::PolicyModel.new b
24+
assert !b.nil?
25+
assert pm.policies.size == 0, pm.policies.to_s
2426
pm.destroy
2527
end
2628
end

0 commit comments

Comments
 (0)