Esempio n. 1
0
    def setup_swagger(self):
        self.http_client = RequestsClient()
        self.http_client.session.verify = False

        spec = pytest_config.getoption(self.spec_option)
        self.client = SwaggerClient.from_spec(load_file(spec),
                                              config=dict(self.config),
                                              http_client=self.http_client)
        self.client.swagger_spec.api_url = self.make_api_url()
Esempio n. 2
0
 def __init__(self):
     self.api_url = DEPLOYMENTS_BASE_URL.format(
         pytest_config.getoption("host"), "management")
     super().__init__()
Esempio n. 3
0
 def __init__(self):
     self.api_url = "http://%s/api/0.1.0/" % (
         pytest_config.getoption("inventory_host"))
     super().__init__()