Skip to content

[0.12.0] NetCore initial test projects #6281

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 280 commits into from
Jun 5, 2018

Conversation

MiYanni
Copy link
Contributor

@MiYanni MiYanni commented May 23, 2018

Description

This is the initial implementation of the scenario test projects running on NetCore. Most of the 'core' projects have been implemented. Several tests are skipped (reason indicated in the Skip property). Many fixes and changes for desktop tests/projects/solutions. Several other fixes and changes for netcore projects/solutions.

Fixes:

Checklist

Nilambari and others added 30 commits April 20, 2018 17:52
…s actually not being used. Removed the use of a custom environment setup helper.
…of Hyak clients that are generated as-needed instead of precreated. Removed LegacySqlClient precreation from scenario tests. Changed hard-coded sleeps to TestMockSupport.Delay.
…) for tests that should only be ran on desktop (non-netcore). Also, made tests skipped explicitly so that it is easier to test/debug later. Fixed up some references for Microsoft.Azure.Test to use Microsoft.Rest.ClientRuntime.Azure.TestFramework instead.
… run. #if tests that don't apply to netcore.
…. Minor updates to the test controller. The Common.ps1 was bugged with unicode character 0xFFFD instead of spaces on the line I edited, which made it uncompilable for PS6.
…rsion of Storage for websites test in desktop to be compatible with using MockContext, but still have the recordings work. Got the netcore Websites tests working but skip some because of the storage version being out-of-date.
…p helper. Made the KeyVault tests build and run on netcore. Cleaned up code for setting up KeyVault tests. Removed unused methods.
…ome tests are skipped due to certain issues, primarily test parallelization.
…ompatible). Now, the automation netcore tests build and pass properly.
# Conflicts:
#	src/ResourceManager/KeyVault/Commands.KeyVault.Test/ScenarioTests/KeyVaultManagementController.cs
#	src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/RoleAssignmentTests.cs
#	src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/RoleDefinitionTests.cs
#	src/ResourceManager/Websites/AzureRM.Websites.psd1
#	src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebAppBackupRestoreTests.ps1
#	src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebAppSlotTests.ps1
#	src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestRestoreWebAppSnapshot.json
#	src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppSlotTests/TestSetWebAppSlot.json
#	src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppTests/TestSetWebApp.json
#	src/ResourceManager/Websites/Commands.Websites.Test/packages.config
#	src/ResourceManager/Websites/Commands.Websites/Cmdlets/BackupRestore/RestoreAzureWebAppSnapshot.cs
#	src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebApps/SetAzureWebApp.cs
#	src/ResourceManager/Websites/Commands.Websites/Commands.Websites.Netcore.csproj
#	src/ResourceManager/Websites/Commands.Websites/Properties/AssemblyInfo.cs
#	src/ResourceManager/Websites/Commands.Websites/help/Set-AzureRmWebApp.md

namespace Microsoft.Azure.Commands.Automation.Test.UnitTests
{
[TestClass]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find, it looks like this is not used even in the on demand run

@{ModuleName = 'AzureRM.StreamAnalytics.Netcore'; ModuleVersion = '0.12.0'; },
@{ModuleName = 'AzureRM.Tags.Netcore'; ModuleVersion = '0.12.0'; },
@{ModuleName = 'AzureRM.TrafficManager.Netcore'; ModuleVersion = '0.12.0'; },
@{ModuleName = 'AzureRM.Websites.Netcore'; ModuleVersion = '0.12.0'; })
Copy link
Member

@markcowl markcowl May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should include UsageAggregates, I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding it back in. Good catch!

markcowl
markcowl previously approved these changes Jun 1, 2018
MiYanni and others added 11 commits June 4, 2018 11:38
…BLE BREAKING CHANGE FOR DATA ANALYTICS! There is 1 cmdlet that outputs multiple types, but boxed as a base type. I've updated the calls to the management SDK as to no longer use obsolete calls. However, the type from those calls is slightly changed to removed a few properties. But, that type isn't DIRECTLY returned. Again, boxed as the same base type that was returned prior. Made PowerBI dependent on Management.PowerBI as to remove an output conflict warning.

# Conflicts:
#	src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Models/PSDataLakeAnalyticsAccountBasic.cs
#	src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Models/PSJobInformationBasic.cs
#	src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/PSDataLakeStoreAccountBasic.cs
#	src/ResourceManager/Resources/Commands.Resources.Test/Models.ResourceGroups/GalleryTemplatesClientTests.cs
…d out file. Removed excess dependencies from netcore projects that were manually converted.

# Conflicts:
#	src/ResourceManager/Profile/AzureRM.Profile.Netcore.psd1
# Conflicts:
#	src/ResourceManager/Sql/Commands.Sql.Test/UnitTests/AzureSqlServerUpgradeAttributeTests.cs
MiYanni and others added 6 commits June 4, 2018 14:48
…tests could pass (specifically AdlaTests.TestAdlaCatalog and AdlaAliasTests.TestAdlaCatalog). Made keyvault pshtest.pfx ALWAYS copy (in CI, it sometimes wouldn't copy???). Altered setup of 2 Sql tests and linked to issue.
@MiYanni
Copy link
Contributor Author

MiYanni commented Jun 5, 2018

@MiYanni MiYanni changed the base branch from preview to master June 5, 2018 18:58
@markcowl markcowl merged commit e7ca141 into Azure:master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.