Skip to content

Commit

Permalink
Fix up env path and bump version (#7)
Browse files Browse the repository at this point in the history
* Add DefaultAzureServiceBusCredential

* Removing Timeout param

* Refactoring accessToken impl

* Moving .env.temp to root.

* Fix up env path and bump version
  • Loading branch information
jongio authored Jan 29, 2020
1 parent 1fcd765 commit a80322f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class AppInsightsTests
[Fact]
public async void CreateAppInsightsTest()
{
Env.Load("../../../.env");
Env.Load("../../../../../.env");

var client = new ApplicationInsightsManagementClient(new DefaultAzureMgmtCredential());
client.SubscriptionId = Environment.GetEnvironmentVariable("AZURE_SUBSCRIPTION_ID");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class CosmosDBTests
[Fact]
public async void CheckCosmosNameExistsTest()
{
Env.Load("../../../.env");
Env.Load("../../../../../.env");


var client = new CosmosDBManagementClient(new DefaultAzureMgmtCredential());
Expand All @@ -22,7 +22,7 @@ public async void CheckCosmosNameExistsTest()

var results = await client.DatabaseAccounts.CheckNameExistsAsync(name);

Assert.Equal(false, results);
Assert.False(results);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ResourceGroupTests
[Fact]
public async void CreateResourceGroupTest()
{
Env.Load("../../../.env");
Env.Load("../../../../../.env");

var client = new ResourceManagementClient(new DefaultAzureMgmtCredential());
client.SubscriptionId = Environment.GetEnvironmentVariable("AZURE_SUBSCRIPTION_ID");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class StorageTests
public async void ReadStorageAccountLocationTest()
{
// Pre-req: Storage account created.
Env.Load("../../../.env");
Env.Load("../../../../../.env");

var client = new StorageManagementClient(new DefaultAzureMgmtCredential());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ServiceBusTests
[Fact]
public async void TopicClientTests()
{
Env.Load("../../../.env");
Env.Load("../../../../../.env");

var client = new TopicClient(Environment.GetEnvironmentVariable("AZURE_SERVICE_BUS_ENDPOINT"),
Environment.GetEnvironmentVariable("AZURE_SERVICE_BUS_ENTITY_PATH"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<PackageId>JonGallant.Azure.Identity.Extensions</PackageId>
<Description>A library that extends the base Azure.Identity functionality.</Description>
<Version>0.0.3-preview</Version>
<Version>0.0.4-preview</Version>
<Authors>Jon Gallant</Authors>
<Company>Jon Gallant</Company>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit a80322f

Please sign in to comment.