Add test class for kube_app AppOperator
Add test class and setup method. Mock method/operator will be added in individual commits which use that method or operator. Story: 2007082 Task: 37998 Change-Id: I60a4b235417f288adb4a13577b9779d79169a233 Signed-off-by: Mingyuan Qi <mingyuan.qi@intel.com>
This commit is contained in:
parent
f768a3f15d
commit
3997132003
@ -0,0 +1,24 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Copyright (C) 2020 Intel Corporation
|
||||
#
|
||||
|
||||
"""Test class for Sysinv kube_app AppOperator."""
|
||||
|
||||
from sysinv.conductor import kube_app
|
||||
from sysinv.db import api as dbapi
|
||||
from sysinv.openstack.common import context
|
||||
|
||||
from sysinv.tests.db import base
|
||||
|
||||
|
||||
class AppOperatorTestCase(base.DbTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(AppOperatorTestCase, self).setUp()
|
||||
|
||||
# Set up objects for testing
|
||||
self.app_operator = kube_app.AppOperator(dbapi.get_instance())
|
||||
self.context = context.get_admin_context()
|
||||
self.dbapi = dbapi.get_instance()
|
Loading…
Reference in New Issue
Block a user