Skip to content

Test controller as nuget package #7314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,39 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.ResourceManager.Common;
using Microsoft.Azure.Commands.Resources.Test.ScenarioTests;
using Microsoft.Azure.Commands.ScenarioTest;
using Microsoft.Azure.ServiceManagement.Common.Models;
using Microsoft.Azure.Commands.TestFx;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.Profile.Test
{
public class ArgumentCompleterTests : RMTestBase
public class ArgumentCompleterTests : TestRunnerBase
{
private XunitTracingInterceptor xunitLogger;

public ArgumentCompleterTests(ITestOutputHelper output)
public ArgumentCompleterTests(ITestOutputHelper output)
: base(output)
{
TestExecutionHelpers.SetUpSessionAndProfile();
ResourceManagerProfileProvider.InitializeResourceManagerProfile(true);

xunitLogger = new XunitTracingInterceptor(output);
}

[Fact(Skip = "Failure needs investigated. Not returning list of locations.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestLocationCompleter()
{
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-LocationCompleter");
TestRunner.RunTestScript("Test-LocationCompleter");
}

[Fact(Skip = "Failure needs investigated. Cannot bind argument to parameter 'DifferenceObject' because it is null.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestResourceGroupCompleter()
{
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-ResourceGroupCompleter");
TestRunner.RunTestScript("Test-ResourceGroupCompleter");
}

[Fact(Skip = "AzureRM.Resources.ps1 needs Get-AzureRmResource to be implemented")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestResourceIdCompleter()
{
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-ResourceIdCompleter");
TestRunner.RunTestScript("Test-ResourceIdCompleter");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,27 @@
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.ResourceManager.Common;
using Microsoft.Azure.Commands.Resources.Test.ScenarioTests;
using Microsoft.Azure.Commands.ScenarioTest;
using Microsoft.Azure.ServiceManagement.Common.Models;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
using System.Threading;
using Microsoft.Azure.Commands.TestFx;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.Profile.Test
{
public class DefaultCmdletTests : RMTestBase
public class DefaultCmdletTests : TestRunnerBase
{
private XunitTracingInterceptor xunitLogger;

public DefaultCmdletTests(ITestOutputHelper output)
: base(output)
{
TestExecutionHelpers.SetUpSessionAndProfile();
ResourceManagerProfileProvider.InitializeResourceManagerProfile(true);

xunitLogger = new XunitTracingInterceptor(output);
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void DefaultResourceGroup()
{
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-DefaultResourceGroup");
TestRunner.RunTestScript("Test-DefaultResourceGroup");
}
}
}
133 changes: 0 additions & 133 deletions src/ResourceManager/Profile/Commands.Profile.Test/ProfileController.cs

This file was deleted.

Large diffs are not rendered by default.

Loading