Skip to content

Commit ee0f0d8

Browse files
committed
All but 1 1.1 yaml test fail, this is due to the order in which the properties are stated in the yaml test source, not because of an error in the client. Should not block the beta
1 parent 51f9e3d commit ee0f0d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CodeGeneration/CodeGeneration.YamlTestsRunner/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static string SerializeToAnonymousObject(this object o, string indentatio
134134
anon = Regex.Replace(anon, @"(index|discovery)\.([^=]+)=([^\r\n,]+)", " { \"$1.$2\", $3 }", RegexOptions.Multiline);
135135
anon = Regex.Replace(anon, @"new \{(\r\n\s+\{ "")(index|discovery)", "new Dictionary<string, object> {$1$2", RegexOptions.Multiline);
136136

137-
anon = Regex.Replace(anon, @"= (""?$)(.+)(""| )", "= $1", RegexOptions.Multiline);
137+
anon = Regex.Replace(anon, @"= (""?\$)(.+)(""| )", "= $2", RegexOptions.Multiline);
138138
return anon;
139139
}
140140

src/Tests/Elasticsearch.Net.Integration.Yaml/cluster.reroute/11_explain.yaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void ExplainApiForNonExistantNodeShard3Test()
7777
cancel= new {
7878
index= "test_index",
7979
shard= "9",
80-
node= "$node_id"
80+
node= node_id
8181
}
8282
}
8383
}
@@ -94,7 +94,7 @@ public void ExplainApiForNonExistantNodeShard3Test()
9494
this.IsMatch(_response.explanations[0].parameters, new {
9595
index= "test_index",
9696
shard= "9",
97-
node= "$node_id",
97+
node= node_id,
9898
allow_primary= "false"
9999
});
100100

0 commit comments

Comments
 (0)