This commit is contained in:
2018-09-27 00:02:30 +00:00
parent 3a4aa80838
commit a30d0f11cd
2 changed files with 8 additions and 2 deletions

View File

@@ -37,6 +37,8 @@ IMMEDIATE ITEMS:
- SEEDER
- Is generating non-unique names causing crash due to validation error. Add uniqufication code, maybe just a serial number
- PAINFULLY slow to generate widgets, the db ops are taking orders of magnitude too long, can any db steps be saved??
- Is it an issue if it keeps on working slowly in the background??
- Maybe do it in chunks at a time so that it will properly interleave with other types of data so there is some of everything all at once and slowly adds more
- BUG BUG: 2018-09-26 16:47:34.3677|INFO|Seeder|Seeding 100 user(s)
2018-09-26 16:47:34.4053|INFO|Seeder|Seeding 100 user(s)
2018-09-26 16:47:34.4468|INFO|Seeder|Seeding 20000 Widget(s)

View File

@@ -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();