Skip to content

Commit

Permalink
Merge pull request cri-o#8335 from sohankunkerkar/fix-ci-supplemental…
Browse files Browse the repository at this point in the history
…_group_policy

test: ensure correct parsing of supplemental groups policy in JSON
  • Loading branch information
openshift-merge-bot[bot] committed Jul 2, 2024
2 parents 013cd24 + 4148aca commit c8ea300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ctr.bats
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ function create_test_rro_mounts() {

@test "ctr has gid in supplemental groups with Merge policy" {
start_crio
jq ' .linux.security_context.supplemental_groups_policy = "Merge"' \
jq ' .linux.security_context.supplemental_groups_policy = 0' \
"$TESTDATA"/sandbox_config.json > "$newconfig"

pod_id=$(crictl runp "$newconfig")
Expand All @@ -946,7 +946,7 @@ function create_test_rro_mounts() {

@test "ctr has only specified gid in supplemental groups with Strict policy" {
start_crio
jq ' .linux.security_context.supplemental_groups_policy = "Strict"' \
jq ' .linux.security_context.supplemental_groups_policy = 1' \
"$TESTDATA"/sandbox_config.json > "$newconfig"

pod_id=$(crictl runp "$newconfig")
Expand Down

0 comments on commit c8ea300

Please sign in to comment.