~curtin-dev/curtin/trunk

« back to all changes in this revision

Viewing changes to tests/vmtests/test_network_static.py

  • Committer: Scott Moser
  • Date: 2017-12-20 17:33:03 UTC
  • Revision ID: smoser@ubuntu.com-20171220173303-29gha5qb8wpqrd40
README: Mention move of revision control to git.

curtin development has moved its revision control to git.
It is available at
  https://code.launchpad.net/curtin

Clone with
  git clone https://git.launchpad.net/curtin
or
  git clone git+ssh://git.launchpad.net/curtin

For more information see
  http://curtin.readthedocs.io/en/latest/topics/development.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from .releases import base_vm_classes as relbase
2
 
from .releases import centos_base_vm_classes as centos_relbase
3
 
from .test_network import TestNetworkBaseTestsAbs
4
 
import textwrap
5
 
 
6
 
 
7
 
class TestNetworkStaticAbs(TestNetworkBaseTestsAbs):
8
 
    """ Static network testing with ipv4
9
 
    """
10
 
    conf_file = "examples/tests/basic_network_static.yaml"
11
 
 
12
 
 
13
 
class CentosTestNetworkStaticAbs(TestNetworkStaticAbs):
14
 
    extra_kern_args = "BOOTIF=eth0-52:54:00:12:34:00"
15
 
    collect_scripts = TestNetworkBaseTestsAbs.collect_scripts + [
16
 
        textwrap.dedent("""
17
 
            cd OUTPUT_COLLECT_D
18
 
            cp -a /etc/sysconfig/network-scripts .
19
 
            cp -a /var/log/cloud-init* .
20
 
            cp -a /var/lib/cloud ./var_lib_cloud
21
 
            cp -a /run/cloud-init ./run_cloud-init
22
 
        """)]
23
 
 
24
 
    def test_etc_network_interfaces(self):
25
 
        pass
26
 
 
27
 
    def test_etc_resolvconf(self):
28
 
        pass
29
 
 
30
 
 
31
 
class TrustyTestNetworkStatic(relbase.trusty, TestNetworkStaticAbs):
32
 
    __test__ = True
33
 
 
34
 
 
35
 
class TrustyHWEUTestNetworkStatic(relbase.trusty_hwe_u,
36
 
                                  TrustyTestNetworkStatic):
37
 
    # Working, off by default to safe test suite runtime, covered by bonding
38
 
    __test__ = False
39
 
 
40
 
 
41
 
class TrustyHWEVTestNetworkStatic(relbase.trusty_hwe_v,
42
 
                                  TrustyTestNetworkStatic):
43
 
    # Working, off by default to safe test suite runtime, covered by bonding
44
 
    __test__ = False
45
 
 
46
 
 
47
 
class TrustyHWEWTestNetworkStatic(relbase.trusty_hwe_w,
48
 
                                  TrustyTestNetworkStatic):
49
 
    # Working, off by default to safe test suite runtime, covered by bonding
50
 
    __test__ = False
51
 
 
52
 
 
53
 
class TrustyHWEXTestNetworkStatic(relbase.trusty_hwe_x,
54
 
                                  TrustyTestNetworkStatic):
55
 
    __test__ = True
56
 
 
57
 
 
58
 
class XenialTestNetworkStatic(relbase.xenial, TestNetworkStaticAbs):
59
 
    __test__ = True
60
 
 
61
 
 
62
 
class ZestyTestNetworkStatic(relbase.zesty, TestNetworkStaticAbs):
63
 
    __test__ = True
64
 
 
65
 
 
66
 
class ArtfulTestNetworkStatic(relbase.artful, TestNetworkStaticAbs):
67
 
    __test__ = True
68
 
 
69
 
 
70
 
class BionicTestNetworkStatic(relbase.bionic, TestNetworkStaticAbs):
71
 
    __test__ = True
72
 
 
73
 
 
74
 
class Centos66TestNetworkStatic(centos_relbase.centos66fromxenial,
75
 
                                CentosTestNetworkStaticAbs):
76
 
    __test__ = True
77
 
 
78
 
 
79
 
class Centos70TestNetworkStatic(centos_relbase.centos70fromxenial,
80
 
                                CentosTestNetworkStaticAbs):
81
 
    __test__ = True