network-basic

Basic network test commands

What It Tests

  • print-network-statistics

  • list-all-network-interfaces

  • print-routing-tables

  • ip-link-loopback-up

  • route-dump-after-ip-link-loopback-up

  • ip-link-interface-up

  • ip-link-interface-down

  • Dynamic-Host-Configuration-Protocol-Client-dhclient-v

  • print-routing-tables-after-dhclient-request

  • ping-gateway

  • download-a-file

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

Parameter

Default

Description

INTERFACE

""

specify the interface for test

NFS

"false"

NFS or not

SKIP_INSTALL

"False"

skip the install

CURL

"curl -o"

CURL command needs to end with parameter that names the file in which the downloaded content will be saved

CURL_PACKAGE

"curl"

CURL_PACKAGE is a name of the package that will be installed if SKIP_INSTALL is set to “False”

DHCLIENT

"dhclient -v"

DHCLIENT command will be called in attempt to assign IPv4 address

DHCLIENT_PACKAGE

"isc-dhcp-client"

DHCLIENT_PACKAGE is a name of the package that will be installed if SKIP_INSTALL is set to “False”

Test Steps

cd ./automated/linux/network-basic/
./network-basic.sh -s "${SKIP_INSTALL}" -i "${INTERFACE}" -n "${NFS}" -c "${CURL}" -g "${CURL_PACKAGE}" -d "${DHCLIENT}" -p "${DHCLIENT_PACKAGE}"

Refer to network-basic.yaml for complete test definition and execution details.

Expected Results

  • all commands are executed successfully

References