def testUpdateConfigBlacklist(self):
    with test_lib.ConfigOverrider({
        "Client.server_urls": ["http://something.com/"],
        "Client.server_serial_number": 1}):

      location = ["http://www.example.com"]
      request = rdf_protodict.Dict()
      request["Client.server_urls"] = location
      request["Client.server_serial_number"] = 10

      self.RunAction("UpdateConfiguration", request)

      # Location can be set.
      self.assertEqual(config_lib.CONFIG["Client.server_urls"], location)

      # But the server serial number can not be updated.
      self.assertEqual(config_lib.CONFIG["Client.server_serial_number"], 1)
Tests that disallowed fields are not getting updated.
dataset/ETHPy150Open google/grr/grr/client/client_actions/admin_test.py/ConfigActionTest.testUpdateConfigBlacklist