From 3efac8bf36d49e6efe98ec108435dec56c575446 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 21 May 2020 19:43:28 +0000 Subject: [PATCH] --- EventLog/EventLog.cs | 14 ++++++++++---- WorkOrder/WorkOrderCrud.cs | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/EventLog/EventLog.cs b/EventLog/EventLog.cs index 5915586..c25c311 100644 --- a/EventLog/EventLog.cs +++ b/EventLog/EventLog.cs @@ -116,6 +116,16 @@ namespace raven_integration } + /// + /// + /// + [Fact] + public async void UserLogWorks() + { + //get admin log, sb lots of shit + ApiResponse a = await Util.GetAsync($"event-log/userlog?UserId=1&Offset=0&Limit=999", await Util.GetTokenAsync("BizAdminFull")); + ((JArray)a.ObjectResponse["data"]["events"]).Count.Should().BeGreaterThan(90); + } @@ -202,10 +212,6 @@ namespace raven_integration + o["objectId"].Value() + o["name"].Value() + o["event"].Value() ); } - - - - } //================================================== diff --git a/WorkOrder/WorkOrderCrud.cs b/WorkOrder/WorkOrderCrud.cs index 7ad7835..e26f4b5 100644 --- a/WorkOrder/WorkOrderCrud.cs +++ b/WorkOrder/WorkOrderCrud.cs @@ -497,7 +497,7 @@ namespace raven_integration Util.ValidateDataReturnResponseOk(a); a = await Util.DeleteAsync("workorder/" + WorkOrderId.ToString(), await Util.GetTokenAsync("manager", "l3tm3in")); - Util.ValidateServerExceptionResponse(a); + Util.ValidateErrorCodeResponse(a, 2200, 400); //now confirm the workorder is still there and with it's children intact //RETRIEVE WORKORDER AND VALIDATE ENTIRE