-
Notifications
You must be signed in to change notification settings - Fork 4k
[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
Conversation
…s actually not being used. Removed the use of a custom environment setup helper.
…nto dependency_logicapp
…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.
… project building and passing.
…ome tests are skipped due to certain issues, primarily test parallelization.
…nto dependency_logicapp
…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] |
There was a problem hiding this comment.
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'; }) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
…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
Net core warnings v2
…run properly. Fixes merge for a Sql test.
…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.
Release 6.2.0 merge
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
CONTRIBUTING.md
platyPS
module