Skip to content

Commit

Permalink
Fixes #118 Add nfs-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored and praveenkumar committed Jul 20, 2017
1 parent 481e600 commit 09d2bcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions centos-7.template
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ syslinux
hyperv-daemons
cifs-utils
fuse-sshfs
nfs-utils

#Packages to be removed
-aic94xx-firmware
Expand Down
1 change: 1 addition & 0 deletions rhel-7.template
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ hyperv-daemons
cifs-utils
cdk-entitlements
fuse-sshfs
nfs-utils

#Packages to be removed
-aic94xx-firmware
Expand Down
10 changes: 8 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,18 @@ def test_docker_env_evaluable(self):
def test_cifs_installed(self):
cmd = self.bin_dir + "minishift ssh 'sudo /sbin/mount.cifs -V'"
output = self.execute_test({ 'cmd': cmd })
self.assertEqual('mount.cifs version: 6.2', output.rstrip())
self.assertEqual(output.rstrip(), 'mount.cifs version: 6.2')

def test_sshfs_installed(self):
cmd = self.bin_dir + "minishift ssh 'sudo sshfs -V'"
output = self.execute_test({ 'cmd': cmd })
self.assertRegexpMatches(output.rstrip(), r'.*SSHFS version 2\.5.*')

def test_nfs_installed(self):
cmd = self.bin_dir + "minishift ssh 'sudo /sbin/mount.nfs -V'"
output = self.execute_test({ 'cmd': cmd })
self.assertEqual(output.rstrip(), 'mount.nfs: (linux nfs-utils 1.3.0)')

def test_stopping_vm(self):
''' Test stopping machine '''
cmd = self.bin_dir + "minishift stop"
Expand All @@ -81,7 +86,8 @@ def test_stopping_vm(self):

def test_swapspace(self):
''' Test if swap space is available on restart '''
cmd = self.bin_dir + "minishift start"
start_args = (self.driver_name, "file://" + self.iso_file)
cmd = self.bin_dir + "minishift start --vm-driver %s --iso-url %s" % start_args
self.execute_test({ 'cmd': cmd })

# Check swap space
Expand Down

0 comments on commit 09d2bcb

Please sign in to comment.