This commit is contained in:
@@ -11,6 +11,7 @@ namespace raven_integration
|
||||
public class SearchOps
|
||||
{
|
||||
|
||||
//NOTE: this test failed one time for no apparent reason but then was ok afterwards
|
||||
[Fact]
|
||||
public async void PhraseOnlySearchShouldReturnCorrectResultsInOrder()
|
||||
{
|
||||
@@ -19,7 +20,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Search NOTES Test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -32,7 +33,7 @@ namespace raven_integration
|
||||
//CREATE FIRST TEST USER WITH PHRASE IN NAME
|
||||
D = new JObject();
|
||||
D.name = Util.Uniquify("Search NAME DOGS simple Test User");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.notes = "This user has the match in it's name";
|
||||
D.ownerId = 1L;
|
||||
D.active = true;
|
||||
@@ -49,7 +50,7 @@ namespace raven_integration
|
||||
//CREATE A SECOND TEST USER WITH PHRASE IN NOTES
|
||||
D = new JObject();
|
||||
D.name = Util.Uniquify("Search NOTES Test User");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.notes = "This user has the match simple dogs in its notes";
|
||||
D.ownerId = 1L;
|
||||
D.active = true;
|
||||
@@ -66,7 +67,7 @@ namespace raven_integration
|
||||
//CREATE A SECOND WIDGET
|
||||
D = new JObject();
|
||||
D.name = Util.Uniquify("Search NAME simple as in dogs Test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -79,7 +80,7 @@ namespace raven_integration
|
||||
//CREATE A THIRD WIDGET
|
||||
D = new JObject();
|
||||
D.name = Util.Uniquify("Search NO-MATCH THIRD Test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -173,7 +174,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Wildcard startswith search test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -236,7 +237,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Wildcard endswith search test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -301,7 +302,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Wildcard contains search test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -379,7 +380,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("TAG search test WIDGET TAG AND PHRASE");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -396,7 +397,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET WITH TAG BUT NOT SEARCH PHRASE
|
||||
D = new JObject();
|
||||
D.name = Util.Uniquify("TAG search test WIDGET TAG ONLY");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
@@ -540,7 +541,7 @@ namespace raven_integration
|
||||
//CREATE A WIDGET
|
||||
dynamic D = new JObject();
|
||||
D.name = Util.Uniquify("Serial search test WIDGET");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
D.dollarAmount = 1.11m;
|
||||
D.active = true;
|
||||
D.roles = 0;
|
||||
|
||||
Reference in New Issue
Block a user