[autotest] Delete support for parameterized jobs.
This deletes the `create_parameterized_job()` RPC endpoint and the
associated (unused!) "parameterized_jobs" config setting. It also
garbage collects code made unreferenced by these deletions.
BUG=chromium:679903
TEST=unit tests, and run push_to_prod suite in a local instance
Change-Id: I8ed683d0c8ffa879d0e10319b0a736133d56327e
Reviewed-on: https://chromium-review.googlesource.com/436407
Commit-Ready: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@google.com>
diff --git a/frontend/afe/frontend_test_utils.py b/frontend/afe/frontend_test_utils.py
index 4d7cbc8..7e7e302 100644
--- a/frontend/afe/frontend_test_utils.py
+++ b/frontend/afe/frontend_test_utils.py
@@ -1,4 +1,5 @@
-import atexit, datetime, os, tempfile, unittest
+import datetime
+
import common
from autotest_lib.frontend import setup_test_environment
from autotest_lib.frontend import thread_local
@@ -7,6 +8,7 @@
from autotest_lib.client.common_lib.test_utils import mock
class FrontendTestMixin(object):
+ # pylint: disable=missing-docstring
def _fill_in_test_data(self):
"""Populate the test database with some hosts and labels."""
if models.DroneSet.drone_sets_enabled():
@@ -68,8 +70,6 @@
if setup_tables:
setup_test_environment.set_up()
global_config.global_config.override_config_value(
- 'AUTOTEST_WEB', 'parameterized_jobs', 'False')
- global_config.global_config.override_config_value(
'SERVER', 'rpc_logging', 'False')
if fill_data and setup_tables:
self._fill_in_test_data()
@@ -84,8 +84,7 @@
def _create_job(self, hosts=[], metahosts=[], priority=0, active=False,
synchronous=False, atomic_group=None, hostless=False,
drone_set=None, control_file='control',
- parameterized_job=None, owner='autotest_system',
- parent_job_id=None):
+ owner='autotest_system', parent_job_id=None):
"""
Create a job row in the test database.
@@ -131,8 +130,7 @@
synch_count=synch_count, created_on=created_on,
reboot_before=model_attributes.RebootBefore.NEVER,
drone_set=drone_set, control_file=control_file,
- parameterized_job=parameterized_job, parent_job=parent_job,
- require_ssp=None)
+ parent_job=parent_job, require_ssp=None)
# Update the job's dependencies to include the metahost.
for metahost_label in metahosts: