Revision 4a89c54a test/ganeti.config_unittest.py
b/test/ganeti.config_unittest.py | ||
---|---|---|
79 | 79 |
master_node_config = objects.Node(name=me.name, |
80 | 80 |
primary_ip=me.ip, |
81 | 81 |
secondary_ip=ip, |
82 |
serial_no=1) |
|
82 |
serial_no=1, |
|
83 |
master_candidate=True) |
|
83 | 84 |
|
84 | 85 |
bootstrap.InitConfig(constants.CONFIG_VERSION, |
85 | 86 |
cluster_config, master_node_config, self.cfg_file) |
86 | 87 |
|
87 | 88 |
def _create_instance(self): |
88 | 89 |
"""Create and return an instance object""" |
89 |
inst = objects.Instance(name="test.example.com", disks=[], |
|
90 |
disk_template=constants.DT_DISKLESS) |
|
90 |
inst = objects.Instance(name="test.example.com", disks=[], nics=[], |
|
91 |
disk_template=constants.DT_DISKLESS, |
|
92 |
primary_node=self._get_object().GetMasterNode()) |
|
91 | 93 |
return inst |
92 | 94 |
|
93 | 95 |
def testEmpty(self): |
Also available in: Unified diff