~ubuntu-branches/ubuntu/vivid/ironic/vivid-updates

« back to all changes in this revision

Viewing changes to ironic/tests/test_pxe_utils.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2015-03-30 11:14:57 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20150330111457-kr4ju3guf22m4vbz
Tags: 2015.1~b3-0ubuntu1
* New upstream release.
  + d/control: 
    - Align with upstream dependencies.
    - Add dh-python to build-dependencies.
    - Add psmisc as a dependency. (LP: #1358820)
  + d/p/fix-requirements.patch: Rediffed.
  + d/ironic-conductor.init.in: Fixed typos in LSB headers,
    thanks to JJ Asghar. (LP: #1429962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    def setUp(self):
34
34
        super(TestPXEUtils, self).setUp()
35
35
        mgr_utils.mock_the_extension_manager(driver="fake")
 
36
 
 
37
        common_pxe_options = {
 
38
            'deployment_aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-'
 
39
                                   u'c02d7f33c123/deploy_kernel',
 
40
            'aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/'
 
41
                        u'kernel',
 
42
            'pxe_append_params': 'test_param',
 
43
            'deployment_ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7'
 
44
                                   u'f33c123/deploy_ramdisk',
 
45
            'root_device': 'vendor=fake,size=123',
 
46
            'ipa-api-url': 'http://192.168.122.184:6385',
 
47
        }
 
48
 
36
49
        self.pxe_options = {
37
50
            'deployment_key': '0123456789ABCDEFGHIJKLMNOPQRSTUV',
38
51
            'ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/'
39
52
                        u'ramdisk',
40
53
            'iscsi_target_iqn': u'iqn-1be26c0b-03f2-4d2e-ae87-c02d7f33'
41
54
                                u'c123',
42
 
            'deployment_ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7'
43
 
                                   u'f33c123/deploy_ramdisk',
44
 
            'pxe_append_params': 'test_param',
45
 
            'aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/'
46
 
                        u'kernel',
47
55
            'deployment_id': u'1be26c0b-03f2-4d2e-ae87-c02d7f33c123',
48
56
            'ironic_api_url': 'http://192.168.122.184:6385',
49
 
            'deployment_aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-'
50
 
                                   u'c02d7f33c123/deploy_kernel',
51
57
            'disk': 'cciss/c0d0,sda,hda,vda',
52
 
            'root_device': 'vendor=fake,size=123'
 
58
            'boot_option': 'netboot',
 
59
            'ipa-driver-name': 'pxe_ssh',
 
60
            'boot_mode': 'bios',
53
61
        }
 
62
        self.pxe_options.update(common_pxe_options)
 
63
 
54
64
        self.agent_pxe_options = {
55
 
            'deployment_ari_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7'
56
 
                                   u'f33c123/deploy_ramdisk',
57
 
            'pxe_append_params': 'test_param',
58
 
            'aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-c02d7f33c123/'
59
 
                        u'kernel',
60
 
            'ipa-api-url': 'http://192.168.122.184:6385',
61
65
            'ipa-driver-name': 'agent_ipmitool',
62
 
            'deployment_aki_path': u'/tftpboot/1be26c0b-03f2-4d2e-ae87-'
63
 
                                   u'c02d7f33c123/deploy_kernel',
64
66
        }
 
67
        self.agent_pxe_options.update(common_pxe_options)
 
68
 
65
69
        self.node = object_utils.create_test_node(self.context)
66
70
 
67
71
    def test__build_pxe_config(self):