def versions(request): return { 'cli_version': CliVersion.load(), 'platfornm_version': PlatformVersion.load(), 'lib_version': LibVersion.load(), 'chart_version': ChartVersion.load(), }
def setUp(self): super().setUp() self.cli_version = CliVersion.load() self.platform_version = PlatformVersion.load() self.lib_version = LibVersion.load() self.chart_version = ChartVersion.load() self.cli_url = '/{}/versions/cli'.format(API_V1) self.platform_url = '/{}/versions/platform'.format(API_V1) self.lib_url = '/{}/versions/lib'.format(API_V1) self.chart_url = '/{}/versions/chart'.format(API_V1) self.log_handler_url = '/{}/log_handler'.format(API_V1)
def setUp(self): super().setUp() self.cli_version = CliVersion.load() self.platform_version = PlatformVersion.load() self.lib_version = LibVersion.load() self.chart_version = ChartVersion.load() self.cli_url = '/{}/versions/cli'.format(API_V1) self.platform_url = '/{}/versions/platform'.format(API_V1) self.lib_url = '/{}/versions/lib'.format(API_V1) self.chart_url = '/{}/versions/chart'.format(API_V1) self.log_handler_url = '/{}/log_handler'.format(API_V1)
def retrieve(self, request, *args, **kwargs): lib_version = LibVersion.load() return Response(LibVersionConfig.obj_to_dict(lib_version))
def retrieve(self, request, *args, **kwargs): lib_version = LibVersion.load() return Response(LibVersionConfig.obj_to_dict(lib_version))