Commit Graph

35951 Commits

Author SHA1 Message Date
Mole
b28548849f Migrate the bare minimum of BaseUsingSqlCeSyntax to be able to migrate NPoco unit tests 2020-10-22 15:17:16 +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
0dc95edea4 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-persistance-tests 2020-10-22 09:49:40 +02:00
Mole
cdf009de0f Migrate TagRepositoryTest 2020-10-22 09:48:34 +02:00
Mole
e9ae1a93c3 Merge pull request #9245 from umbraco/netcore/bugfix/unit_tests_runnable_on_linux
Netcore: Ensure unit tests are runnable on linux
2020-10-22 08:23:15 +02:00
berg
070307ea88 Ensure unit tests run on linux
Signed-off-by: berg <mail@bergmania.dk>
2020-10-21 21:04:10 +02:00
Bjarke Berg
5ecc2676e3 Migrated ThreadSafetyServiceTest.cs 2020-10-21 13:54:22 +02:00
Bjarke Berg
7e77feab1e Migrated ContentTypeServiceVariantsTests.cs 2020-10-21 13:47:52 +02:00
Mole
94c818e956 Migrate MemberTypeRepositoryTest 2020-10-21 13:45:29 +02:00
Mole
fcdd43692a Migrate MemberRepositoryTest 2020-10-21 13:28:13 +02:00
Emma L Garland
7a570110d0 Netcore/feature/healthcheck replaceconfiglogic (#8934)
* Started moving to JSON instead of config.
Mild refactoring but overall keeping it the same, except for injecting IConfiguration and JSON parsing instead of XML
Tests currently unaffected, need to increase coverage

* Moved to constants for appsettings keys
Moved from IConfiguration to global settings - later to be replaced with IOptions
Updated translation messages
Installed IOptions ready for new PR
Updated to new interface, IConfigurationService

* Post-merge fix

* Namespace move from Umbraco.Web to Umbraco.Core where appropriate

* Renamed abstractsettings (from abstractconfig)
Moving out of configservice into the POCO config check

* Made the IIsCustomErrors healthcheck as obsolete, as no web.config setting). Investigate reintroducing this check in the .NET Core way (UseDevelopment).
Reducing use of abstractsettings as not needed - we don't need a config service to read the config settings anymore as they're all explicit POCOs.
Consolidated health-checks in project.

* Removed test views that weren't meant to be added

* Returned to use of abstractsettings with different use

* Moved more health checks into correct folder/namespace, and enum into their own file

* Correct namespace

* Git history/compare lost due to file move, temporarily moving back to original folder. Will do another PR to move after this

* Use existing GetStatus in abstract check for Debug mode

* Updating to return to previous logic and putting files back into line

* Macro errors returned to previous logic

* Reuse abstractsettings class

* Swapped order to assist with reviewing PR

* Updated to include itempath

* Not implemented comment to avoid confusion
Implemented NotificationEmailCheck

* Changed to IOptionsMonitor as per PR comments. Removed configurationservice as we need to rethink the fixing strategy. Updated logger.
Needs to show fix message instead of fixing. Temporary fix for IIS version

* Switched to IOptionsMonitor for all

* No longer attempts to actually fix header in config. Still need to show suggestions.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-10-21 11:29:25 +02:00
Mole
af9b0f5bfc Migrate PublicAccessRepositoryTest 2020-10-21 11:17:02 +02:00
Bjarke Berg
2bb3afb69d Merge pull request #9227 from umbraco/netcore/feature/migrate-unit-tests
Netcore: Migrate rendering related unit tests
2020-10-21 10:51:12 +02:00
Mole
be1530a80a Migrate MediaTypeRepositoryTest 2020-10-21 10:49:29 +02:00
Mole
231fe8455a Migrate MediaRepositoryTest 2020-10-21 10:30:06 +02:00
Mole
edbe6f050d Fix merge 2020-10-21 09:00:14 +02:00
Mole
78a6b81ccc Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-persistance-tests 2020-10-21 08:54:57 +02:00
Mole
90f3a70e8e Remove MapperTestBase and move functionality to TestHelper instead 2020-10-21 08:50:15 +02:00
Bjarke Berg
35c22f9074 Introduced SetViewDataAsync on UmbracoViewPage
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-20 21:30:45 +02:00
Andy Butland
6e592d6467 NetCore: Reorganised integration tests into project grouped folders and namespaces (#9208)
* Reorganised integration tests into folders and classes grouping by project.

* Updated namespaces and file locations from PR comments.

* Fix merge conflict

* Cleared content type service events looking to resolve failing integration test on build server.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2020-10-20 18:43:03 +02:00
Mole
4d4c0661d6 Migrate DomainRepositoryTest 2020-10-20 16:08:07 +02:00
Mole
fb6ad57271 Move BulkDataReaderTests to unit test project and fix csproj files 2020-10-20 15:32:34 +02:00
Mole
c3b3e44959 Fix merge 2020-10-20 15:10:39 +02:00
Mole
c5a34ad7b9 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-persistance-tests 2020-10-20 15:08:32 +02:00
Mole
0e5d035f65 Move the remaining mapper tests 2020-10-20 14:58:59 +02:00
Andy Butland
5e70c503cd NetCore: migrated further unit tests (#9211)
* Moved model unit tests into correct folder and namespace.

* Migrated ContentTests.

* Migrated VariationTests.

* Migrated ImageSharpImageUrlGeneratorTests.

* Fixes to integration tests.

* Unit and integration test updates from PR comments.

* Delete accidentally added log file.
2020-10-20 14:49:52 +02:00
Mole
1f0a935505 Move MapperTestBase and ContentMapperTest into unit tests 2020-10-20 14:44:30 +02:00
Mole
d315d2120e Migrate UmbracoViewPageTests 2020-10-20 13:41:21 +02:00
Bjarke Berg
05ac14d7f2 Merge pull request #8637 from umbraco/netcore/feature/move-tests
Move unit tests
2020-10-20 12:04:11 +02:00
Mole
568ce57e67 Remove folders that does not exist 2020-10-20 09:34:57 +02:00
Mole
e5a20aea6f Remove duplicate PackageReference 2020-10-20 09:10:16 +02:00
Mole
a88243b9ba Try and fix the merge 2020-10-20 09:06:42 +02:00
Mole
e87caac0dd Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/move-tests
# Conflicts:
#	src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs
#	src/Umbraco.Tests.Common/TestHelpers/StringNewlineExtensions.cs
#	src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/ObjectExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestContentAppTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Macros/MacroParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Manifest/ManifestContentAppTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Manifest/ManifestParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs
#	src/Umbraco.Tests/Macros/MacroParserTests.cs
#	src/Umbraco.Tests/Manifest/ManifestContentAppTests.cs
#	src/Umbraco.Tests/Manifest/ManifestParserTests.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
2020-10-20 08:40:41 +02:00
Mole
5f114e7228 Align ContentModelBinderTests to new behaviour 2020-10-19 14:34:08 +02:00
Mole
c3e92a91b5 Mingrate RenderModelBinderTests 2020-10-19 14:03:51 +02:00
Mole
c02e1c261d Merge pull request #9175 from umbraco/netcore/bugfix/smidge-nuglify
Update and fix Umbraco's SmidgeRuntimeMinifier implementation and update to latest Smidge
2020-10-19 09:35:39 +02:00
Bjarke Berg
908ab98040 Merge pull request #9159 from umbraco/netcore/feature/enable-sessions
Netcore: Enable session
2020-10-19 09:14:50 +02:00
Bjarke Berg
f6e462a4ea Merge pull request #9168 from umbraco/netcore/feature/clean-umbraco-web
Netcore: Clean old Umbraco.Web project
2020-10-19 09:14:39 +02:00
Bjarke Berg
3d7942bb7c Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/clean-umbraco-web
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-19 08:08:56 +02:00
Bjarke Berg
071016de47 Merge pull request #9169 from umbraco/netcore/feature/Migrate_RenderMvcController
Migrated RenderMvcController and RenderIndexActionSelectorAttribute
2020-10-19 08:07:03 +02:00
Bjarke Berg
f17c4631d2 Changed Exception to InvalidOperationException
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-19 06:38:57 +02:00
Bjarke Berg
31be4b7306 Cleanup + added missing file
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-18 19:53:59 +02:00
Bjarke Berg
d74ec6e130 Changed default test setting to Boot=false
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-16 07:08:50 +02:00
Shannon
779214f9d3 preserve function names and update smidge 2020-10-16 15:23:02 +11:00
Shannon
ca9fab6b48 Latest version of smidge, new custom NuglifyJs processor with custom settings, fixes some JS that Nuglify throws on because it's not formatted correctly, ensures nuglify is used for the minifier 2020-10-16 12:35:53 +11:00