Revision 76b62028 test/ganeti.jqueue_unittest.py
b/test/ganeti.jqueue_unittest.py | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2010, 2011 Google Inc. |
|
4 |
# Copyright (C) 2010, 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
702 | 702 |
|
703 | 703 |
# Check job status |
704 | 704 |
self.assertEqual(job.CalcStatus(), constants.JOB_STATUS_ERROR) |
705 |
self.assertEqual(job.GetInfo(["id"]), [str(job_id)])
|
|
705 |
self.assertEqual(job.GetInfo(["id"]), [job_id])
|
|
706 | 706 |
self.assertEqual(job.GetInfo(["status"]), [constants.JOB_STATUS_ERROR]) |
707 | 707 |
|
708 | 708 |
# Check opcode status |
... | ... | |
926 | 926 |
for i in range(3)] |
927 | 927 |
|
928 | 928 |
# Create job |
929 |
job_id = str(28492)
|
|
929 |
job_id = 28492
|
|
930 | 930 |
job = self._CreateJob(queue, job_id, ops) |
931 | 931 |
|
932 | 932 |
self.assertEqual(job.CalcStatus(), constants.JOB_STATUS_QUEUED) |
Also available in: Unified diff