'Ensure we can retrieve and update the config.'

def testUpdateConfig(self):

    client_mock = action_mocks.ActionMock(admin.GetConfiguration, admin.UpdateConfiguration)
    loc = 'http://www.example.com'
    new_config = rdf_protodict.Dict({'Client.server_urls': [loc], 'Client.foreman_check_frequency': 3600, 'Client.poll_min': 1})
    with utils.Stubber(config.CONFIG, 'Set', config.CONFIG.Set.old_target):
        for _ in flow_test_lib.TestFlowHelper(administrative.UpdateConfiguration.__name__, client_mock, client_id=self.client_id, token=self.token, config=new_config):
            pass
    for _ in flow_test_lib.TestFlowHelper(discovery.Interrogate.__name__, client_mock, token=self.token, client_id=self.client_id):
        pass
    fd = aff4.FACTORY.Open(self.client_id, token=self.token)
    config_dat = fd.Get(fd.Schema.GRR_CONFIGURATION)
    self.assertEqual(config_dat['Client.server_urls'], [loc])
    self.assertEqual(config_dat['Client.poll_min'], 1)
