This commit is contained in:
@@ -562,17 +562,21 @@ namespace AyaNova.Util
|
|||||||
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "OpsAdminLimited", "OpsAdminLimited", KnownUserTags);
|
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "OpsAdminLimited", "OpsAdminLimited", KnownUserTags);
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminFull, UserType.NotService, "OpsAdminFull", "OpsAdminFull", KnownUserTags);
|
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminFull, UserType.NotService, "OpsAdminFull", "OpsAdminFull", KnownUserTags);
|
||||||
|
|
||||||
//PRIVACY TEST USER - this is used for a test to see if user info leaks into the logs
|
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "TEST_PRIVACY_USER_ACCOUNT", "TEST_PRIVACY_USER_ACCOUNT", KnownUserTags);
|
|
||||||
|
|
||||||
//TEST NOT ACTIVE - this is used for a test to see if inactive user can login
|
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, false, "TEST_INACTIVE", "TEST_INACTIVE", 0, KnownUserTags);
|
|
||||||
|
|
||||||
//Alternate translation users for each stock translation
|
//Alternate translation users for each stock translation
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "de", "de", await TranslationBiz.TranslationNameToIdStaticAsync("de"), KnownUserTags);
|
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "de", "de", await TranslationBiz.TranslationNameToIdStaticAsync("de"), KnownUserTags);
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "es", "es", await TranslationBiz.TranslationNameToIdStaticAsync("es"), KnownUserTags);
|
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "es", "es", await TranslationBiz.TranslationNameToIdStaticAsync("es"), KnownUserTags);
|
||||||
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "fr", "fr", await TranslationBiz.TranslationNameToIdStaticAsync("fr"), KnownUserTags);
|
await SeedUserAsync(log, 1, AuthorizationRoles.All, UserType.NotService, true, "fr", "fr", await TranslationBiz.TranslationNameToIdStaticAsync("fr"), KnownUserTags);
|
||||||
|
|
||||||
|
#if(DEBUG)
|
||||||
|
//PRIVACY TEST USER - this is used for a test to see if user info leaks into the logs
|
||||||
|
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, "TEST_PRIVACY_USER_ACCOUNT", "TEST_PRIVACY_USER_ACCOUNT", KnownUserTags);
|
||||||
|
|
||||||
|
//TEST NOT ACTIVE - this is used for a test to see if inactive user can login
|
||||||
|
await SeedUserAsync(log, 1, AuthorizationRoles.OpsAdminLimited, UserType.NotService, false, "TEST_INACTIVE", "TEST_INACTIVE", 0, KnownUserTags);
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
long HeadOfficeIdForCustomer = 0;
|
long HeadOfficeIdForCustomer = 0;
|
||||||
@@ -710,13 +714,13 @@ namespace AyaNova.Util
|
|||||||
/////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////
|
||||||
//Seed some test memos
|
//Seed some test memos
|
||||||
{
|
{
|
||||||
for (int x = 0; x < 100; x++)
|
for (int x = 0; x < 200; x++)
|
||||||
{
|
{
|
||||||
Memo memo = new Memo();
|
Memo memo = new Memo();
|
||||||
memo.Name = Fake.Lorem.Sentence();
|
memo.Name = Fake.Lorem.Sentence();
|
||||||
memo.Notes = Fake.Lorem.Paragraphs();
|
memo.Notes = Fake.Lorem.Paragraphs();
|
||||||
memo.ToId = Fake.Random.Long(1, 15);
|
memo.ToId = Fake.Random.Long(1, 17);
|
||||||
memo.FromId = Fake.Random.Long(1, 15);
|
memo.FromId = Fake.Random.Long(1, 17);
|
||||||
memo.Tags = RandomTags();
|
memo.Tags = RandomTags();
|
||||||
using (AyContext ct = ServiceProviderProvider.DBContext)
|
using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user