MXS-1220: Reorganize service resource

The service resource now conforms to the JSON API schema. Added a test
case for individual resources and resource collections.
This commit is contained in:
Markus Mäkelä
2017-05-03 13:55:22 +03:00
parent ca62749f25
commit fb7f283316
2 changed files with 57 additions and 45 deletions

View File

@ -1,3 +1,5 @@
// These tests use the server/test/maxscale_test.cnf configuration
require("../utils.js")()
describe("Resource Collections", function(){
@ -28,6 +30,7 @@ describe("Individual Resources", function(){
var tests = [
"/servers/server1",
"/servers/server2",
"/services/RW-Split-Router",
"/sessions/1",
]