Update testing to zed and fix the broken test cases

Change-Id: Idb1d362bc890afbc6bd6b4aca42a5eed841d1b35
This commit is contained in:
Nisha Agarwal 2022-09-02 16:57:06 +00:00
parent 43570962b3
commit 7c2993f336
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
- project:
templates:
- openstack-python3-yoga-jobs
- openstack-python3-zed-jobs
- openstack-cover-jobs

View File

@ -16,6 +16,7 @@
import json
from unittest import mock
from sushy import auth as sushy_auth
import testtools
from proliantutils import exception
@ -29,8 +30,9 @@ from proliantutils.redfish.resources import update_service
class HPESushyTestCase(testtools.TestCase):
@mock.patch.object(sushy_auth, 'SessionOrBasicAuth', autospec=True)
@mock.patch.object(connector, 'HPEConnector', autospec=True)
def setUp(self, connector_mock):
def setUp(self, connector_mock, mock_auth):
super(HPESushyTestCase, self).setUp()
with open('proliantutils/tests/redfish/'
'json_samples/root.json', 'r') as f: