Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.62 KB

test.md

File metadata and controls

59 lines (47 loc) · 1.62 KB

test (data)

note, uses database 'music-class-chat'.

sudo docker exec -it vagrant_mongo_1 mongo

if required

use admin
db.auth('music-class-chat-server','XXX')

then

use music-class-chat
db.Sites.insertOne({
  _id: "test", name: "Test Site", description: "Test and development only",
  admins:[{ email: "[email protected]", password: "",
  enabled: true }]
});
db.Groups.insertOne({
  id: "test1",
  _id: "test/test1", name: "Test Group 1", description: "hand made test 1",
  showpublic: true, requireinitials: true, requirepin: false, 
  requireemail: false, allowselfenrol: true, password: "please", 
  allowguest: true, rewards: [], 
  sid:"test"
});
db.AdminSessions.insertOne({
  admin: "[email protected]", password: "secret",
  sessionkey: "secret12345678", sessionexpires: "2021-12-31T23:59:59.999Z"
});
db.Groups.insertOne({
  id: "haydn",
  _id: "test/haydn", name: "VQCreate (Haydn)", description: "VQCreate test",
  showpublic: true, requireinitials: true, requirepin: false,
  requireemail: false, allowselfenrol: true, password: "please",
  allowguest: true, rewards: [],
  site:{_id:"test", name: "Test Site",
  description: "Test and development only",
  admins:[{ email: "[email protected]", password: "",
  enabled: true }]}
});

try