Supply label name to Nodes

We are mistakenly supplying the image name for the node type. This
should be the label name.

Change-Id: I35982d0d03ae00af77a515839b53542c5d830c89
This commit is contained in:
David Shrewsbury 2017-02-09 14:12:41 -05:00
parent 17e4fa9748
commit 349b23bc32

View File

@ -53,7 +53,7 @@ class TestNodepoolIntegration(BaseTestCase):
# Test a simple node request
nodeset = model.NodeSet()
nodeset.addNode(model.Node('controller', 'fake-nodepool'))
nodeset.addNode(model.Node('controller', 'fake-label'))
job = model.Job('testjob')
job.nodeset = nodeset
request = self.nodepool.requestNodes(None, job)