From 03bb68c854a9268bcf68d1138dc00b09cd928cff Mon Sep 17 00:00:00 2001 From: Swati Wagh <118221560+sdwagh@users.noreply.github.com> Date: Tue, 15 Nov 2022 17:01:33 +0000 Subject: [PATCH] Add new property to rbe_exec_properties_dict (#991) --- rules/exec_properties/exec_properties.bzl | 4 ++++ tests/rules/exec_properties/BUILD | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/rules/exec_properties/exec_properties.bzl b/rules/exec_properties/exec_properties.bzl index 2c498664c..6391302f5 100644 --- a/rules/exec_properties/exec_properties.bzl +++ b/rules/exec_properties/exec_properties.bzl @@ -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, diff --git a/tests/rules/exec_properties/BUILD b/tests/rules/exec_properties/BUILD index 0e31131a8..e10ca30d0 100644 --- a/tests/rules/exec_properties/BUILD +++ b/tests/rules/exec_properties/BUILD @@ -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(