コード例 #1
0
ファイル: test_workers.py プロジェクト: ameade/qonos
 def _create_workers(self):
     fixture = {"host": "foo.cow", "id": unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {"host": "bar.bar", "id": unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {"host": "baz.cow", "id": unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {"host": "qux.bar", "id": unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
コード例 #2
0
 def _create_workers(self):
     fixture = {'host': 'foo.cow', 'id': unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'bar.bar', 'id': unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {'host': 'baz.cow', 'id': unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {'host': 'qux.bar', 'id': unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
コード例 #3
0
ファイル: test_workers.py プロジェクト: cp16net/qonos
 def _create_workers(self):
     fixture = {'host': 'foo.cow', 'id': unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'bar.bar', 'id': unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {'host': 'baz.cow', 'id': unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {'host': 'qux.bar', 'id': unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
コード例 #4
0
ファイル: test_workers.py プロジェクト: komawar/qonos
 def _create_workers(self):
     fixture = {'host': 'ameade.cow'}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'foo.bar'}
     self.worker_2 = db_api.worker_create(fixture)