~ubuntu-branches/ubuntu/saucy/cloud-init/saucy-proposed

« back to all changes in this revision

Viewing changes to tests/unittests/test_handler/test_handler_growpart.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2013-08-14 21:44:22 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20130814214422-uzrq82t5srz2g4c2
Tags: 0.7.3~bzr858-0ubuntu1
* New upstream snapshot.
  * fix resizing of root partition by preferring the functional 'growpart'
    support over the broken 'parted resizepart' support (LP: #1212444)
  * add options for apt_ftp_proxy, apt_https_proxy and apt_config
    (LP: #1057195)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
import logging
10
10
import os
11
11
import re
 
12
import unittest
12
13
 
13
14
# growpart:
14
15
#   mode: auto  # off, on, auto, 'growpart', 'parted'
121
122
        # Order must be correct
122
123
        self.mocker.order()
123
124
 
 
125
    @unittest.skip("until LP: #1212444 fixed")
124
126
    def test_no_resizers_auto_is_fine(self):
125
127
        subp = self.mocker.replace(util.subp, passthrough=False)
126
128
        subp(['parted', '--help'], env={'LANG': 'C'})
142
144
        self.assertRaises(ValueError, self.handle, self.name, config,
143
145
                          self.cloud_init, self.log, self.args)
144
146
 
 
147
    @unittest.skip("until LP: #1212444 fixed")
145
148
    def test_mode_auto_prefers_parted(self):
146
149
        subp = self.mocker.replace(util.subp, passthrough=False)
147
150
        subp(['parted', '--help'], env={'LANG': 'C'})