diff --git a/vitrage_tempest_plugin/tests/api/services/test_service.py b/vitrage_tempest_plugin/tests/api/services/test_service.py index 735e962..6263259 100644 --- a/vitrage_tempest_plugin/tests/api/services/test_service.py +++ b/vitrage_tempest_plugin/tests/api/services/test_service.py @@ -12,10 +12,8 @@ # License for the specific language governing permissions and limitations # under the License. -from datetime import date import socket -from dateutil import parser from testtools import matchers from vitrage_tempest_plugin.tests.base import BaseVitrageTempest @@ -36,21 +34,10 @@ class ServiceTest(BaseVitrageTempest): def test_service_list(self): services = self.vitrage_client.service.list() - # NOTE(eyalb) test will run in the same day of - # process creation, might remove this if it causes - # problems - self.check_created(services, date.today()) - self.check_all_equal(services, SERVICES) self.check_all_hosted(services, socket.gethostname()) self.check_different_process_ids_for(services) - def check_created(self, services, today): - - created = {parser.parse(service['created']).date() - for service in services} - self.assert_set_equal({today}, created) - def check_all_equal(self, services, expected_svc_names): names = {service['name'].split(' ')[0] for service in services} self.assert_set_equal(expected_svc_names, names)