Skip to content

Commit

Permalink
Add new property to rbe_exec_properties_dict (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwagh committed Nov 15, 2022
1 parent 8c717f8 commit 03bb68c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/exec_properties/exec_properties.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ PARAMS = {
key = "dockerPrivileged",
verifier_fcn = _verify_bool,
),
"docker_run_as_container_provided_user": struct(
key = "dockerRunAsContainerProvidedUser",
verifier_fcn = _verify_string,
),
"docker_run_as_root": struct(
key = "dockerRunAsRoot",
verifier_fcn = _verify_bool,
Expand Down
6 changes: 6 additions & 0 deletions tests/rules/exec_properties/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ compare_dicts_test(
expected = {"dockerNetwork": "standard"},
)

compare_dicts_test(
name = "docker_run_as_container_provided_user_compare_test",
actual = create_rbe_exec_properties_dict(docker_run_as_container_provided_user = "0:0"),
expected = {"dockerRunAsContainerProvidedUser": "0:0"},
)

compare_dicts_test(
name = "multiple_properties_compare_test",
actual = create_rbe_exec_properties_dict(
Expand Down

0 comments on commit 03bb68c

Please sign in to comment.