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
Shannon
cf9dd9bfec
Adds notes, another hacky fix for hacky test/code
2021-01-04 12:48:59 +11:00
Shannon
999c20a755
Fixes UmbracoIntegrationTest Mapping flag and missing using in Startup
2021-01-04 12:22:03 +11:00
Shannon
4ce5dc8eff
fixing tests
2021-01-04 11:32:36 +11:00
Shannon
1a0d961e42
removes WebsiteComposer, BackOfficeComposer
2020-12-24 18:11:16 +11:00
Shannon
91486bbede
Removes IServerRegistrar, new IServerRoleAccessor, removes more composers, moves more to ext,
2020-12-24 16:35:59 +11:00
Shannon
307ef4c1e0
Removes IBatchedDatabaseServerMessenger, renames methods of IServerMessenger
2020-12-24 14:44:42 +11:00
Shannon
e785ac28a3
Moves more services and registrations "up", removes AspNetCoreComposer logic and moves to AddWebComponents
2020-12-24 14:29:26 +11:00
Shannon
1f6297ad6b
Moves some services 'up' to Core, moves core DI registrations 'up' to UmbracoBuilder, moves Composing ext to DependencyInjection namespaces as UmbracoBuilder ext
2020-12-24 11:46:17 +11:00
Shannon
f55ace434b
Merge branch 'netcore/task/9779-publishedsnapshot-slight-cleanup' into netcore/task/dist-cache-cleanup
2020-12-24 09:57:47 +11:00
Shannon
2798f31c67
fixes test
2020-12-24 09:56:31 +11:00
Shannon
b20ce5a92e
A bunch of cleanup for DI namespaces, ext methods and dist cache classes
2020-12-24 09:50:05 +11:00
Shannon
a70951b382
Fixes (hopefully last) tests
2020-12-23 14:28:03 +11:00
Shannon
544753112e
fixing more tests by enabling nucache explicitly where required
2020-12-23 14:02:05 +11:00
Shannon
534b74dda5
Changes CustomTestSetup to just be a normal method, not sure why it was an action, fixes ContentEventsTests which requires NuCache
2020-12-23 13:57:41 +11:00
Shannon
d5a19530f3
Fixing tests, more DependencyInjection namespace
2020-12-23 13:06:22 +11:00
Shannon
7115e0a11e
shuffles code with DependencyInjection namespace, forgot to commit changes to Startup
2020-12-23 12:02:01 +11:00
Shannon
ac7fac8f56
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/9779-publishedsnapshot-slight-cleanup
2020-12-23 11:12:55 +11:00
Paul Johnson
50c15a42ed
Misc, async TearDown
2020-12-22 10:43:07 +00:00
Shannon
57020b4778
adds notes, removes IPublishedCacheComposer
2020-12-22 12:33:00 +11:00
Shannon
f5e9441e9f
renames umb builder ext class to be more explicit, no more AddAllBackOfficeComponents, just AddBackOffice, removes NuCacheComposer
2020-12-22 12:16:37 +11:00
Paul Johnson
198586a82b
Dispose host on test teardown.
2020-12-21 09:02:05 +00:00
Shannon
03f22e9362
Fixing tests after merge
2020-12-21 16:44:50 +11:00
Shannon
86adf01f88
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/front-end-routing
...
# Conflicts:
# src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs
# src/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs
# src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs
2020-12-21 16:04:42 +11:00
Shannon
75796e3eae
Fixing tests, removing old files, adds notes
2020-12-21 15:58:47 +11:00
Paul Johnson
e4e26159ae
Prevent multiple first time schema create
2020-12-18 14:10:11 +00:00
Paul Johnson
6114fffb4a
Remove HostBuilder UseUmbraco extension, it's not required.
2020-12-18 09:53:01 +00:00
Paul Johnson
fa061d36ba
What's up with ThreadSafetyServiceTest?
...
Really interesting that it has this at top
if (Environment.GetEnvironmentVariable("UMBRACO_TMP") != null)
Assert.Ignore("Do not run on VSTS.");
But this test passes on other peoples builds :(
2020-12-17 17:06:51 +00:00
Paul Johnson
3395f4cc35
Fixes for ContentTypeServiceVariantsTests PublishedSnapshotService hack
...
These pass if running the full suite, but fail when ran alone otherwise
2020-12-17 15:13:50 +00:00
Paul Johnson
a883df9d88
Use HostBuilder.UseUmbraco in same order for tests and running web app
2020-12-17 12:44:09 +00:00
Paul Johnson
79aa2e1cc2
LocalDb TestDatabase cleanup
...
LocalDbTestDatabase now renames the final database like it used to (guid vs sensible name)
Made serilog log to integration tests TEMP as far as I can tell it wasn't writing at all before
2020-12-17 11:19:47 +00:00
Paul Johnson
6dd5e04a2b
Fix broken integration test, must set ServiceProvider before using
2020-12-17 11:19:47 +00:00
Paul Johnson
431403e372
Fixup CoreRuntime so it starts after Startup.Configure
...
Makes integration tests play nice with Components as RuntimeLevel will be correct
2020-12-17 11:19:47 +00:00
Paul Johnson
a69739a7a2
Remove CoreInitialComponent
2020-12-17 11:17:46 +00:00
Shannon
cc1404747b
Changes PublishedSnapshotService to lazily load it's caches on demand when they are required instead of relying on an external initializer to load them.
2020-12-17 16:27:28 +11:00
Bjarke Berg
0151c435f1
Netcore: Package support for media + media types ( #9547 )
...
* Add support for media when installing a package
* clean up
* Fix tests
* Add support for media when installing a package
* clean up
* Fix tests
* moved tests + test data
* Migrated package tests + resources
* Fix issue with media picker on package page, was empty after save.
* Added missing files
* Fix casing issue of resources
* Added test for media
* Fix tests for linux
* Fix test
* Fix issue with move media..
* Fix issue with adding files to packages
* Add MediaType permissions.
* Fix test
* Fix test
* Retry flaky tests, and added TODOs to fix those
* new attempt to fix test
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch >
2020-12-16 22:26:47 +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
4dbe5d0c38
Consolidate LocalDbTestDatabase and SqlDeveloperTestDatabase
...
Resolve issue with multiple empties
2020-12-12 11:33:57 +00:00
Paul Johnson
312ab96277
Resolve issues with AdvancedMigrationTests
2020-12-11 19:04:39 +00:00
Paul Johnson
ae98983172
Fix PathTests
2020-12-11 16:53:31 +00:00
Paul Johnson
897fe804b0
Multiple test databases, similar setup to LocalDbTestDatabase.DatabasePool
2020-12-11 14:12:34 +00:00
Paul Johnson
51f20119a2
Enable running integrations tests on Linux
2020-12-11 14:12:34 +00:00
Shannon
776df77dfe
Notes and cleanup
2020-12-11 15:29:27 +11: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
Bjarke Berg
40a6fa2b89
NetCore: Migrate more tests ( #9494 )
...
* Migrate tests
* Cleanup
* Migrate tests
* post merge fix
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-12-08 09:19:51 +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