Fix test to not check service updated_at time

When listing and verifying services, it's possible
that the service record has been updated within
manila, and the "updated_at" timestamp varies. So
lets not expect it to be the same between the prior
listing and the verification to avoid a mismatch
error:

ft1.1: manilaclient.tests.functional.osc.test_share_services.ShareServicesTestCase.test_services_listtesttools.testresult.real._StringException: Traceback (most recent call last):
<snip></snap>
testtools.matchers._impl.MismatchError: '2022-06-29T20:40:16.852331' != '2022-06-29T20:40:26.856247'

Change-Id: I477ca712edd5d54b2dcd5202848aec564002fabb
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
Goutham Pacha Ravi 2022-06-30 15:01:56 +05:30
parent 3ae03ccc93
commit 8f60f6928f

View File

@ -35,10 +35,8 @@ class ShareServicesTestCase(base.OSCClientTestBase):
status=first_service['Status'],
state=first_service['State'])
self.assertEqual(1, len(services))
self.assertEqual(first_service['Host'],
services[0]['Host'])
self.assertEqual(first_service['Updated At'],
services[0]['Updated At'])
for attr in ('ID', 'Binary', 'Host', 'State', 'Status', 'Zone'):
self.assertEqual(first_service[attr], services[0][attr])
def test_services_set(self):
services = self.list_services()