Skip to content

Commit 55c6abd

Browse files
committed
Use exactly representable float numbers for tests
1 parent c145975 commit 55c6abd

File tree

34 files changed

+1052
-110
lines changed

34 files changed

+1052
-110
lines changed

src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json

+942
Large diffs are not rendered by default.

tests/Tests.ClusterLauncher/packages.lock.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@
29312931
"elastic.clients.elasticsearch": {
29322932
"type": "Project",
29332933
"dependencies": {
2934-
"Elastic.Transport": "[0.4.12, )"
2934+
"Elastic.Transport": "[0.4.14, )"
29352935
}
29362936
},
29372937
"elastic.clients.elasticsearch.jsonnetserializer": {
@@ -2944,15 +2944,15 @@
29442944
"tests.configuration": {
29452945
"type": "Project",
29462946
"dependencies": {
2947-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
2947+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
29482948
}
29492949
},
29502950
"tests.core": {
29512951
"type": "Project",
29522952
"dependencies": {
29532953
"DiffPlex": "[1.4.1, )",
29542954
"Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )",
2955-
"Elastic.Elasticsearch.Xunit": "[0.4.1, )",
2955+
"Elastic.Elasticsearch.Xunit": "[0.4.3, )",
29562956
"FluentAssertions": "[5.10.3, )",
29572957
"JunitXml.TestLogger": "[3.0.110, )",
29582958
"Microsoft.Bcl.HashCode": "[1.1.1, )",
@@ -2969,7 +2969,7 @@
29692969
"dependencies": {
29702970
"Bogus": "[22.1.2, )",
29712971
"Elastic.Clients.Elasticsearch": "[8.0.0, )",
2972-
"Elastic.Elasticsearch.Managed": "[0.4.1, )",
2972+
"Elastic.Elasticsearch.Managed": "[0.4.3, )",
29732973
"Newtonsoft.Json": "[13.0.1, )",
29742974
"Tests.Configuration": "[8.0.0, )"
29752975
}
@@ -3068,45 +3068,45 @@
30683068
},
30693069
"Elastic.Elasticsearch.Ephemeral": {
30703070
"type": "Transitive",
3071-
"resolved": "0.4.1",
3072-
"contentHash": "zsqa3+N1gVMVr7YHMDRFh7dM0NfQDEIHFgVugbd9B4Bc6rApCM++c1MIAIeJoVgY9ohiaTxkjAyaTgwgyIZsrg==",
3071+
"resolved": "0.4.3",
3072+
"contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==",
30733073
"dependencies": {
3074-
"Elastic.Elasticsearch.Managed": "0.4.1",
3074+
"Elastic.Elasticsearch.Managed": "0.4.3",
30753075
"SharpZipLib.NETStandard": "1.0.7"
30763076
}
30773077
},
30783078
"Elastic.Elasticsearch.Managed": {
30793079
"type": "Transitive",
3080-
"resolved": "0.4.1",
3081-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
3080+
"resolved": "0.4.3",
3081+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
30823082
"dependencies": {
3083-
"Elastic.Stack.ArtifactsApi": "0.4.1",
3083+
"Elastic.Stack.ArtifactsApi": "0.4.3",
30843084
"Proc": "0.6.1",
30853085
"System.Net.Http": "4.3.1"
30863086
}
30873087
},
30883088
"Elastic.Elasticsearch.Xunit": {
30893089
"type": "Transitive",
3090-
"resolved": "0.4.1",
3091-
"contentHash": "yROS79fuUbstKoGAVuhRE/x7EbLzCxCUV4Pcik8fXiqWupzfEAzSez+kxhKE2sRcvMN+UUKiqCwsMrjgY0hbIg==",
3090+
"resolved": "0.4.3",
3091+
"contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==",
30923092
"dependencies": {
3093-
"Elastic.Elasticsearch.Ephemeral": "0.4.1",
3093+
"Elastic.Elasticsearch.Ephemeral": "0.4.3",
30943094
"xunit": "2.4.1"
30953095
}
30963096
},
30973097
"Elastic.Stack.ArtifactsApi": {
30983098
"type": "Transitive",
3099-
"resolved": "0.4.1",
3100-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
3099+
"resolved": "0.4.3",
3100+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
31013101
"dependencies": {
31023102
"SemanticVersioning": "0.8.0",
31033103
"System.Text.Json": "4.6.0"
31043104
}
31053105
},
31063106
"Elastic.Transport": {
31073107
"type": "Transitive",
3108-
"resolved": "0.4.12",
3109-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
3108+
"resolved": "0.4.14",
3109+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
31103110
"dependencies": {
31113111
"Microsoft.CSharp": "4.7.0",
31123112
"System.Buffers": "4.5.1",

tests/Tests.Configuration/packages.lock.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
},
1717
"Elastic.Elasticsearch.Managed": {
1818
"type": "Direct",
19-
"requested": "[0.4.1, )",
20-
"resolved": "0.4.1",
21-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
19+
"requested": "[0.4.3, )",
20+
"resolved": "0.4.3",
21+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
2222
"dependencies": {
23-
"Elastic.Stack.ArtifactsApi": "0.4.1",
23+
"Elastic.Stack.ArtifactsApi": "0.4.3",
2424
"Proc": "0.6.1",
2525
"System.Net.Http": "4.3.1"
2626
}
@@ -36,8 +36,8 @@
3636
},
3737
"Elastic.Stack.ArtifactsApi": {
3838
"type": "Transitive",
39-
"resolved": "0.4.1",
40-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
39+
"resolved": "0.4.3",
40+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
4141
"dependencies": {
4242
"SemanticVersioning": "0.8.0",
4343
"System.Text.Json": "4.6.0"

tests/Tests.Core/packages.lock.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"Elastic.Elasticsearch.Xunit": {
2727
"type": "Direct",
28-
"requested": "[0.4.1, )",
29-
"resolved": "0.4.1",
30-
"contentHash": "yROS79fuUbstKoGAVuhRE/x7EbLzCxCUV4Pcik8fXiqWupzfEAzSez+kxhKE2sRcvMN+UUKiqCwsMrjgY0hbIg==",
28+
"requested": "[0.4.3, )",
29+
"resolved": "0.4.3",
30+
"contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==",
3131
"dependencies": {
32-
"Elastic.Elasticsearch.Ephemeral": "0.4.1",
32+
"Elastic.Elasticsearch.Ephemeral": "0.4.3",
3333
"xunit": "2.4.1"
3434
}
3535
},
@@ -128,36 +128,36 @@
128128
},
129129
"Elastic.Elasticsearch.Ephemeral": {
130130
"type": "Transitive",
131-
"resolved": "0.4.1",
132-
"contentHash": "zsqa3+N1gVMVr7YHMDRFh7dM0NfQDEIHFgVugbd9B4Bc6rApCM++c1MIAIeJoVgY9ohiaTxkjAyaTgwgyIZsrg==",
131+
"resolved": "0.4.3",
132+
"contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==",
133133
"dependencies": {
134-
"Elastic.Elasticsearch.Managed": "0.4.1",
134+
"Elastic.Elasticsearch.Managed": "0.4.3",
135135
"SharpZipLib.NETStandard": "1.0.7"
136136
}
137137
},
138138
"Elastic.Elasticsearch.Managed": {
139139
"type": "Transitive",
140-
"resolved": "0.4.1",
141-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
140+
"resolved": "0.4.3",
141+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
142142
"dependencies": {
143-
"Elastic.Stack.ArtifactsApi": "0.4.1",
143+
"Elastic.Stack.ArtifactsApi": "0.4.3",
144144
"Proc": "0.6.1",
145145
"System.Net.Http": "4.3.1"
146146
}
147147
},
148148
"Elastic.Stack.ArtifactsApi": {
149149
"type": "Transitive",
150-
"resolved": "0.4.1",
151-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
150+
"resolved": "0.4.3",
151+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
152152
"dependencies": {
153153
"SemanticVersioning": "0.8.0",
154154
"System.Text.Json": "4.6.0"
155155
}
156156
},
157157
"Elastic.Transport": {
158158
"type": "Transitive",
159-
"resolved": "0.4.12",
160-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
159+
"resolved": "0.4.14",
160+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
161161
"dependencies": {
162162
"Microsoft.CSharp": "4.7.0",
163163
"System.Buffers": "4.5.1",
@@ -689,7 +689,7 @@
689689
"elastic.clients.elasticsearch": {
690690
"type": "Project",
691691
"dependencies": {
692-
"Elastic.Transport": "[0.4.12, )"
692+
"Elastic.Transport": "[0.4.14, )"
693693
}
694694
},
695695
"elastic.clients.elasticsearch.jsonnetserializer": {
@@ -702,15 +702,15 @@
702702
"tests.configuration": {
703703
"type": "Project",
704704
"dependencies": {
705-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
705+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
706706
}
707707
},
708708
"tests.domain": {
709709
"type": "Project",
710710
"dependencies": {
711711
"Bogus": "[22.1.2, )",
712712
"Elastic.Clients.Elasticsearch": "[8.0.0, )",
713-
"Elastic.Elasticsearch.Managed": "[0.4.1, )",
713+
"Elastic.Elasticsearch.Managed": "[0.4.3, )",
714714
"Newtonsoft.Json": "[13.0.1, )",
715715
"Tests.Configuration": "[8.0.0, )"
716716
}

tests/Tests.Domain/packages.lock.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"Elastic.Elasticsearch.Managed": {
2424
"type": "Direct",
25-
"requested": "[0.4.1, )",
26-
"resolved": "0.4.1",
27-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
25+
"requested": "[0.4.3, )",
26+
"resolved": "0.4.3",
27+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
2828
"dependencies": {
29-
"Elastic.Stack.ArtifactsApi": "0.4.1",
29+
"Elastic.Stack.ArtifactsApi": "0.4.3",
3030
"Proc": "0.6.1",
3131
"System.Net.Http": "4.3.1"
3232
}
@@ -48,17 +48,17 @@
4848
},
4949
"Elastic.Stack.ArtifactsApi": {
5050
"type": "Transitive",
51-
"resolved": "0.4.1",
52-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
51+
"resolved": "0.4.3",
52+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
5353
"dependencies": {
5454
"SemanticVersioning": "0.8.0",
5555
"System.Text.Json": "4.6.0"
5656
}
5757
},
5858
"Elastic.Transport": {
5959
"type": "Transitive",
60-
"resolved": "0.4.12",
61-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
60+
"resolved": "0.4.14",
61+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
6262
"dependencies": {
6363
"Microsoft.CSharp": "4.7.0",
6464
"System.Buffers": "4.5.1",
@@ -251,13 +251,13 @@
251251
"elastic.clients.elasticsearch": {
252252
"type": "Project",
253253
"dependencies": {
254-
"Elastic.Transport": "[0.4.12, )"
254+
"Elastic.Transport": "[0.4.14, )"
255255
}
256256
},
257257
"tests.configuration": {
258258
"type": "Project",
259259
"dependencies": {
260-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
260+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
261261
}
262262
}
263263
},

tests/Tests/QueryDsl/Compound/FunctionScoreQueryUsageTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static FunctionScore GetScriptScoreFunction()
5151
protected override Query QueryInitializer => new FunctionScoreQuery
5252
{
5353
QueryName = "named_query",
54-
Boost = 1.1f,
54+
Boost = 1.25f,
5555
Query = new MatchAllQuery(),
5656
BoostMode = FunctionBoostMode.Multiply,
5757
ScoreMode = FunctionScoreMode.Sum,
@@ -71,7 +71,7 @@ protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project>
7171
queryDescriptor
7272
.FunctionScore(c => c
7373
.QueryName("named_query")
74-
.Boost(1.1f)
74+
.Boost(1.25f)
7575
.Query(qq => qq.MatchAll())
7676
.BoostMode(FunctionBoostMode.Multiply)
7777
.ScoreMode(FunctionScoreMode.Sum)

tests/Tests/QueryDsl/Geo/GeoBoundingBoxQueryUsageTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GeoBoundingBoxQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : b
1515

1616
protected override Query QueryInitializer => new GeoBoundingBoxQuery
1717
{
18-
Boost = 1.1f,
18+
Boost = 1.25f,
1919
QueryName = "named_query",
2020
Field = Infer.Field<Project>(p => p.LocationPoint),
2121
BoundingBox = new TopLeftBottomRightGeoBounds
@@ -29,7 +29,7 @@ public GeoBoundingBoxQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : b
2929

3030
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) => queryDescriptor
3131
.GeoBoundingBox(g => g
32-
.Boost(1.1f)
32+
.Boost(1.25f)
3333
.QueryName("named_query")
3434
.Field(p => p.LocationPoint)
3535
.BoundingBox(new TopLeftBottomRightGeoBounds

tests/Tests/QueryDsl/Geo/GeoDistanceQueryUsageTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public GeoDistanceQueryUsageTests(ReadOnlyCluster cluster, EndpointUsage usage)
1717

1818
protected override Query QueryInitializer => new GeoDistanceQuery
1919
{
20-
Boost = 1.1f,
20+
Boost = 1.25f,
2121
QueryName = "named_query",
2222
Field = Infer.Field<Project>(p => p.LocationPoint),
2323
DistanceType = GeoDistanceType.Arc,
@@ -29,7 +29,7 @@ public GeoDistanceQueryUsageTests(ReadOnlyCluster cluster, EndpointUsage usage)
2929
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) =>
3030
queryDescriptor
3131
.GeoDistance(g => g
32-
.Boost(1.1f)
32+
.Boost(1.25f)
3333
.QueryName("named_query")
3434
.Field(p => p.LocationPoint)
3535
.DistanceType(GeoDistanceType.Arc)

tests/Tests/QueryDsl/Geo/GeoPolygonQueryUsageTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GeoPolygonQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(
1515

1616
protected override Query QueryInitializer => new GeoPolygonQuery
1717
{
18-
Boost = 1.1f,
18+
Boost = 1.25f,
1919
QueryName = "named_query",
2020
ValidationMethod = GeoValidationMethod.Strict,
2121
Polygon = new GeoPolygonPoints
@@ -34,7 +34,7 @@ public GeoPolygonQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(
3434
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) => queryDescriptor
3535
.GeoPolygon(c => c
3636
.QueryName("named_query")
37-
.Boost(1.1f)
37+
.Boost(1.25f)
3838
.Field(p => p.LocationPoint)
3939
.ValidationMethod(GeoValidationMethod.Strict)
4040
.Polygon(p => p.Points(new[]

tests/Tests/QueryDsl/Specialized/PinnedQueryUsageTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected override Query QueryInitializer
2020
var query = PinnedQuery.Ids(new Id[] { 1, 11, 22 });
2121

2222
query.QueryName = "named_query";
23-
query.Boost = 1.1f;
23+
query.Boost = 1.25f;
2424
query.Organic = new MatchAllQuery { QueryName = "organic_query" };
2525

2626
return query;
@@ -35,7 +35,7 @@ protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project>
3535
var query = PinnedQuery.Ids(new Id[] { 1, 11, 22 });
3636

3737
query.QueryName = "named_query";
38-
query.Boost = 1.1f;
38+
query.Boost = 1.25f;
3939
query.Organic = new MatchAllQuery { QueryName = "organic_query" };
4040

4141
return queryDescriptor.Pinned(query);

0 commit comments

Comments
 (0)