Mole
476d60cc50
Align namespaces in Umbraco.Tests.Common
2021-02-10 14:45:44 +01:00
Mole
9dcc901395
Ensure that SqlCeSupport is still enabled after changing the namespace
2021-02-10 13:55:16 +01:00
Mole
dd488a15f4
Move extension methods in core project to Umbraco.Extensions
2021-02-09 13:21:17 +01:00
Mole
216fb87c79
Rename Umbraco.Core namespace to Umbraco.Cms.Core
2021-02-09 10:22:42 +01:00
Mole
1f6b942af7
Merge pull request #9694 from umbraco/netcore/feature/net5
...
Netcore: Updated to .NET 5
2021-01-28 09:46:07 +01:00
Bjarke Berg
9f2a230e4c
Merge pull request #9717 from umbraco/netcore/feature/migrate-more-tests
...
Netcore: Migrate more tests
2021-01-26 08:24:52 +01:00
Bjarke Berg
5a4a3c760d
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/net5
2021-01-26 08:09:33 +01:00
Bjarke Berg
6f357a771d
Netcore: Replace IUmbracoRequestLifetime with EventAggregator nofitications ( #9711 )
...
* AB#9928 - Replace IUmbracoRequestLifetime with event aggregator
* AB#9928 - Fix issue with profiling, by calling it explicitly in the request middleware
* Longer timeout to avoid flaky test
* Longer timeout to avoid flaky test
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2021-01-26 07:58:11 +01:00
Bjarke Berg
1080d36b8e
Migrated SqlCeSyntaxProviderTests and removed tests that tested the test framework...
2021-01-25 19:22:58 +01:00
Bjarke Berg
ea10d45393
more retrys for extremely flaky test
2021-01-22 08:34:52 +01:00
Bjarke Berg
132c4f7910
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/net5
2021-01-21 09:37:44 +01:00
Bjarke Berg
e38972abf0
Updated to net5.0 and updated most nuget packages. Also fixed the nuspec files. + Fix typo Persistance => Persistence.
2021-01-20 21:01:45 +01:00
berg
d033257aab
Retry flaky tests
2021-01-20 12:50:17 +01:00
Bjarke Berg
a54e10bc13
Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/merge-v8-18-01-2021
...
# Conflicts:
# .gitignore
# build/NuSpecs/UmbracoCms.Core.nuspec
# src/SolutionInfo.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/BackOfficeElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IBackOfficeSection.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs
# src/Umbraco.Core/IO/SystemFiles.cs
# src/Umbraco.Core/Models/ContentBase.cs
# src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
# src/Umbraco.Core/Persistence/UmbracoDatabaseExtensions.cs
# src/Umbraco.Core/Runtime/CoreRuntime.cs
# src/Umbraco.Core/RuntimeOptions.cs
# src/Umbraco.Core/RuntimeState.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComponent.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComposer.cs
# src/Umbraco.Examine/Umbraco.Examine.csproj
# src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
# src/Umbraco.Infrastructure/Install/InstallStepCollection.cs
# src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
# src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs
# src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/Testing/TestDatabase.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
# src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
# src/Umbraco.Web.UI.NetCore/Views/Partials/Grid/Editors/TextString.cshtml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
# src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
# src/Umbraco.Web.UI/config/umbracoSettings.Release.config
# src/Umbraco.Web/Composing/CompositionExtensions/Installer.cs
# src/Umbraco.Web/Editors/PreviewController.cs
# src/Umbraco.Web/Editors/UsersController.cs
# src/Umbraco.Web/JavaScript/PreviewInitialize.js
# src/Umbraco.Web/Telemetry/TelemetryComponent.cs
# src/Umbraco.Web/UmbracoApplication.cs
2021-01-18 16:06:23 +01:00
Bjarke Berg
6310ca31e3
Merge remote-tracking branch 'origin/netcore/netcore' into feature/clean-up-umbraco-integration-tests
...
# Conflicts:
# src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs
# src/Umbraco.Tests.Integration/RuntimeTests.cs
# src/Umbraco.Tests.Integration/TestServerTest/UmbracoBuilderExtensions.cs
# src/Umbraco.Tests.Integration/Umbraco.Core/IO/FileSystemsTests.cs
# src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UmbracoMapperTests.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs
2021-01-18 07:34:59 +01:00
Bjarke Berg
e66ccc536d
Netcore: Migrate more tests ( #9621 )
...
* AB8828 - Migrated ShadowFileSystemTests.cs
Note that the underlying behavior of Directory.EnumerateFiles is changed when search pattern is "". "" is not handled like "*" in netcore.
* AB8828 - Migrated ScopeEventDispatcherTests.cs
* AB8828 - Migrated DistributedCacheBinderTests.cs
* AB8828 - Migrated SchemaValidationTest.cs
* AB8828 - Migrated LocksTests.cs
* AB8828 - Migrated SqlCeTableByTableTest.cs (and renamed to SqlServerTableByTableTest.cs)
* AB8828 - Created DatabaseBuilderTests
* AB8828 - Fix issues with file systems for linux
2021-01-11 09:04:05 +01:00
Andy Butland
cd5f5778ee
Applied linting rules to tests within the Umbraco.Tests.Integration project.
2020-12-24 08:39:18 +01:00
Shannon
ce508d08ec
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/front-end-routing
...
# Conflicts:
# src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
# src/Umbraco.Tests/Testing/UmbracoTestBase.cs
# src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs
2020-12-16 16:18:10 +11:00
Paul Johnson
ae98983172
Fix PathTests
2020-12-11 16:53:31 +00:00
Shannon
4b85f8eb20
Big refactor or PublishedSnapshotService to split up so that there's a service and repository responsible for the data querying and persistence
2020-12-09 22:43:49 +11:00
Nikolaj
7ef6501bb1
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/more-files-from-infrastructure-to-core
...
# Conflicts:
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs
2020-12-09 08:45:28 +01:00
Shannon
7e4a6421d6
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/netcore
2020-12-08 10:21:07 +11:00
Shannon
f16b8e705a
reduce dependencies in PublishedSnapshotService, more linting
2020-12-08 10:20:03 +11:00
Bjarke Berg
e7d9d38c52
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/more-files-from-infrastructure-to-core
...
# Conflicts:
# src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
# src/Umbraco.Tests.Common/Builders/DataEditorBuilder.cs
# src/Umbraco.Tests.Common/Builders/DataValueEditorBuilder.cs
2020-12-07 12:55:47 +01:00
Bjarke Berg
5dbddfffc5
Merge remote-tracking branch 'origin/v8/dev' into netcore/netcore
...
# Conflicts:
# .gitignore
# src/SolutionInfo.cs
# src/Umbraco.Core/Models/PropertyType.cs
# src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
# src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs
# src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs
# src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
2020-12-07 12:31:26 +01:00
Bjarke Berg
fb18317c0f
Moved lots of property editors into core
2020-12-04 19:01:52 +01:00
Bjarke Berg
85c01d9905
Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
...
# Conflicts:
# src/Umbraco.Configuration/Legacy/GlobalSettings.cs
# src/Umbraco.Core/Configuration/IGlobalSettings.cs
# src/Umbraco.Core/Models/ContentBaseExtensions.cs
# src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs
# src/Umbraco.Core/Routing/DefaultUrlProvider.cs
# src/Umbraco.Core/Runtime/MainDom.cs
# src/Umbraco.Core/Services/IRuntimeState.cs
# src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
# src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
# src/Umbraco.Infrastructure/RuntimeState.cs
# src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/TestHelpers/TestObjects.cs
# src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
# src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs
# src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs
# src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
# src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
# src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Rte.cshtml
# src/Umbraco.Web/Controllers/UmbLoginController.cs
# src/Umbraco.Web/Install/Controllers/InstallController.cs
# src/Umbraco.Web/PublishedElementExtensions.cs
# src/Umbraco.Web/Runtime/WebInitialComposer.cs
# src/Umbraco.Web/UmbracoHelper.cs
# src/Umbraco.Web/UmbracoInjectedModule.cs
# src/Umbraco.Web/UrlHelperExtensions.cs
# src/Umbraco.Web/UrlHelperRenderExtensions.cs
# src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs
2020-12-01 11:34:13 +01:00
Bjarke Berg
6ce8e55210
Removed check for ValidateStylesheet while file systems don't support both web and content root
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 22:11:51 +01:00
Bjarke Berg
41bdfd940c
Add temp logging, to debug azure pipeline
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 20:34:48 +01:00
Bjarke Berg
f9c51930f7
Add temp logging, to debug azure pipeline
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 19:39:43 +01:00
Bjarke Berg
b9173ef6bb
Removed wrong ctor from PhysicalFileSystem
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-27 09:00:50 +01:00
Bjarke Berg
064dbd2f67
Fixed tests
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-11-26 15:15:53 +01:00
Paul Johnson
61a4f3f6c6
Always boot for RelationRepository tests
...
If we don't boot tests can fail based on the point at which IPublishedSnapshotService is first resolved.
At runtime it is resolved by the NuCacheComponent as soon as CoreRuntime is resolved during UseUmbracoCore.
By doing this the integration tests match the real application lifecycle.
2020-11-24 12:03:10 +00:00
Paul Johnson
5268f9d7f0
Resolve review comments
2020-11-24 09:37:52 +00:00
Paul Johnson
4520b2ab21
Fix for failing test RelationRepositoryTests.Get_Paged_Child_Entities_By_Parent_Id
2020-11-20 09:44:49 +00:00
Paul Johnson
aec25d5007
Replace Composition with UmbracoBuilder
2020-11-18 17:41:57 +00:00
Elitsa Marinovska
dd5f400cf3
Netcore: Migration of Model classes from Umbraco.Infrastructure to Core ( #9404 )
...
* Migrating more model, mapping and tree classes
* Migrating files from Mapping dir without Newtonsoft dependency
* Migrating files from PublishedContent and Editors dirs without Newtonsoft dependency + some more of the same kind
* Migrating DataType class without the usage of Newtonsoft.Json and making the corresponding changes to all classes affected
* Combining 3 ContentExtensions files into 1
* Refactoring from migrating ContentExtensions
* Migrating more classes
* Migrating ContentRepositoryExtensions - combining it with existing file in Umbraco.Core
* removing Newtonsoft json dependency & migrating file. Adding partial migration of ConfigurationEditor, so PropertyTagsExtensions can be migrated
* Migrating ContentTagsExtensions, and refactoring from changes in PropertyTagsExtensions
* Changes that should be reverted once ConfigurationEditor class is fully migrated
* VS couldn't find Composing, so build was failing. Removing the using solves the problem
* Handling a single case for deserializing a subset of an input
* Small changes and added tests to JsonNetSerializer
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Migrated ConfigurationEditor
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
Co-authored-by: Bjarke Berg <mail@bergmania.dk >
2020-11-17 20:27:10 +01:00
Bjarke Berg
765140b7cd
Moved unit tests to right project + Cleanup + Write info in test console
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-27 14:10:19 +01:00
Paul Johnson
ec66990e72
NetCore: MSDI refactor phase 2 ( #9280 )
...
* Moved adapters from Infra -> Core
* Allow Composition to accept a service collection instead of an IRegister
* Composition no longer takes IRegister as constructor arg
all tests passing
* Composition no longer implements IRegister
* Lose _uniques in Composition
* lose Composition OnCreatingFactory actions
* Clean up UmbracoCoreServiceCollectionExtensions & Composition
Less IFactory
* LightInject gone where TFW == netstandard2.0 || TFW == netcoreapp3.1
* Resolve dead code issues
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later.
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later (continued)
Thought the counts were low, it's mostly extension method usage
2020-10-27 11:53:01 +01:00
Bjarke Berg
b2b297ac8a
Cleanup tests + Fixed issue in IOHelper related to contentroot vs webroot
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-23 13:58:30 +02:00
Mole
f6316c72dc
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-persistance-tests
2020-10-23 08:39:20 +02:00
Bjarke Berg
1dd7384747
Merge remote-tracking branch 'origin/netcore/netcore' into unique-nodename-refactor
2020-10-22 20:04:14 +02:00
Mole
016d3f2b5b
Move NPoco unit tests back out of Integration tests
2020-10-22 14:50:01 +02:00
Mole
ba262648d9
Migrate NPocoTests
2020-10-22 14:12:07 +02:00
Mole
4f80ebd788
Migrate UnitOfWorkTests
2020-10-22 13:27:24 +02:00
Mole
14c55177f3
Migrate StylesheetRepositoryTest
2020-10-22 13:08:27 +02:00
Mole
efc1817984
Migrate PartialViewRepositoryTests and ScriptRepositoryTest
2020-10-22 11:18:26 +02:00
Mole
bc0135a5c7
Migrate the remaining unit tests in UserRepositoryTest and delete the old file
2020-10-22 10:18:05 +02:00
Mole
cdf009de0f
Migrate TagRepositoryTest
2020-10-22 09:48:34 +02:00
Mole
94c818e956
Migrate MemberTypeRepositoryTest
2020-10-21 13:45:29 +02:00