Remove path from fsentry metadata, make vfs and webdav work again with fixes
This commit is contained in:
22
lib/dav/webdav/factory_test.v
Normal file
22
lib/dav/webdav/factory_test.v
Normal file
@@ -0,0 +1,22 @@
|
||||
module webdav
|
||||
|
||||
import net.http
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import time
|
||||
import freeflowuniverse.herolib.data.ourdb
|
||||
import encoding.base64
|
||||
import rand
|
||||
import os
|
||||
import freeflowuniverse.herolib.vfs.vfs_db
|
||||
|
||||
const testdata_path := os.join_path(os.dir(@FILE), 'testdata')
|
||||
const database_path := os.join_path(testdata_path, 'database')
|
||||
|
||||
fn test_new_server() {
|
||||
mut metadata_db := ourdb.new(path:os.join_path(database_path, 'metadata'))!
|
||||
mut data_db := ourdb.new(path:os.join_path(database_path, 'data'))!
|
||||
mut vfs := vfs_db.new(mut metadata_db, mut data_db)!
|
||||
server := new_server(vfs: vfs, user_db: {
|
||||
'admin': '123'
|
||||
})!
|
||||
}
|
||||
Reference in New Issue
Block a user