Skip to content

Commit 9e74167

Browse files
author
Hovsep Mkrtchyan
committed
Fixing Websites.GetAzureWebsiteTests.ProcessGetWebsiteWithNullSubscription test failure
1 parent b1e6c75 commit 9e74167

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ServiceManagement/Services/Commands.Test/Websites/GetAzureWebSiteTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Common.Authentication;
1516
using Microsoft.Azure.Common.Authentication.Models;
1617
using Microsoft.WindowsAzure.Commands.Common.Properties;
1718
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -24,6 +25,7 @@
2425
using Moq;
2526
using System;
2627
using System.Collections.Generic;
28+
using System.IO;
2729
using System.Linq;
2830
using Xunit;
2931

@@ -130,6 +132,10 @@ public void GetWebsiteProcessShowTest()
130132
[Fact]
131133
public void ProcessGetWebsiteWithNullSubscription()
132134
{
135+
currentProfile = new AzureProfile(Path.Combine(AzureSession.ProfileDirectory, AzureSession.ProfileFile));
136+
currentProfile.Subscriptions.Clear();
137+
currentProfile.Save();
138+
133139
// Test
134140
var getAzureWebsiteCommand = new GetAzureWebsiteCommand
135141
{

0 commit comments

Comments
 (0)