@@ -78,46 +78,6 @@ def test_initialize_untrusted_task(self):
7878 self .assertEqual (task .job , 'none' )
7979
8080
81- class GetUtaskFiltersTest (unittest .TestCase ):
82- """Tests for get_utask_filters."""
83-
84- # TODO(metzman): Restore tests when feature is used.
85- # def test_chromium_linux(self):
86- # """Tests that the get_utask_filters only has linux bots in chrome
87- # clusterfuzz executing preprocess. This test is temporary and
88- # will be removed when the migration is complete."""
89- # # TOOD(metzman): Delete this test when it is no longer needed.
90- # filters = tasks.get_utask_filters(is_chromium=True, is_linux=True)
91- # self.assertEqual(
92- # filters,
93- # 'attribute.name = analyze AND attribute.name = postprocess AND attribute.name = variant'
94- # )
95-
96- # def test_chromium_nonlinux(self):
97- # """Tests that the get_utask_filters only has linux bots in chrome
98- # clusterfuzz executing preprocess and postprocess. This test is temporary and
99- # will be removed when the migration is complete."""
100- # # TOOD(metzman): Delete this test when it is no longer needed.
101- # filters = tasks.get_utask_filters(is_chromium=True, is_linux=False)
102- # # Analyze will be begun only on Linux bots.
103- # self.assertEqual(
104- # filters,
105- # '-attribute.name = analyze AND -attribute.name = postprocess AND -attribute.name = variant'
106- # )
107-
108- def test_external_linux (self ):
109- """Tests that the get_utask_filters only has linux bots in chrome
110- clusterfuzz executing preprocess and postprocess."""
111- filters = tasks .get_utask_filters (is_chromium = False , is_linux = True )
112- self .assertIsNone (filters )
113-
114- def test_external_nonlinux (self ):
115- """Tests that the get_utask_filters only has linux bots in chrome
116- clusterfuzz executing preprocess and postprocess."""
117- filters = tasks .get_utask_filters (is_chromium = False , is_linux = False )
118- self .assertIsNone (filters )
119-
120-
12181class GetMachineTemplateForQueueTests (unittest .TestCase ):
12282 """Tests that we know the specs of an instance to launch a batch task on."""
12383
0 commit comments