github.com/blystad/deis@v0.11.0/controller/scheduler/faulty.py (about)

     1  class FaultyClient(object):
     2      """A faulty scheduler that will always fail"""
     3  
     4      def __init__(self, cluster_name, hosts, auth, domain, options):
     5          pass
     6  
     7      def setUp(self):
     8          pass
     9  
    10      def tearDown(self):
    11          pass
    12  
    13      def create(self, name, image, command='', template=None, port=5000):
    14          raise Exception()
    15  
    16      def start(self, name):
    17          raise Exception()
    18  
    19      def stop(self, name):
    20          raise Exception()
    21  
    22      def destroy(self, name):
    23          raise Exception()
    24  
    25      def run(self, name, image, command):
    26          raise Exception()
    27  
    28      def attach(self, name):
    29          raise Exception()
    30  
    31  SchedulerClient = FaultyClient