def test_quintupleo_name(self): mock_args = mock.Mock() mock_args.name = 'foo' mock_args.quintupleo = True name, template = deploy._process_args(mock_args) self.assertEqual('foo', name) self.assertEqual('templates/quintupleo.yaml', template)
def test_name(self): mock_args = mock.Mock() mock_args.name = 'foo' mock_args.quintupleo = False mock_args.id = None name, template = deploy._process_args(mock_args) self.assertEqual('foo', name) self.assertEqual('templates/virtual-baremetal.yaml', template)
def test_basic(self): mock_args = mock.Mock() mock_args.name = None mock_args.quintupleo = False mock_args.id = None mock_args.role = [] name, template = deploy._process_args(mock_args) self.assertEqual('baremetal', name) self.assertEqual('templates/virtual-baremetal.yaml', template)