Mole
216fb87c79
Rename Umbraco.Core namespace to Umbraco.Cms.Core
2021-02-09 10:22:42 +01:00
Bjarke Berg
fea86bbf7a
Moved the application url to HostingEnvironment and set it in the request middleware
2021-02-08 11:00:15 +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
Andy Butland
cd5f5778ee
Applied linting rules to tests within the Umbraco.Tests.Integration project.
2020-12-24 08:39:18 +01:00
Shannon
91486bbede
Removes IServerRegistrar, new IServerRoleAccessor, removes more composers, moves more to ext,
2020-12-24 16:35:59 +11:00
Paul Johnson
5e2de50382
Fix legacy tests
2020-11-20 12:32:56 +00:00
Paul Johnson
a99f625f6a
Netcore: Alternate approach for MSDI refactor ( #9247 )
...
* Doesn't make much sense to have Concrete on IRegister, only on IFactory
* Handle FilesTreeController requires IFileSystem of type PhysicalFileSystem
* Handle registration of default MediaFileSystem without using RegisterUniqueFor
* Remove RegisterFor / RegisterUniqueFor from IRegister
* Switch over from LightInject to wrappers around MSDI
* Made mapper dependencies more explicit
* Remove registration for AngularJsonMediaTypeFormatter
It's dependencies aren't registered so container validation fails
* Resolve lifetime issue for EnsureValidSessionId by service locating
else resolve scoped in singleton
* Make registration more explicit for backoffice UserManager
* Make install step registrations more explicit
* Disable service provider validation so site can launch
Maybe this is a problem maybe not, we build about 8000 service providers so maybe everything is fine later...
* Further cleanup of IFactory interface
* Further cleanup of IRegister interface
* Revert "Make registration more explicit for backoffice UserManager"
This reverts commit 7215fe836103c597cd0873c66737a79b91ed4c49.
* Resolve issue where NewInstallStep would fail to reset password for "SuperUser"
Before MSDI, somehow BackOfficeIdentityOptions would be configured with token provider map from IdentityBuilder.AddDefaultTokenProviders.
After switchover those config actions are lost.
Subclass IdentityBuilder to ensure BackOfficeIdentityOptions doesn't miss config setup upstream.
* Initialize current.
* Add todo to turn container validation back on.
* Migrated ScopeFileSystemsTests to integration tests
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Resolve issue where MediaFileSystem was skipping ShadowFileSystem
* Attempt to fix ScopeFileSystemsTests on azure devops
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
* Be interesting to know what the actual full path is in pipeline.
* Clarify intent of CreateMediaTest
Doesn't help resolve weird UnauthorizedAccessException but it cuts so much cognitive overhead for the future.
* Use ILoggerfactory rather than mock for the manually constructed file PhysicalFileSystem
* Maybe resolve failing test on azure pipeline.
Co-authored-by: Bjarke Berg <mail@bergmania.dk >
2020-10-26 11:47:14 +01:00
Mole
fcdd43692a
Migrate MemberRepositoryTest
2020-10-21 13:28:13 +02:00
Bjarke Berg
15897f1736
Migrated ContentTypeRepositoryTest
2020-10-09 11:37:25 +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
Andy Butland
1bd22d72c2
Removed configuration model builders.
2020-09-21 21:06:24 +02:00
Mole
d3ae921293
Remove most of the last references and rename LoggerFactory_ to LoggerFactory in UmbracoTestBase
2020-09-21 13:04:57 +02:00
Mole
ab3ac5ad91
Remove a bunch of references to the old logger
2020-09-21 11:19:46 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00
Nikolaj
87774b789c
Add LoggerFactory to TestHelper and fix a bunch of tests
2020-09-16 15:17:42 +02:00
Nikolaj
633d42039e
Fix a whole bunch of other errors
2020-09-15 15:14:44 +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
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
Andy Butland
14404f2720
Changed singleton created dependencies in composition root to use IOptionsMonitor.
2020-09-03 12:52:47 +02:00
Andy Butland
b87630250b
Removed unused private field and constructor variable for configuration global settings from UmbracoVersion.
...
Updated singleton created instances in CreateCompositionRoot to accept IOptions based parameters for configuration.
2020-09-03 11:36:57 +02: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
Shannon
e3591923c3
Gets auto-routing back office api controllers working, lots of notes
2020-05-14 17:04:16 +10:00
Shannon
12bb68100a
Remove ununsed and unneeded DbProviderFactory CreateFactory(); from IDbProviderFactoryCreator, ensure the app doesn't explode if exceptions are thrown and boot fails
2020-05-08 17:30:30 +10:00
Emma Garland
0c77450222
Specified hostingenvironment and databaseproviders after unit tests not picking up Umbraco.Core namespaces
...
Migrated into integrations project configurations, as files are being read
2020-04-14 16:55:54 +01:00
Shannon
d711796c59
Fixing tests
2020-04-03 17:05:50 +11:00
Shannon
60abdd60b5
Starts fixing up integration tests
2020-04-03 13:16:01 +11:00
Shannon
9d320f79da
New IRuntimeHash to fix type scanning in netcore in order to look at the right runtime bits to creaet a hash for
2020-04-03 01:08:52 +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
Shannon
ebdd5e3f69
env var change
2020-03-31 18:13:19 +11:00
Shannon
4ee3cf02d9
Changes integration tests working folder, hopefully this works on azure devops
2020-03-31 18:01:27 +11: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
Bjarke Berg
681a25b861
Moved files from backoffice into Common + Introduced AspNetCoreComponent to invoke the Umbraco Application Init event
2020-03-27 11:39:17 +01:00
Shannon
f24cae51d8
Renames IHostingEnvironmentLifetime to IApplicationShutdownRegistry
2020-03-26 15:39:20 +11:00
Shannon Deminick
29293bd25a
Update src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
...
Co-Authored-By: Bjarke Berg <mail@bergmania.dk >
2020-03-26 15:32:39 +11:00
Shannon
a0acc8126d
oops change namespace back to Umbraco.net
2020-03-25 16:52:42 +11:00
Shannon
612a47b16b
Splits interfaces into separate ones, removes overlap between interfaces, injects the necessary bits, and much more
2020-03-25 15:06:22 +11:00
Shannon
919d418920
Gets the DB installing in integration tests, changes integratino tests to use Generic Host builder
2020-03-24 11:53:56 +11:00
Shannon
6013d856b7
Changes back TestHelperBase, we'll just allocate new configs each time.
2020-03-23 17:15:32 +11:00
Shannon
427c44468f
Changes methods to properties since we don't return new instances each time.
2020-03-23 16:41:39 +11:00
Shannon
1658fced23
Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/booting-netcore
...
# Conflicts:
# src/Umbraco.Core/IO/IOHelper.cs
# src/Umbraco.Infrastructure/Runtime/WebRuntime.cs
# src/Umbraco.Tests.Common/TestHelperBase.cs
# src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
# src/Umbraco.Web.UI.NetCore/Program.cs
# src/Umbraco.Web.UI.NetCore/Startup.cs
# src/Umbraco.Web/UmbracoApplication.cs
2020-03-23 15:50:01 +11:00
Shannon
41163c3c78
Gets CoreRuntime loading/booting in integration project
2020-03-13 14:43:41 +11:00