nodepool/nodepool
James E. Blair 22961c5ba5 Add tests for the allocator
And fix a bug in it that caused too-small allocations in some
circumstances.

The main demonstration of this failure was:
  nodepool.tests.test_allocator.TwoLabels.test_allocator(two_nodes)

Which allocated 1,2 instead of 2,2.  But the following tests also
failed:

  nodepool.tests.test_allocator.TwoProvidersTwoLabels.test_allocator(four_nodes_over_quota)
  nodepool.tests.test_allocator.TwoProvidersTwoLabels.test_allocator(four_nodes)
  nodepool.tests.test_allocator.TwoProvidersTwoLabels.test_allocator(three_nodes)
  nodepool.tests.test_allocator.TwoProvidersTwoLabels.test_allocator(four_nodes_at_quota)
  nodepool.tests.test_allocator.TwoProvidersTwoLabels.test_allocator(one_node)

Change-Id: Idba0e52b2775132f52386785b3d5f0974c5e0f8e
2014-03-31 09:20:16 -07:00
..
cmd Add 'labels' as a configuration primitive 2014-03-28 09:12:27 -07:00
tests Add tests for the allocator 2014-03-31 09:20:16 -07:00
__init__.py Initial commit 2013-08-15 09:47:23 -07:00
allocation.py Add tests for the allocator 2014-03-31 09:20:16 -07:00
fakeprovider.py Add ready-script and multi-node support 2014-03-31 09:20:15 -07:00
jenkins_manager.py Make jenkins get info task synchronous 2014-02-18 16:57:40 -08:00
myjenkins.py Keep py3.X compatibility for urllib/urllib2 2014-02-25 16:51:03 +08:00
nodedb.py Add 'labels' as a configuration primitive 2014-03-28 09:12:27 -07:00
nodepool.py Add ready-script and multi-node support 2014-03-31 09:20:15 -07:00
nodeutils.py Retry ssh connections on auth failure. 2014-02-19 16:07:40 -05:00
provider_manager.py Merge "Stop waiting for resources in ERROR state" 2014-03-28 01:05:56 +00:00
sshclient.py Expose paramiko's get_pty parameter. 2014-01-29 09:29:27 +13:00
task_manager.py Revert "Provide diagnostics when task rate limiting." 2014-01-21 11:34:12 -08:00