diff --git a/maxctrl/test/test/server.js b/maxctrl/test/test/server.js index ba7d74224..bf975fc6e 100644 --- a/maxctrl/test/test/server.js +++ b/maxctrl/test/test/server.js @@ -68,7 +68,8 @@ describe("Server Relationships", function() { }); it("remove relationships", function() { - delete rel_server.data["relationships"] + delete rel_server.data.relationships["services"] + delete rel_server.data.relationships["monitors"] return request.patch(base_url + "/servers/" + rel_server.data.id, {json: rel_server}) .should.be.fulfilled }); diff --git a/maxctrl/test/test/service.js b/maxctrl/test/test/service.js index 6f445a120..df49759bc 100644 --- a/maxctrl/test/test/service.js +++ b/maxctrl/test/test/service.js @@ -24,7 +24,8 @@ describe("Service", function() { return request.get(base_url + "/services/RW-Split-Router") .then(function(resp) { var svc = JSON.parse(resp) - delete svc.data.relationships + delete svc.data.relationships["servers"] + delete svc.data.relationships["servers"] return request.patch(base_url + "/services/RW-Split-Router", {json: svc}) }) .then(function(resp) {