Ejemplo n.º 1
0
 def change_merged(self, *args, **kwargs):
     """Called whenever a new patch is merged into a project's master
     branch. Expected arguments based on the gerrit hook with the same name:
     'change', 'change_url', 'project',
     'branch', 'topic', 'submitter', 'commit', 'commit_message'
     (The last one will be computed by the local hook script)"""
     raise exc.UnavailableActionError()
Ejemplo n.º 2
0
 def patchset_created(self, *args, **kwargs):
     """Called whenever a new patch is submitted. Expected arguments
     based on the gerrit hook with the same name:
     'change', 'is_draft', 'change_url', 'project',
     'branch', 'topic', 'uploader', 'commit', 'patchset',
     'commit_message'
     (The last one will be computed by the local hook script)"""
     raise exc.UnavailableActionError()
Ejemplo n.º 3
0
 def update(self, uid, **kwargs):
     f = self.check_forbidden_fields(**kwargs)
     if f:
         msg = u'[%s] fields %s cannot be updated'
         raise exc.UnavailableActionError(
             msg % (self.plugin.service_name, ', '.join(f)))
     g_client = self.plugin.get_client()
     return g_client.update_account(id=uid,
                                    no_email_confirmation=True,
                                    **kwargs)
Ejemplo n.º 4
0
 def get(self, node_id=None, **kwargs):
     """lists one or several nodes depending on filtering with node's
     id or kwargs"""
     raise exc.UnavailableActionError()
Ejemplo n.º 5
0
 def get_update_info(self, id):
     """fetches relevant info on an image update possibly still
     in progress"""
     raise exc.UnavailableActionError()
Ejemplo n.º 6
0
 def propose_test_scripts(self, **kwargs):
     """creates a review for template tests scripts on a project"""
     raise exc.UnavailableActionError()
Ejemplo n.º 7
0
 def get(self, provider_name=None, image_name=None, **kwargs):
     """lists one or several images depending on filtering options"""
     raise exc.UnavailableActionError()
Ejemplo n.º 8
0
 def start_update(self, provider_name, image_name):
     """updates (rebuild) the image image_name on provider provider_name"""
     raise exc.UnavailableActionError()
Ejemplo n.º 9
0
 def delete(self, *args, **kwargs):
     """Deletion operation"""
     raise exc.UnavailableActionError()
Ejemplo n.º 10
0
 def propose_test_definition(self, **kwargs):
     """creates a review adding tests in the zuul pipelines for a project"""
     raise exc.UnavailableActionError()
Ejemplo n.º 11
0
 def _generic_hook(*args, **kwargs):
     msg = "[%s] undefined hook %s" % (self.plugin.service_name, hook)
     raise exc.UnavailableActionError(msg)
Ejemplo n.º 12
0
 def get(self, *args, **kwargs):
     """Fetching operation"""
     raise exc.UnavailableActionError()
Ejemplo n.º 13
0
 def stop(self, job_name, job_id):
     """stop a running job"""
     raise exc.UnavailableActionError()
Ejemplo n.º 14
0
 def run(self, job_name, job_parameters):
     """run a job"""
     raise exc.UnavailableActionError()
Ejemplo n.º 15
0
 def get_job_logs(self, job_name, job_id):
     """get logs of a finished job"""
     raise exc.UnavailableActionError()
Ejemplo n.º 16
0
 def get_job_status(self, job_name, job_id):
     """get parameters used to run a job"""
     raise exc.UnavailableActionError()
Ejemplo n.º 17
0
 def get_job(self, job_name, **kwargs):
     """lists one or several jobs depending on filtering with kwargs"""
     raise exc.UnavailableActionError()
Ejemplo n.º 18
0
 def create(self, *args, **kwargs):
     """Creation operation"""
     raise exc.UnavailableActionError()
Ejemplo n.º 19
0
 def hold(self, node_id):
     """prevents node node_id from being deleted after a completed job"""
     raise exc.UnavailableActionError()
Ejemplo n.º 20
0
 def update(self, *args, **kwargs):
     """Update operation"""
     raise exc.UnavailableActionError()
Ejemplo n.º 21
0
 def delete(self, node_id):
     """schedules node node_id for deletion"""
     raise exc.UnavailableActionError()
Ejemplo n.º 22
0
 def add_authorized_key(self, node_id, public_key, user=None):
     """adds public_key as an authorized key on user's account on node_id"""
     raise exc.UnavailableActionError()
Ejemplo n.º 23
0
 def trigger(self, **kwargs):
     """Trigger a replication"""
     raise exc.UnavailableActionError()