Beispiel #1
0
 def get_cli_version(self):
     request_url = self._build_url(self._get_http_url(), 'cli')
     response = self.get(request_url)
     data_dict = response.json()
     logger.debug("CLI Version info :{}".format(data_dict))
     return CliVersionConfig.from_dict(data_dict)
Beispiel #2
0
 def test_cli_version_config(self):
     config_dict = {'latest_version': '2.2.2', 'min_version': '1.1.0'}
     config = CliVersionConfig.from_dict(config_dict)
     assert config.to_dict() == config_dict
Beispiel #3
0
 def get_cli_version(self):
     response = self.get(self._get_url())
     data_dict = response.json()
     logger.debug("CLI Version info :{}".format(data_dict))
     return CliVersionConfig.from_dict(data_dict)