Skip to content

Commit 0a9d428

Browse files
committed
Fix GRAPH related integration tests due to
stricter validation on ES's side
1 parent bb1adfa commit 0a9d428

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

paket.lock

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
NUGET
2-
remote: http://api.nuget.org/v3/index.json
3-
specs:
4-
AsciiDocNet (1.0.0-alpha3)
5-
ShellProgressBar (3.0)
62
remote: https://www.nuget.org/api/v2
73
specs:
4+
AsciiDocNet (1.0.0-alpha3)
85
Bogus (3.0.5-beta-2)
96
Newtonsoft.Json (>= 8.0.2) - framework: >= net40, dnx451, dnxcore50
107
System.ComponentModel (>= 4.0.1-beta-23516) - framework: dnxcore50

src/Tests/Framework/Integration/Bootstrappers/Seeder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ public static PropertiesDescriptor<Project> ProjectProperties(PropertiesDescript
152152
)
153153
)
154154
)
155+
.Text(s=>s
156+
.Name(p=>p.Description)
157+
.Fielddata()
158+
)
155159
.Date(d => d
156160
.Name(p => p.StartedOn)
157161
)

src/Tests/XPack/Graph/Explore/GraphExploreApiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected override LazyResponses ClientUsage() => Calls(
4848
vertices = new [] {
4949
new
5050
{
51-
field = "numberOfCommits",
51+
field = "name",
5252
size = 500,
5353
min_doc_count = 20,
5454
shard_min_doc_count = 1,
@@ -79,7 +79,7 @@ protected override LazyResponses ClientUsage() => Calls(
7979
.Connections(cc=>cc
8080
.Query(q=>q.MatchAll())
8181
.Vertices(v=>v
82-
.Vertex(p=>p.NumberOfCommits, gv=>gv
82+
.Vertex(p=>p.Name, gv=>gv
8383
.MinimumDocumentCount(20)
8484
.ShardMinimumDocumentCount(1)
8585
.Size(500)
@@ -118,7 +118,7 @@ protected override LazyResponses ClientUsage() => Calls(
118118
{
119119
new GraphVertexDefinition
120120
{
121-
Field = Field<Project>(p=>p.NumberOfCommits),
121+
Field = Field<Project>(p=>p.Name),
122122
MinimumDocumentCount = 20,
123123
ShardMinimumDocumentCount = 1,
124124
Size = 500,

src/Tests/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mode either u (unit test), i (integration test) or m (mixed mode)
2-
mode: u
2+
mode: m
33
# the elasticsearch version that should be started
44
elasticsearch_version: 5.0.0-alpha1
55
# whether we want to forcefully reseed on the node, if you are starting the tests with a node already running

0 commit comments

Comments
 (0)