Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: infra/tools/bot_setup/version/test/version_test.py

Issue 998953003: Make windows bot infra bot_setup canaries (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fix Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | infra/tools/bot_setup/version/test/version_test.expected/TestVersions.test_expected_active_versions.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # pylint: disable=F0401 5 # pylint: disable=F0401
6 6
7 import unittest 7 import unittest
8 8
9 from infra.tools.bot_setup.version import version 9 from infra.tools.bot_setup.version import version
10 10
11 11
12 ENABLED_SLAVES = [ 12 ENABLED_SLAVES = [
13 'slave2-c7', 13 'slave2-c7',
14 'slave12-c7', 14 'slave12-c7',
15 'slave100-c4', 15 'slave100-c4',
16 'slave250-c4', 16 'slave250-c4',
17 'slave260-c4', 17 'slave260-c4',
18 'swarm1-c4', 18 'swarm1-c4',
19 'swarm11-c4', 19 'swarm11-c4',
20 'winslave1-c4',
21 'swarm-win1-c4',
20 ] 22 ]
21 23
22 DISABLED_SLAVES = [ 24 DISABLED_SLAVES = [
23 'test_disabled_slave', 25 'test_disabled_slave',
24 ] 26 ]
25 27
26 28
27 class TestVersions(unittest.TestCase): 29 class TestVersions(unittest.TestCase):
28 @staticmethod 30 @staticmethod
29 def test_expected_active_versions(): 31 def test_expected_active_versions():
30 return [ 32 return [
31 'Slave %s is on version %s' 33 'Slave %s is on version %s'
32 % (slave_name, version.get_version(slave_name, None)) 34 % (slave_name, version.get_version(slave_name, None))
33 for slave_name in sorted(ENABLED_SLAVES) 35 for slave_name in sorted(ENABLED_SLAVES)
34 ] 36 ]
35 37
36 def test_expected_disabled_versions(self): 38 def test_expected_disabled_versions(self):
37 for slave_name in sorted(DISABLED_SLAVES): 39 for slave_name in sorted(DISABLED_SLAVES):
38 self.assertRaises( 40 self.assertRaises(
39 version.BuilderDisabled, version.get_version, slave_name, None) 41 version.BuilderDisabled, version.get_version, slave_name, None)
OLDNEW
« no previous file with comments | « no previous file | infra/tools/bot_setup/version/test/version_test.expected/TestVersions.test_expected_active_versions.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698