No more mount matters in nfs remotes + tests

This commit is contained in:
Fabrice Marsaud 2016-06-08 15:05:09 +02:00
parent 2451ac3ade
commit 45ec0b9b01
2 changed files with 10 additions and 3 deletions

View File

@ -14,10 +14,9 @@ export const parse = string => {
object.path = `/${trimStart(rest, '/')}` // the leading slash has been forgotten on client side first implementation
} else if (type === 'nfs') {
object.type = 'nfs'
const [host, share] = rest.split(':')
object.path = `/tmp/xo-server/mounts/${object.id}`
const [host, path] = rest.split(':')
object.host = host
object.share = share
object.path = path
} else if (type === 'smb') {
object.type = 'smb'
const lastAtSign = rest.lastIndexOf('@')

View File

@ -28,6 +28,14 @@ const data = deepFreeze({
username: 'Administrator',
password: 'pas:sw@ord'
}
},
NFS: {
string: 'nfs://192.168.100.225:media/nfs',
object: {
type: 'nfs',
host: '192.168.100.225',
path: 'media/nfs'
}
}
})