46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
#
|
|
# Copyright (c) 2023 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from sysinv.tests.db import base as dbbase
|
|
|
|
from k8sapp_power_metrics.common import constants as app_constants
|
|
|
|
|
|
class K8SAppPowerMetricsAppMixin(object):
|
|
app_name = app_constants.HELM_APP_PM
|
|
path_name = app_name + '.tgz'
|
|
|
|
# pylint: disable=invalid-name,useless-parent-delegation
|
|
def setUp(self):
|
|
super().setUp()
|
|
|
|
def test_stub(self):
|
|
# Replace this with a real unit test.
|
|
pass
|
|
|
|
|
|
# Test Configuration:
|
|
# - Controller
|
|
# - IPv6
|
|
# - Ceph Storage
|
|
# - power-metrics app
|
|
class K8sAppPowerMetricsControllerTestCase(K8SAppPowerMetricsAppMixin,
|
|
dbbase.BaseIPv6Mixin,
|
|
dbbase.BaseCephStorageBackendMixin,
|
|
dbbase.ControllerHostTestCase):
|
|
pass
|
|
|
|
|
|
# Test Configuration:
|
|
# - AIO
|
|
# - IPv4
|
|
# - Ceph Storage
|
|
# - power-metrics app
|
|
class K8SAppPowerMetricsAIOTestCase(K8SAppPowerMetricsAppMixin,
|
|
dbbase.BaseCephStorageBackendMixin,
|
|
dbbase.AIOSimplexHostTestCase):
|
|
pass
|