MXS-1929: Update unit tests with monitor changes
The user is a mandatory parameter and needs to be passed when a monitor is created.
This commit is contained in:
@ -1,16 +1,21 @@
|
||||
require("../utils.js")()
|
||||
|
||||
var monitor = {
|
||||
data: {
|
||||
id: "test-monitor",
|
||||
type: "monitors",
|
||||
attributes: {
|
||||
module: "mysqlmon"
|
||||
describe("Monitor", function() {
|
||||
|
||||
var monitor = {
|
||||
data: {
|
||||
id: "test-monitor",
|
||||
type: "monitors",
|
||||
attributes: {
|
||||
module: "mysqlmon",
|
||||
parameters: {
|
||||
user: "maxuser",
|
||||
password: "maxpwd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
describe("Monitor", function() {
|
||||
before(startMaxScale)
|
||||
|
||||
it("create new monitor", function() {
|
||||
@ -42,6 +47,20 @@ describe("Monitor", function() {
|
||||
describe("Monitor Relationships", function() {
|
||||
before(startMaxScale)
|
||||
|
||||
var monitor = {
|
||||
data: {
|
||||
id: "test-monitor",
|
||||
type: "monitors",
|
||||
attributes: {
|
||||
module: "mysqlmon",
|
||||
parameters: {
|
||||
user: "maxuser",
|
||||
password: "maxpwd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
it("create new monitor", function() {
|
||||
return request.post(base_url + "/monitors/", {json: monitor})
|
||||
.should.be.fulfilled
|
||||
|
Reference in New Issue
Block a user