No more mount matters in nfs remotes + tests
This commit is contained in:
parent
2451ac3ade
commit
45ec0b9b01
@ -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('@')
|
||||
|
@ -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'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user