Mole
7a8a7104c7
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs
# src/Umbraco.Tests/IO/ShadowFileSystemTests.cs
2020-10-06 08:13:29 +02:00
Bjarke Berg
375a85903f
Changed the UmbracoIntegrationTest setup to be sync, to avoid issue with AsyncLocal
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-10-05 10:02:11 +02:00
Mole
cbdb96dfe6
Add SignalR in integration tests
2020-09-30 14:27:18 +02:00
Mole
0e737c0903
Use a SiriLogger that logs to console in UmbracoIntegrationTest
...
AFAIK ConsoleLoggerFactory gets disposed when host is disposed causing all tests but the ones from the first test fixture to fail. As far as I'm aware it's not possible to make it not dispose ConsoleLoggerFactory, however it is possible with Sirilog
2020-09-23 15:37:19 +02:00
Mole
75608919cd
Merge pull request #8925 from umbraco/netcore/feature/use-serilog-to-log-all-messages
...
Netcore: Use serilog to log all messages and use appsettings as config
2020-09-23 09:37:43 +02:00
Bjarke Berg
f413f279eb
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
# Conflicts:
# src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs
# src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
# src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
# src/Umbraco.Tests.Integration/Persistence/Repositories/TemplateRepositoryTest.cs
# src/Umbraco.Tests.Integration/RuntimeTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs
# src/Umbraco.Tests/Components/ComponentTests.cs
# src/Umbraco.Tests/IO/ShadowFileSystemTests.cs
# src/Umbraco.Tests/Models/VariationTests.cs
# src/Umbraco.Tests/Packaging/PackageDataInstallationTests.cs
# src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
# src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MediaTypeRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MemberTypeRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
# src/Umbraco.Tests/Persistence/SqlCeTableByTableTest.cs
# src/Umbraco.Tests/Published/ConvertersTests.cs
# src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs
# src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs
# src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs
# src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs
# src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
# src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs
# src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
# src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
# src/Umbraco.Tests/Services/ContentTypeServiceVariantsTests.cs
2020-09-23 07:59:10 +02:00
Bjarke Berg
25c7418d66
Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-validation
...
# Conflicts:
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs
# src/Umbraco.Tests/Models/MediaXmlTest.cs
# src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
# src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
# src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
# src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
# src/Umbraco.Web.UI.NetCore/appsettings.json
2020-09-22 20:25:28 +02:00
Mole
438515fa66
Merge Netcore: Use serilog to log all messages and use appsettings as config into Netcore/feature/migrate logging
2020-09-22 15:09:16 +02:00
Mole
c0616d516a
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
# Conflicts:
# src/Umbraco.Infrastructure/Scheduling/ScheduledPublishing.cs
# src/Umbraco.Infrastructure/Scheduling/SchedulerComponent.cs
# src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
# src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
# src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs
# src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
# src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs
# src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
# src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
# src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
# src/Umbraco.Web.Common/Install/InstallController.cs
2020-09-22 13:44:22 +02:00
Mole
b7cbbf8c28
Use ConfigureLogging instead of trying to add logging manually
2020-09-22 13:00:39 +02:00
Mole
dae7f0a1a7
Register logging ASAP in UmbracoIntegrationTest pretty much everything needs it
2020-09-22 10:15:45 +02:00
Bjarke Berg
96facc4d35
Netcore: Introduce BackofficeSecurityAccessor ( #8871 )
...
* Introduced IWebSecurityAccessor
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Fixed tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Renamed WebSecurity to BackofficeSecurity and all related names
* Fixes typos
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk >
2020-09-22 10:01:00 +02:00
Andy Butland
1bd22d72c2
Removed configuration model builders.
2020-09-21 21:06:24 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00
berg
f11391961f
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/use-serilog-to-log-all-messages
...
# Conflicts:
# src/Umbraco.Tests.Integration/TestServerTest/UmbracoBuilderExtensions.cs
# src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
# src/Umbraco.Web/UmbracoApplicationBase.cs
2020-09-18 08:31:09 +02:00
Nikolaj
c89659c597
Use MS ILogger in database stuff
2020-09-17 12:52:25 +02:00
Nikolaj
ecb4831855
Apply repository related fixes to tests
2020-09-17 10:35:11 +02:00
Bjarke Berg
7d3bc9be1c
Moved serilog config to appsettings and configured it to also catch MS logging messages.
...
Added Console log for Development
2020-09-17 09:01:10 +02:00
Nikolaj
633d42039e
Fix a whole bunch of other errors
2020-09-15 15:14:44 +02:00
Nikolaj
0238d6eb02
Start using LoggerFactory
2020-09-15 12:40:35 +02:00
Nikolaj
90a16f49c7
Fix up some tests
2020-09-15 10:03:56 +02:00
Nikolaj
b8c60d1666
Refactor Fatal with simple message
2020-09-14 11:23:17 +02:00
Bjarke Berg
2eee6d7386
Removed some of the old legacy configs
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-09-11 21:13:18 +02:00
Bjarke Berg
e079bd5a50
Cleanup usages of Configs
2020-09-08 13:03:43 +02:00
Bjarke Berg
c8669b18c2
Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-09-04 14:30:48 +02:00
Shannon
7c78b5b34f
Updates CoreRuntime with better dependencies so we can disable caches, fixes integration test to run multiple callbacks registered for TearDown, ensure we TearDown the runtime.
2020-09-04 00:27:43 +10:00
Shannon
f84a93ae20
Adds IUmbracoBuilder to build the config so it's easier to split apart, ensures background tasks don't run in integration tests, uses a custom CoreRuntime to ensure we use SimpleMainDom, re-wires the UmbracoWebApplicationFactory so that duplicate Hosts are not running at the same time, fixes issues with overriding/shadowing, uses RAMDirectory in lucene for tests, fixes CoreRuntime's events that we're moved incorrectly and not backwards compat, adds new real non static events which we can use in integration tests to install the DB before the runtime state is calculated
2020-09-02 18:10:29 +10:00
Andy Butland
adf687579c
Restored Umbraco.Tests.IntegrationTests (some failures remaining)
2020-08-24 12:34:37 +02:00
Bjarke Berg
aac8cd5423
Clean up + migrated AuditServiceTests
2020-07-01 17:42:39 +02:00
Bjarke Berg
7b546e6cee
Attempts to fix issue
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-30 20:11:39 +02:00
Bjarke Berg
3a33e7bf29
Migrated ControllerContentTests.. Right now the test fails, but the test is correct
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-17 16:39:28 +02:00
Bjarke Berg
835b04273f
Migrated remaining *TreeController's
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-06-10 19:22:25 +02:00
Scott Brady
c6210ba7f2
Working installation. Use of Thread.CurrentPrincipal removed for now
2020-05-17 10:39:30 +01:00
Shannon
42c347dc21
doh fix build
2020-05-12 17:19:19 +10:00
Shannon
a34d94845c
Fixes tests
2020-05-12 17:14:39 +10:00
Shannon
bcaede22f1
Cleans up ext methods and where they are located and what they call to ensure dependencies are taken care of, cleans up Startup, moves routing appropriately
2020-05-12 15:18:55 +10:00
Bjarke Berg
e4dfdbb504
AB#6233 - renamed extensions namespace to Umbraco.Extensions
2020-05-07 10:08:23 +02:00
Bjarke Berg
fa740f36b5
fix tests
2020-04-29 08:56:42 +02:00
Bjarke Berg
f76e638f0d
Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/logging-fixing
...
# Conflicts:
# src/Umbraco.Tests.Integration/RuntimeTests.cs
# src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
# src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
2020-04-22 10:54:54 +02:00
Shannon
46e14f7692
Fixes up all logging. Configures serilog logging to replace MS logging just like serilog does, adds new ILoggerConfiguration so we aren't hard coding things, dynamically adds enrichers when the container is ready to resolve services.
2020-04-22 14:23:56 +10:00
Bjarke Berg
c0ec1bf6ca
Introduced GenericDictionaryRequestAppCache, to use the HttpContext.Items from .NET Core
2020-04-20 13:21:09 +02:00
Andy Butland
a5aa1e19a5
Fixed failing integration tests following amends to UserBuilder.
2020-04-11 18:37:10 +02:00
Shannon
4920268ec8
combines application builder extensions to one class
2020-04-03 15:56:34 +11:00
Shannon
859546f5a4
Fixes deadlock issues and concurrent index drop issues
2020-04-03 13:54:28 +11:00
Shannon
60abdd60b5
Starts fixing up integration tests
2020-04-03 13:16:01 +11:00
Bjarke Berg
01957b7c64
Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/integration-tests-running
2020-04-02 10:01:57 +02:00
Bjarke Berg
400fa1ccd4
Initialize Current
2020-04-01 14:19:41 +02:00
Bjarke Berg
2a2903f932
AB#5820 - Review fixes / Clean up
2020-03-31 12:22:11 +02:00
Shannon
8535d0fbe3
Cleans up IIOHelper and removes methods/props that shouldn't exist, changes test helper to use WorkingDirectory fixes some usages of MapPath
2020-03-31 17:27:51 +11:00
Shannon
7617027c49
Moves most of the UserRepositoryTest
2020-03-30 21:53:30 +11:00