[autotest] Reroute some RPCs called to a shard to master create_job and create_suite_job RPCs should not be handled by a shard. They should be redirected to the master. BUG=chromium:503188 TEST=puppylab. Submit a dummy suite in a stumpy shard. Change-Id: Ibe432655c677024e9eee1f4aca118ef6db7951f7 Reviewed-on: https://chromium-review.googlesource.com/281818 Reviewed-by: Mungyung Ryu <[email protected]> Commit-Queue: Mungyung Ryu <[email protected]> Tested-by: Mungyung Ryu <[email protected]>
diff --git a/frontend/afe/rpc_interface_unittest.py b/frontend/afe/rpc_interface_unittest.py index 14c1c5a..d74463a 100755 --- a/frontend/afe/rpc_interface_unittest.py +++ b/frontend/afe/rpc_interface_unittest.py
@@ -220,8 +220,9 @@ def _create_job_helper(self, **kwargs): - return rpc_interface.create_job('test', 'Medium', 'control file', - SERVER, **kwargs) + return rpc_interface.create_job(name='test', priority='Medium', + control_file='control file', + control_type=SERVER, **kwargs) def test_one_time_hosts(self):