The SchedulerStatsAdminTest has a couple of tests that use assertDictEqual to make sure the correct pool is fetched, but comparison fails when the capabilities timestamps change. The test really only needs to validate the key values.
The truncated diff here is confusing, but I believe the problem is with the capabilities['timestamp'].
tempest.api.share.admin.test_scheduler_stats.SchedulerStatsAdminTest.test_pool_list_detail_with_filters[gate,smoke]
2015-07-01 15:18:40.987 | 2015-07-01 15:18:40.990 | -------------------------------------------------------------------------------------------------------------------
2015-07-01 15:18:40.988 | 2015-07-01 15:18:40.992 |
2015-07-01 15:18:40.990 | 2015-07-01 15:18:40.993 | Captured traceback:
2015-07-01 15:18:40.991 | 2015-07-01 15:18:40.995 | ~~~~~~~~~~~~~~~~~~~
2015-07-01 15:18:40.993 | 2015-07-01 15:18:40.997 | Traceback (most recent call last):
2015-07-01 15:18:40.995 | 2015-07-01 15:18:40.999 | File "tempest/api/share/admin/test_scheduler_stats.py", line 118, in test_pool_list_detail_with_filters
2015-07-01 15:18:40.997 | 2015-07-01 15:18:41.000 | self.assertDictEqual(pool, filtered_pool_list[0])
2015-07-01 15:18:40.998 | 2015-07-01 15:18:41.002 | File "/opt/stack/new/tempest/.tox/all/local/lib/python2.7/site-packages/unittest2/case.py", line 1128, in assertDictEqual
2015-07-01 15:18:41.000 | 2015-07-01 15:18:41.004 | self.fail(self._formatMessage(msg, standardMsg))
2015-07-01 15:18:41.002 | 2015-07-01 15:18:41.006 | File "/opt/stack/new/tempest/.tox/all/local/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
2015-07-01 15:18:41.003 | 2015-07-01 15:18:41.007 | raise self.failureException(msg)
2015-07-01 15:18:41.005 | 2015-07-01 15:18:41.009 | AssertionError: {u'ho[128 chars]T15:00:47.380263', u'QoS_support': False, u'dr[397 chars]DON'} != {u'ho[128 chars]T15:01:47.379238', u'QoS_support': False, u'dr[397 chars]DON'}
2015-07-01 15:18:41.007 | 2015-07-01 15:18:41.011 | Diff is 1022 characters long. Set self.maxDiff to None to see it.
Reviewed: https:/ /review. openstack. org/198061 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=d19b800d422 b3a3f24958b8c25 7586a738ab06e0
Committed: https:/
Submitter: Jenkins
Branch: master
commit d19b800d422b3a3 f24958b8c257586 a738ab06e0
Author: Mark Sturdevant <email address hidden>
Date: Thu Jul 2 09:28:51 2015 -0700
Fix for SchedulerStatsA dminTest fails on timestamp
Two tests in SchedulerStatsA dminTest can fail when
a pool capabilities timestamp changes. The tests
really only need to test the key values to be
more reliable.
The 2 tests are: list_with_ filters and list_detail_ with_filters
* test_pool_
* test_pool_
Change-Id: I1bd8307da6c987 64b12a948eed20a 9f522173144
Closes-Bug: #1470928