aboutsummaryrefslogtreecommitdiff
blob: 5b6ea2558b1ec36911d8779ed8f4544f0cd7faa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
name: Static Ethernet Test Suite
description: A battery of tests to check the correction functioning of static net.eth0
net_config: conf.d/eth_static
interface: $$WIRED$$
tests:
  - name: Check DHCP
    command: ifconfig $$WIRED$$
    keys:
    - name: status
      type: boolean
      value: grep -q UP
    - name: IP
      value: "grep 'inet ' |  sed -e 's/^[ \t]*//' | cut -d ' ' -f2"
      match: "r'\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b'"