Update test configuration files

Updated the REST API and MaxCtrl configuration files with new object
names. Updated tests with new object names.
This commit is contained in:
Markus Mäkelä
2018-01-19 09:19:32 +02:00
parent f204650bbb
commit ccebf38bc0
13 changed files with 87 additions and 87 deletions

View File

@ -8,7 +8,7 @@ var server = {
parameters: {
port: 3003,
address: "127.0.0.1",
protocol: "MySQLBackend"
protocol: "MariaDBBackend"
}
}
}
@ -71,11 +71,11 @@ describe("Server Relationships", function() {
it("add relationships with `relationships` endpoint", function() {
return request.patch(base_url + "/servers/" + rel_server.data.id + "/relationships/monitors",
{ json: { data: [ { "id": "MySQL-Monitor", "type": "monitors" }]}})
{ json: { data: [ { "id": "MariaDB-Monitor", "type": "monitors" }]}})
.then(() => request.get(base_url + "/servers/" + rel_server.data.id, {json: true}))
.then((res) => {
res.data.relationships.monitors.data.should.have.lengthOf(1)
.that.has.deep.include({ "id": "MySQL-Monitor", "type": "monitors" })
.that.has.deep.include({ "id": "MariaDB-Monitor", "type": "monitors" })
})
});