def setUpClass(cls):

        config = AutoRestHttpInfrastructureTestServiceConfiguration(base_url="http://localhost:3000")
        config.log_level = log_level
        config.retry_policy.retries = 3
        cls.client = AutoRestHttpInfrastructureTestService(config)
        return super(HttpTests, cls).setUpClass()
Example #2
0
 def setUp(self):
     config = AutoRestHttpInfrastructureTestServiceConfiguration(base_url="http://localhost:3000")
     config.log_level = log_level
     config.retry_policy.retries = 3
     self.client = AutoRestHttpInfrastructureTestService(config)
     self.client._client._adapter.add_hook("request", self.client._client._adapter._test_pipeline)
     return super(HttpTests, self).setUp()
Example #3
0
    def setUpClass(cls):

        config = AutoRestHttpInfrastructureTestServiceConfiguration(
            base_url="http://localhost:3000")
        config.log_level = log_level
        config.retry_policy.retries = 3
        cls.client = AutoRestHttpInfrastructureTestService(config)
        return super(HttpTests, cls).setUpClass()
Example #4
0
 def setUp(self):
     config = AutoRestHttpInfrastructureTestServiceConfiguration(
         base_url="http://localhost:3000")
     config.log_level = log_level
     config.retry_policy.retries = 3
     self.client = AutoRestHttpInfrastructureTestService(config)
     self.client._client._adapter.add_hook(
         "request", self.client._client._adapter._test_pipeline)
     return super(HttpTests, self).setUp()