Skip to content

Commit

Permalink
Update Nuget package properties (#19)
Browse files Browse the repository at this point in the history
Also Give a reason when tests fail due to missing env var
  • Loading branch information
dlstucki authored Nov 25, 2019
1 parent d99cd26 commit 73451d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
<PropertyGroup>
<Description>ASP.NET Core HTTP server that uses Azure Relay.</Description>
<Authors>Microsoft</Authors>
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore;weblistener;AzureRelay</PackageTags>
<PackageReleaseNotes>https://github.com/Azure/azure-relay-aspnetserver/releases</PackageReleaseNotes>
<PackageTags>aspnetcore;weblistener;AzureRelay;Azure;Relay;AspNet;Hybrid Connection;HybridConnection;ServiceBus;Service Bus</PackageTags>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIconUrl>https://raw.githubusercontent.com/Azure/azure-relay-dotnet/master/relay.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/Azure/azure-relay-aspnetserver</PackageProjectUrl>
<IsPackable>True</IsPackable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ internal static MessagePump CreateServer(string url, string path, RequestDelegat
internal static TokenProvider CreateTokenProvider()
{
var connectionString = Environment.GetEnvironmentVariable("RELAY_TEST_CONNECTIONSTRING_NOAUTH");

Assert.NotNull(connectionString);
Assert.False(string.IsNullOrEmpty(connectionString));
Assert.False(string.IsNullOrEmpty(connectionString), "RELAY_TEST_CONNECTIONSTRING_NOAUTH must be set");

var cb = new RelayConnectionStringBuilder(connectionString);
if (!string.IsNullOrEmpty(cb.SharedAccessSignature))
{
Expand All @@ -120,9 +119,8 @@ internal static TokenProvider CreateTokenProvider()
internal static string GetRelayUrl()
{
var connectionString = Environment.GetEnvironmentVariable("RELAY_TEST_CONNECTIONSTRING_NOAUTH");
Assert.False(string.IsNullOrEmpty(connectionString), "RELAY_TEST_CONNECTIONSTRING_NOAUTH must be set");

Assert.NotNull(connectionString);
Assert.False(string.IsNullOrEmpty(connectionString));
var cb = new RelayConnectionStringBuilder(connectionString);

Assert.NotNull(connectionString);
Expand Down

0 comments on commit 73451d1

Please sign in to comment.