Skip to content

Commit 4b31e7e

Browse files
rahulvudutalaMarkLogic Builder
authored andcommitted
DHFPROD-3581: Renaming EntityModels for tests
1 parent a566f85 commit 4b31e7e

File tree

5 files changed

+78
-78
lines changed

5 files changed

+78
-78
lines changed

marklogic-data-hub/src/test/ml-config/databases/final-database.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
{
4747
"scalar-type" : "string",
4848
"namespace-uri" : "",
49-
"localname" : "strNameProp",
49+
"localname" : "stringNameProp",
5050
"collation" : "http://marklogic.com/collation/codepoint",
5151
"range-value-positions" : false,
5252
"invalid-values" : "reject"
5353
},
5454
{
5555
"scalar-type" : "string",
5656
"namespace-uri" : "",
57-
"localname" : "srchEntyProp1",
57+
"localname" : "searchEntityProp1",
5858
"collation" : "http://marklogic.com/collation/codepoint",
5959
"range-value-positions" : false,
6060
"invalid-values" : "reject"
@@ -77,21 +77,21 @@
7777
},
7878
{
7979
"scalar-type": "int",
80-
"path-expression": "//*:instance/NumStringEntity/intProp",
80+
"path-expression": "//*:instance/NumericStringEntity/intProp",
8181
"collation": "",
8282
"range-value-positions": false,
8383
"invalid-values": "reject"
8484
},
8585
{
8686
"scalar-type": "string",
87-
"path-expression": "//*:instance/NumStringEntity/strCityProp",
87+
"path-expression": "//*:instance/NumericStringEntity/stringCityProp",
8888
"collation": "http://marklogic.com/collation/codepoint",
8989
"range-value-positions": false,
9090
"invalid-values": "reject"
9191
},
9292
{
9393
"scalar-type": "string",
94-
"path-expression": "//*:instance/EntitiesSearchEntity/srchEntyProp2",
94+
"path-expression": "//*:instance/EntitySearchEntity/searchEntityProp2",
9595
"collation": "http://marklogic.com/collation/codepoint",
9696
"range-value-positions": false,
9797
"invalid-values": "reject"

marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/data-services/entitySearch/getMatchingPropertyValuesTest.sjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function invokeService(entityTypeId, propertyPath, referenceType, pattern, limit
1515

1616
// Uncomment the tests when DHFPROD-4494 bug is resolved.
1717
/*function testMatchingValuesStartingWithPattern() {
18-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
19-
let propertyPath = "numStrEntityProp/strCityProp";
18+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
19+
let propertyPath = "numericStringEntityProp/stringCityProp";
2020
const result = invokeService(entityTypeId, propertyPath, "path", "doc2", 10);
2121
return [
2222
test.assertEqual(2, result.length),
@@ -26,8 +26,8 @@ function invokeService(entityTypeId, propertyPath, referenceType, pattern, limit
2626
}
2727
2828
function testMatchingValuesWithPatternInBetween() {
29-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
30-
let propertyPath = "numStrEntityProp/strCityProp";
29+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
30+
let propertyPath = "numericStringEntityProp/stringCityProp";
3131
const result = invokeService(entityTypeId, propertyPath, "path", "city", 10);
3232
return [
3333
test.assertEqual(4, result.length),
@@ -39,8 +39,8 @@ function testMatchingValuesWithPatternInBetween() {
3939
}
4040
4141
function testMatchingValuesOnRangePathOneLevelNesting() {
42-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
43-
let propertyPath = "numStrEntityProp/strCityProp";
42+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
43+
let propertyPath = "numericStringEntityProp/stringCityProp";
4444
const result = invokeService(entityTypeId, propertyPath, "path", "city", 10);
4545
return [
4646
test.assertEqual(4, result.length),
@@ -52,8 +52,8 @@ function testMatchingValuesOnRangePathOneLevelNesting() {
5252
}
5353
5454
function testMatchingValuesOnRangePathNoNesting() {
55-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
56-
let propertyPath = "srchEntyProp2";
55+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
56+
let propertyPath = "searchEntityProp2";
5757
const result = invokeService(entityTypeId, propertyPath, "path", "city", 10);
5858
return [
5959
test.assertEqual(2, result.length),
@@ -63,17 +63,17 @@ function testMatchingValuesOnRangePathNoNesting() {
6363
}
6464
6565
function testMatchingValuesWithLimit() {
66-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
67-
let propertyPath = "numStrEntityProp/strCityProp";
66+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
67+
let propertyPath = "numericStringEntityProp/stringCityProp";
6868
const result = invokeService(entityTypeId, propertyPath, "path", "city", 3);
6969
return [
7070
test.assertEqual(3, result.length)
7171
];
7272
}*/
7373

7474
function testMatchingValuesOnRangeElementIndexes() {
75-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
76-
let propertyPath = "strNameProp";
75+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
76+
let propertyPath = "stringNameProp";
7777
const result = invokeService(entityTypeId, propertyPath, "element", "name", 10);
7878
return [
7979
test.assertEqual(4, result.length),
@@ -85,7 +85,7 @@ function testMatchingValuesOnRangeElementIndexes() {
8585
}
8686

8787
function testMatchingValuesOnRangeFieldIndexes() {
88-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
88+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
8989
let propertyPath = "datahubCreatedInFlow";
9090
const result = invokeService(entityTypeId, propertyPath, "field", "flow", 10);
9191
return [

marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/data-services/entitySearch/getMinAndMaxPropertyValuesTest.sjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function invokeService(entityTypeId, propertyPath, referenceType) {
1313

1414
// Uncomment the tests when DHFPROD-4494 bug is resolved.
1515
/*function testMinMaxTwoLevelNesting() {
16-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
17-
let propertyPath = "numStrEntityProp/numEntProp/intProp";
16+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
17+
let propertyPath = "numStrEntityProp/numericEntityProp/intProp";
1818
const result = invokeService(entityTypeId, propertyPath, "path");
1919
return [
2020
test.assertEqual(11, result.min),
@@ -23,8 +23,8 @@ function invokeService(entityTypeId, propertyPath, referenceType) {
2323
}
2424
2525
function testMinMaxOneLevelNesting() {
26-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
27-
let propertyPath = "numStrEntityProp/intProp";
26+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
27+
let propertyPath = "numericStringEntityProp/intProp";
2828
const result = invokeService(entityTypeId, propertyPath, "path");
2929
return [
3030
test.assertEqual(1, result.min),
@@ -33,8 +33,8 @@ function testMinMaxOneLevelNesting() {
3333
}
3434
3535
function testMinMaxLongProperty() {
36-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
37-
let propertyPath = "numStrEntityProp/numEntProp/longProp";
36+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
37+
let propertyPath = "numericStringEntityProp/numericEntityProp/longProp";
3838
const result = invokeService(entityTypeId, propertyPath, "path");
3939
return [
4040
test.assertEqual(110, result.min),
@@ -43,7 +43,7 @@ function testMinMaxLongProperty() {
4343
}*/
4444

4545
function testMinMaxDecimalProperty() {
46-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
46+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
4747
let propertyPath = "decimalProp";
4848
const result = invokeService(entityTypeId, propertyPath, "element");
4949
return [
@@ -53,7 +53,7 @@ function testMinMaxDecimalProperty() {
5353
}
5454

5555
function testMinMaxDoubleProperty() {
56-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
56+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
5757
let propertyPath = "doubleProp";
5858
const result = invokeService(entityTypeId, propertyPath, "element");
5959
return [
@@ -63,7 +63,7 @@ function testMinMaxDoubleProperty() {
6363
}
6464

6565
function testMinMaxFloatProperty() {
66-
let entityTypeId = "http://marklogic.com/EntitiesSearchEntity-0.0.1/EntitiesSearchEntity";
66+
let entityTypeId = "http://marklogic.com/EntitySearchEntity-0.0.1/EntitySearchEntity";
6767
let propertyPath = "floatProp";
6868
const result = invokeService(entityTypeId, propertyPath, "element");
6969
return [

0 commit comments

Comments
 (0)