コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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)
コード例 #5
0
 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)
コード例 #6
0
 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)