~curtin-dev/curtin/xenial

« back to all changes in this revision

Viewing changes to tests/vmtests/test_centos_basic.py

  • Committer: Scott Moser
  • Date: 2017-01-18 16:01:35 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: smoser@ubuntu.com-20170118160135-08jqgjm1rbp6zb1x
* debian/new-upstream-snapshot: change to not use bzr merge-upstream.
* New upstream snapshot.
  - revert: Test Workaround: skip XenialTestNvme for a short time.
  - Test Workaround: skip XenialTestNvme for a short time.
  - pep8: fix pep8 errors found with 'make pep8' on zesty.
  - Workaround failures caused by gpg2 daemons left running in chroot.
    (LP: #1645680)
  - Install u-boot-tools when running on a system with u-boot. (LP: #1640519)
  - block: fix partition kname for raid devices  (LP: #1641661)
  - Fix up tox errors that slipped in and new pycodestyle 2.1.0 complaints.
  - vmtests: adjust vmtest image sync metadata filenames
  - vmtests: Add centos support
  - Disable WilyTestRaid5Bcache vmtest
  - tools/xkvm: fix --netdev=<bridge>
  - bytes2human: fix for values larger than 32 bit int on 32 bit python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from . import VMBaseClass
 
2
from .releases import centos_base_vm_classes as relbase
 
3
 
 
4
import textwrap
 
5
 
 
6
 
 
7
# FIXME: should eventually be integrated with the real TestBasic
 
8
class CentosTestBasicAbs(VMBaseClass):
 
9
    __test__ = False
 
10
    conf_file = "examples/tests/centos_basic.yaml"
 
11
    extra_kern_args = "BOOTIF=eth0-52:54:00:12:34:00"
 
12
    collect_scripts = [textwrap.dedent(
 
13
        """
 
14
        cd OUTPUT_COLLECT_D
 
15
        cat /etc/fstab > fstab
 
16
        """)]
 
17
    fstab_expected = {
 
18
        'LABEL=cloudimg-rootfs': '/',
 
19
    }
 
20
 
 
21
    def test_dname(self):
 
22
        pass
 
23
 
 
24
    def test_interfacesd_eth0_removed(self):
 
25
        pass
 
26
 
 
27
    def test_output_files_exist(self):
 
28
        self.output_files_exist(["fstab"])
 
29
 
 
30
 
 
31
# FIXME: this naming scheme needs to be replaced
 
32
class Centos70FromXenialTestBasic(relbase.centos70fromxenial,
 
33
                                  CentosTestBasicAbs):
 
34
    __test__ = True
 
35
 
 
36
 
 
37
class Centos66FromXenialTestBasic(relbase.centos66fromxenial,
 
38
                                  CentosTestBasicAbs):
 
39
    __test__ = False
 
40
    # FIXME: test is disabled because the grub config script in target
 
41
    #        specifies drive using hd(1,0) syntax, which breaks when the
 
42
    #        installation medium is removed. other than this, the install works