This commit is contained in:
@@ -37,8 +37,12 @@ namespace raven_integration
|
||||
|
||||
ApiResponse EventLogResponse = await Util.GetAsync($"EventLog/ObjectLog?AyType=2&AyId={w2Id}", await Util.GetTokenAsync("BizAdminFull"));
|
||||
Util.ValidateHTTPStatusCode(EventLogResponse, 200);
|
||||
((JArray)EventLogResponse.ObjectResponse["result"]).Count.Should().Be(1);//only one event so far
|
||||
EventLogResponse.ObjectResponse["result"][0]["date"].Value<DateTime>().Should().BeLessThan(new TimeSpan(1, 0, 0)).Before(DateTime.UtcNow);//should be less than one hour before now
|
||||
|
||||
TODO: failing here, for no reason that makes any sense it thinks there are two created events by two users for the same widget.
|
||||
|
||||
|
||||
((JArray)EventLogResponse.ObjectResponse["result"]).Count.Should().Be(1);//only one event so far
|
||||
EventLogResponse.ObjectResponse["result"][0]["date"].Value<DateTime>().Should().BeLessThan(new TimeSpan(1, 0, 0)).Before(DateTime.UtcNow);//should be less than one hour before now
|
||||
EventLogResponse.ObjectResponse["result"][0]["userId"].Should().NotBeNull();
|
||||
EventLogResponse.ObjectResponse["result"][0]["event"].Value<int>().Should().Be(1);//AyEvent 1 = created
|
||||
EventLogResponse.ObjectResponse["result"][0]["textra"].Should().BeNullOrEmpty();
|
||||
|
||||
Reference in New Issue
Block a user