nextcloud/tests/lib
Micke Nordin cc9e0ba582 fix(http-sig): make setSignature public and skip third-party-dependent test
Two CI failures introduced by the test additions in this PR:

1. testEd25519VerifyAcceptedWhenSodiumLoaded calls setSignature() to inject
   an externally-produced Ed25519 signature (since Algorithm::sign() rejects
   Ed25519 by design). setSignature was declared protected, so the test
   couldn't call it from outside the class hierarchy. Make it public —
   SignedRequest lives in the OC\ private namespace, so this widens
   internal-only visibility, not the public API surface.

2. testParseKeyRejectsContradictoryAlg expected firebase/php-jwt's
   JWK::parseKey() to throw on a kty=OKP/crv=Ed25519/alg=ES256 key. The
   current firebase/php-jwt version does not validate that coherence at
   parse time, so the test now fails to see any throwable. The actual
   security check happens at Algorithm::verify() time and is covered by
   testVerifyEd25519KeyAgainstES256Alg right above it. Skip the parse-time
   test with a comment pointing at the verify-time coverage.

Signed-off-by: Micke Nordin <kano@sunet.se>
2026-05-27 11:03:55 +02:00
..
Accounts chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Activity chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
App Merge pull request #60286 from nextcloud/fix/noid/appstore-fetcher-generic-file-exception 2026-05-20 02:51:28 +02:00
AppFramework test: replace checkbox assertions with DoesNotPerformAssertions (middleware) 2026-05-26 23:18:55 +02:00
Archive chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Authentication chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Avatar chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
BackgroundJob chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Cache chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Calendar chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
Collaboration chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
Command chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Comments chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
Config chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Contacts/ContactsMenu chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
DB chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Diagnostics chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
DirectEditing chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Encryption chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Federation chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Files Merge pull request #60225 from nextcloud/remove-cache-order 2026-05-13 16:49:24 +02:00
FilesMetadata chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
GlobalScale chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Group chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Hooks chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Http Merge pull request #60299 from nextcloud/fix/remove-iservercontainer-from-core-apps 2026-05-12 07:48:58 +02:00
Install/Events feat(install): add InstallationCompletedEvent for post-installation hooks 2026-01-28 09:24:24 +01:00
IntegrityCheck chore: remove always_populate_raw_post_data from htaccessWithValidModifiedContent 2026-05-19 21:39:51 +02:00
L10N chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Lock chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Lockdown chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Log chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Mail chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Memcache chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Migration chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Mock/Config chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Net fix: handle NAT64 addresses in isLocalAddress 2026-05-19 17:06:46 +02:00
Notification chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
OCM fix: Make sodium optional 2026-05-27 11:03:55 +02:00
OCS chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
OpenMetrics chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Preview fix(previews): use createParameter/setParameter to reuse query in chunk loop 2026-05-06 10:32:54 +02:00
Profile/Actions chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Remote chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Repair chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
RichObjectStrings chore: run rector 2025-07-01 22:45:52 +02:00
Route chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Search chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Security fix(http-sig): make setSignature public and skip third-party-dependent test 2026-05-27 11:03:55 +02:00
Session chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Settings chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
SetupCheck chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Share20 Merge branch 'master' into work/carl/remove-orderById 2026-05-12 13:59:15 +02:00
Snowflake fix(snowflake): fix wrong documentation about serverId 2026-05-12 10:47:44 +02:00
Support chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
SystemTag chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Talk chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
TaskProcessing chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
Template chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TextProcessing chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
Traits chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Updater chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
User chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
Util chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
AllConfigTest.php refactor: Deprecated user config from IConfig correctly 2025-12-11 13:27:47 +01:00
AppConfigIntegrationTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
AppConfigTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
AppScriptSortTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
AppTest.php refactor: split appstore from settings 2026-05-05 10:41:04 +02:00
BinaryFinderTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
CapabilitiesManagerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
ConfigTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
ContactsManagerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
DateTimeFormatterTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
EmojiHelperTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
ErrorHandlerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
EventSourceFactoryTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
FilesTest.php refactor(Files): Remove deprecated streamCopy method 2026-02-17 06:43:16 +01:00
HelperStorageTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
HookHelper.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
ImageTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
InfoXmlTest.php fix: Add proper methods in IAppManager for namespace handling 2026-05-11 14:53:29 +02:00
InitialStateServiceTest.php chore: Remove almost all uses of deprecated IServerContainer in lib/private 2026-05-11 16:22:22 +02:00
InstallerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
LargeFileHelperGetFileSizeTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
LargeFileHelperTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
LoggerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
MemoryInfoTest.php chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +01:00
NaturalSortTest.php chore: run rector 2025-07-01 22:45:52 +02:00
NavigationManagerTest.php refactor: Delete deprecated code from OC_Util 2026-05-12 18:24:12 +02:00
RepairTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
ServerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
SetupTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
SubAdminTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TagsTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TemplateFunctionsTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TemplateLayoutTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TempManagerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
TestCase.php Merge pull request #60000 from cuppett/cuppett/test-isolation 2026-04-30 12:38:03 +02:00
TestMoveableMountPoint.php refactor: Apply rector changes 2026-04-29 23:54:19 +02:00
UpdaterTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
UrlGeneratorTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
UtilCheckServerTest.php chore: add missing Override attribute to test files 2026-04-28 21:29:28 +02:00
UtilTest.php fix: Allow sanitizeHTML to accept null 2026-05-12 18:24:12 +02:00