Skip to content

Commit 965c624

Browse files
committed
Created a branch to support ES .Net 2.5.8
1 parent 07fd364 commit 965c624

File tree

6 files changed

+13
-79
lines changed

6 files changed

+13
-79
lines changed

src/Elasticsearch.Net.Aws/ElasticSearch.Net.Aws.IntegrationTests/ElasticSearch.Net.Aws.IntegrationTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.*" />
1919
<PackageReference Include="NUnit" Version="3.7.*" />
20-
<PackageReference Include="NEST" Version="6.0.1" />
21-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
20+
<PackageReference Include="NEST" Version="2.5.8" />
2221
<PackageReference Include="NUnit3TestAdapter" Version="3.8.0" />
2322
</ItemGroup>
2423

src/Elasticsearch.Net.Aws/ElasticSearch.Net.Aws.IntegrationTests/PingTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void Ping_should_work()
2020
var pool = new SingleNodeConnectionPool(new Uri(TestConfig.Endpoint));
2121
var config = new ConnectionConfiguration(pool, httpConnection);
2222
var client = new ElasticLowLevelClient(config);
23-
var response = client.Ping<VoidResponse>();
23+
var response = client.Ping<object>();
2424
Assert.AreEqual(200, response.HttpStatusCode.GetValueOrDefault(-1));
2525

2626
}
@@ -44,7 +44,7 @@ public void Random_encoded_url_should_work()
4444
var pool = new SingleNodeConnectionPool(new Uri(TestConfig.Endpoint));
4545
var config = new ConnectionConfiguration(pool, httpConnection);
4646
var client = new ElasticLowLevelClient(config);
47-
var response = client.Get<BytesResponse>(randomString, string.Join(",", Enumerable.Repeat(randomString, 2)), randomString);
47+
var response = client.Get<Stream>(randomString, string.Join(",", Enumerable.Repeat(randomString, 2)), randomString);
4848
Assert.AreEqual(404, response.HttpStatusCode.GetValueOrDefault(-1));
4949
}
5050

@@ -55,7 +55,7 @@ public void Asterisk_encoded_url_should_work()
5555
var pool = new SingleNodeConnectionPool(new Uri(TestConfig.Endpoint));
5656
var config = new ConnectionConfiguration(pool, httpConnection);
5757
var client = new ElasticLowLevelClient(config);
58-
var response = client.Get<BytesResponse>("index*", "type", "id");
58+
var response = client.Get<Stream>("index*", "type", "id");
5959
Assert.AreEqual(404, response.HttpStatusCode.GetValueOrDefault(-1));
6060
}
6161
}

src/Elasticsearch.Net.Aws/ElasticSearch.Net.Aws.IntegrationTests/PostTests.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/Elasticsearch.Net.Aws/ElasticSearch.Net.Aws.Tests/ElasticSearch.Net.Aws.Tests.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,10 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.*" />
1919
<PackageReference Include="NUnit" Version="3.7.*" />
20-
<PackageReference Include="NEST" Version="6.0.1" />
21-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
20+
<PackageReference Include="NEST" Version="2.5.8" />
2221
<PackageReference Include="NUnit3TestAdapter" Version="3.8.0" />
2322
</ItemGroup>
2423

25-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
26-
<PackageReference Include="Elasticsearch.Net" Version="6.0.1" />
27-
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.3.0" />
28-
</ItemGroup>
29-
3024
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
3125
<Reference Include="System" />
3226
<Reference Include="Microsoft.CSharp" />
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>6.1.0</VersionPrefix>
4+
<VersionPrefix>2.5.8</VersionPrefix>
55
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
66
<AssemblyName>Elasticsearch.Net.Aws</AssemblyName>
7-
<PackageId>Elasticsearch.Net.Aws</PackageId>
8-
<PackageVersion>6.1.0</PackageVersion>
7+
<PackageId>bcuff.Elasticsearch.Net.Aws-v2</PackageId>
8+
<PackageVersion>2.5.8</PackageVersion>
99
<Authors>Brandon Cuff</Authors>
1010
<Description>Enables request signing necessary for using the AWS Elasticsearch service.</Description>
1111
<Copyright>Copyright 2015</Copyright>
@@ -14,9 +14,9 @@
1414
<PackageReleaseNotes>Use AWSSDK.Core to get credentials instead of custom code.</PackageReleaseNotes>
1515
<PackageTags>elasticsearch elastic search aws amazon</PackageTags>
1616
<RepositoryUrl>https://github.com/bcuff/elasticsearch-net-aws</RepositoryUrl>
17-
<AssemblyVersion>6.1.0</AssemblyVersion>
18-
<FileVersion>6.1.0</FileVersion>
19-
<Version>6.1.0</Version>
17+
<AssemblyVersion>2.5.8</AssemblyVersion>
18+
<FileVersion>2.5.8</FileVersion>
19+
<Version>2.5.8</Version>
2020
</PropertyGroup>
2121

2222
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
@@ -27,7 +27,7 @@
2727

2828
<ItemGroup>
2929
<PackageReference Include="AWSSDK.Core" Version="3.3.17.9" />
30-
<PackageReference Include="Elasticsearch.Net" Version="6.*" />
30+
<PackageReference Include="Elasticsearch.Net" Version="2.5.*" />
3131
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
3232
</ItemGroup>
3333

@@ -39,8 +39,4 @@
3939
<Reference Include="Microsoft.CSharp" />
4040
</ItemGroup>
4141

42-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
43-
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="1.1.2" />
44-
</ItemGroup>
45-
4642
</Project>

src/Elasticsearch.Net.Aws/Elasticsearch.Net.Aws/SignV4Util.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,9 @@ private static void WriteSignedHeaders(Dictionary<string, string> canonicalHeade
157157
}
158158
}
159159

160-
#if !NETSTANDARD
161160
private static NameValueCollection ParseQueryString(string query) =>
162161
System.Web.HttpUtility.ParseQueryString(query);
163-
#else
164-
private static NameValueCollection ParseQueryString(string query) =>
165-
Microsoft.AspNetCore.WebUtilities.QueryHelpers.ParseQuery(query)
166-
.Aggregate(new NameValueCollection(), (col, kv) =>
167-
{
168-
kv.Value.ToList().ForEach(v => col.Add(kv.Key, v));
169-
return col;
170-
});
171-
#endif
162+
172163
public static string GetCanonicalQueryString(this Uri uri)
173164
{
174165
if (string.IsNullOrWhiteSpace(uri.Query)) return string.Empty;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy