mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
@@ -952,7 +952,7 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest):
|
|||||||
self.assertNotEqual(new_inv.groups.count(), 0)
|
self.assertNotEqual(new_inv.groups.count(), 0)
|
||||||
self.assertNotEqual(new_inv.total_hosts, 0)
|
self.assertNotEqual(new_inv.total_hosts, 0)
|
||||||
self.assertNotEqual(new_inv.total_groups, 0)
|
self.assertNotEqual(new_inv.total_groups, 0)
|
||||||
self.assertElapsedLessThan(1800) # TODO: We need to revisit this again to see if we can optimize this back to the sub-600 second range - anoek 2016-04-18
|
self.assertElapsedLessThan(600)
|
||||||
|
|
||||||
|
|
||||||
def _get_ngroups_for_nhosts(self, n):
|
def _get_ngroups_for_nhosts(self, n):
|
||||||
@@ -978,7 +978,7 @@ class InventoryImportTest(BaseCommandMixin, BaseLiveServerTest):
|
|||||||
self.assertEqual(new_inv.groups.count(), ngroups)
|
self.assertEqual(new_inv.groups.count(), ngroups)
|
||||||
self.assertEqual(new_inv.total_hosts, nhosts)
|
self.assertEqual(new_inv.total_hosts, nhosts)
|
||||||
self.assertEqual(new_inv.total_groups, ngroups)
|
self.assertEqual(new_inv.total_groups, ngroups)
|
||||||
self.assertElapsedLessThan(180) # TODO: We need to revisit this again to see if we can optimize this back to the sub-120 second range - anoek 2016-04-18
|
self.assertElapsedLessThan(120)
|
||||||
|
|
||||||
@unittest.skipIf(getattr(settings, 'LOCAL_DEVELOPMENT', False),
|
@unittest.skipIf(getattr(settings, 'LOCAL_DEVELOPMENT', False),
|
||||||
'Skip this test in local development environments, '
|
'Skip this test in local development environments, '
|
||||||
|
|||||||
Reference in New Issue
Block a user