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 viaostree admin unlock --hotfix
Test Parameters¶
Parameter |
Default |
Description |
---|---|---|
|
|
specify the interface for test |
|
|
NFS or not |
|
|
skip the install |
|
|
CURL command needs to end with parameter that names the file in which the downloaded content will be saved |
|
|
CURL_PACKAGE is a name of the package that will be installed if SKIP_INSTALL is set to “False” |
|
|
DHCLIENT command will be called in attempt to assign IPv4 address |
|
|
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