Skip to content

Commit

Permalink
Merge pull request #7982 from ggbecker/fix-ocp4-and-eks-content
Browse files Browse the repository at this point in the history
Fix OCP4 and EKS SCAP validation
  • Loading branch information
JAORMX authored Dec 9, 2021
2 parents 180ea0a + c8a914c commit 9133658
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<!-- Comparison -->
<!-- This verifies that the filtered namespaces are equal to the namespaces with resourcequota -->
<ind:variable_state id="state_elements_count_for_resource_requests_quota_per_project" version="1">
<ind:value var_ref="local_variable_counter_resource_requests_quotas_filtered_namespaces"/>
<ind:value datatype="int" var_ref="local_variable_counter_resource_requests_quotas_filtered_namespaces"/>
</ind:variable_state>

<!-- OCP data root declaration -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<!-- Comparison -->
<!-- This verifies that the filtered namespaces are equal to the namespaces with NetworkPolicies -->
<ind:variable_state id="state_elements_count_for_configure_network_policies_namespaces" version="1">
<ind:value var_ref="local_variable_counter_configure_network_policies_filtered_namespaces"/>
<ind:value datatype="int" var_ref="local_variable_counter_configure_network_policies_filtered_namespaces"/>
</ind:variable_state>

<!-- OCP data root declaration -->
Expand Down
4 changes: 3 additions & 1 deletion shared/templates/yamlfile_value/oval.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
<ind:yamlfilecontent_test id="test_{{{ rule_id }}}" check="all" check_existence="{{{ CHECK_EXISTENCE|default("only_one_exists") }}}"
{{{ {'comment': "In the file '" + FILEPATH + "' find only one object at path '" + YAMLPATH + "'."}|xmlattr }}} version="1">
<ind:object object_ref="object_{{{ rule_id }}}"/>
{{% if CHECK_EXISTENCE != "none_exist" %}}
<ind:state state_ref="state_{{{ rule_id }}}"/>
{{% endif %}}
</ind:yamlfilecontent_test>
{{% else %}}
<ind:variable_test id="test_{{{ rule_id }}}" check="all" check_existence="all_exist" comment="Variable test to check XCCDF variable" version="1">
Expand Down Expand Up @@ -101,7 +103,7 @@
</local_variable>

<ind:variable_state id="state_elements_count_for_{{{ rule_id }}}" version="1">
<ind:value var_ref="local_variable_counter_control_{{{ rule_id }}}"/>
<ind:value datatype="int" var_ref="local_variable_counter_control_{{{ rule_id }}}"/>
</ind:variable_state>
{{% endif %}}

Expand Down

0 comments on commit 9133658

Please sign in to comment.