tests: remove basic/NetworkScripts test
The functionality is now moved to external tests in
Also we no longer need to exclude the test on s390x as the
files mentioned in
don't exist anymore in /etc/sysconfig/network-scripts/ on s390x
in RHCOS.
@@ -4,8 +4,6 @@ import (
"bytes"
"encoding/json"
"fmt"
- "io/ioutil"
- "os"
"os/exec"
"strconv"
"strings"
@@ -49,7 +47,6 @@ func init() {
NativeFuncs: map[string]register.NativeFuncWrap{
"PortSSH": register.CreateNativeFuncWrap(TestPortSsh),
"DbusPerms": register.CreateNativeFuncWrap(TestDbusPerms),
- "NetworkScripts": register.CreateNativeFuncWrap(TestNetworkScripts, []string{"s390x"}...),
"ServicesActive": register.CreateNativeFuncWrap(TestServicesActive),
"ReadOnly": register.CreateNativeFuncWrap(TestReadOnlyFs),
"Useradd": register.CreateNativeFuncWrap(TestUseradd),
@@ -248,21 +245,6 @@ func TestReadOnlyFs() error {
return fmt.Errorf("could not find /usr or / mount points.")
}
-func TestNetworkScripts() error {
- networkScriptsDir := "/etc/sysconfig/network-scripts"
- entries, err := ioutil.ReadDir(networkScriptsDir)
- if err != nil {
- if !os.IsNotExist(err) {
- return err
- }
- return nil
- }
- if len(entries) > 0 {
- return fmt.Errorf("Found content in %s", networkScriptsDir)
- }
- return nil
-}
-
// Test that the root disk's GUID was set to a random one on first boot.
func TestFsRandomUUID() error {
c := exec.Command("sh", "-ec", "sudo blkid -o value -s PTUUID /dev/$(lsblk -no PKNAME $(findmnt -vno SOURCE /))")
