Skip to content
Snippets Groups Projects
Commit b3ba90b6 authored by Bjørnar Østtveit's avatar Bjørnar Østtveit
Browse files

update db info

parent f8e8e938
Branches
No related tags found
No related merge requests found
Pipeline #23002 passed
...@@ -6,10 +6,10 @@ const runsqlfile = require("./runsqlfile.js"); ...@@ -6,10 +6,10 @@ const runsqlfile = require("./runsqlfile.js");
// GitLab CI Pool // GitLab CI Pool
var pool = mysql.createPool({ var pool = mysql.createPool({
connectionLimit: 1, connectionLimit: 1,
host: "mysql", host: "mysql.stud.iie.ntnu.no",
user: "root", user: "bjornost",
password: "secret", password: "nvS3wCdX",
database: "supertestdb", database: "bjornost",
debug: false, debug: false,
multipleStatements: true multipleStatements: true
}); });
...@@ -86,7 +86,7 @@ test("Update a person", done =>{ ...@@ -86,7 +86,7 @@ test("Update a person", done =>{
expect(data.affectedRows).toBeGreaterThanOrEqual(1); expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done(); done();
} }
personDao.updateOne({navn: "Stian Ådnanes", alder:20, adresse: "Gate 4",id : 2}, personDao.updateOne({navn: "Bjørnar Østtveit", alder:19, adresse: "Gate ?",id : 2},
callback callback
); );
}); });
...@@ -99,7 +99,7 @@ test("Delete a person", done =>{ ...@@ -99,7 +99,7 @@ test("Delete a person", done =>{
expect(data.affectedRows).toBeGreaterThanOrEqual(1); expect(data.affectedRows).toBeGreaterThanOrEqual(1);
done(); done();
} }
personDao.deleteOne({id: 100}, personDao.deleteOne({id: 1},
callback callback
); );
}); });
...@@ -9,9 +9,9 @@ const PersonDao = require("./dao/persondao.js"); ...@@ -9,9 +9,9 @@ const PersonDao = require("./dao/persondao.js");
var pool = mysql.createPool({ var pool = mysql.createPool({
connectionLimit: 2, connectionLimit: 2,
host: "mysql.stud.iie.ntnu.no", host: "mysql.stud.iie.ntnu.no",
user: "nilstesd", user: "bjornost",
password: "lqqWcMzq", password: "nvS3wCdX",
database: "nilstesd", database: "bjornost",
debug: false debug: false
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment