コード例 #1
0
ファイル: test_jobqueue.py プロジェクト: IBM/ignition
 def __bootstrap_config(self):
     configuration = BootstrapApplicationConfiguration()
     configuration.app_name = 'TestJobQueueConfigurator'
     boot_config = BootProperties()
     configuration.property_groups.add_property_group(boot_config)
     messaging_conf = MessagingProperties()
     messaging_conf.connection_address = 'testaddr'
     configuration.property_groups.add_property_group(messaging_conf)
     job_queue_conf = JobQueueProperties()
     configuration.property_groups.add_property_group(job_queue_conf)
     return configuration
コード例 #2
0
ファイル: test_requestqueue.py プロジェクト: IBM/ignition
    def __bootstrap_config(self):
        configuration = BootstrapApplicationConfiguration()
        configuration.app_name = "TestApp"
        boot_config = BootProperties()
        configuration.property_groups.add_property_group(boot_config)
        messaging_conf = MessagingProperties()
        messaging_conf.connection_address = "kafka"
        configuration.property_groups.add_property_group(messaging_conf)
        self.mock_infrastructure_messaging_service = MagicMock()
        self.mock_lifecycle_messaging_service = MagicMock()
        resource_driver_conf = ResourceDriverProperties()
        configuration.property_groups.add_property_group(resource_driver_conf)

        self.mock_topic_creator = MagicMock()

        return configuration
コード例 #3
0
 def __bootstrap_config(self):
     configuration = BootstrapApplicationConfiguration()
     configuration.app_name = 'TestProgressEventLogConfigurator'
     boot_config = BootProperties()
     configuration.property_groups.add_property_group(boot_config)
     return configuration