D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
augeas
/
lenses
/
dist
/
tests
/
Filename :
test_mongodbserver.aug
back
Copy
(* Module: Test_MongoDBServer Provides unit tests and examples for the <MongoDBServer> lens. *) module Test_MongoDBServer = (* Variable: conf *) let conf = "port = 27017 fork = true pidfilepath = /var/run/mongodb/mongodb.pid logpath = /var/log/mongodb/mongodb.log dbpath =/var/lib/mongodb journal = true nohttpinterface = true " (* Test: MongoDBServer.lns *) test MongoDBServer.lns get conf = { "port" = "27017" } { "fork" = "true" } { "pidfilepath" = "/var/run/mongodb/mongodb.pid" } { "logpath" = "/var/log/mongodb/mongodb.log" } { "dbpath" = "/var/lib/mongodb" } { "journal" = "true" } { "nohttpinterface" = "true" } (* Test: MongoDBServer.lns Values have to be without quotes *) test MongoDBServer.lns get "port = 27017\n" = { "port" = "27017" }