Page MenuHomeDevCentral

Test X-Hub-Signature-256 documentation values
Needs ReviewPublic

Authored by dereckson on Sat, Apr 18, 13:25.
Tags
None
Referenced Files
F26077627: D4079.diff
Mon, Apr 20, 00:39
Unknown Object (File)
Sat, Apr 18, 22:05
Subscribers
None

Details

Summary

This change demonstrates in tests the XHubSignature code
is actually ready for X-Hub-Signature-256.

Ref T2310

Test Plan

New unit test provided with a SHA-256 algo

The values of that test are taken from GitHub documentation:
https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Errors
SeverityLocationCodeMessage
Errorgithub/tests/XHubSignatureTest.php:9PHPCS.E.PSR1.Classes.ClassDeclaration.MissingNamespacePSR1.Classes.ClassDeclaration.MissingNamespace
Unit
Test Failures
Branch
T2310-X-Hub-Signature-256
Build Status
Buildable 6632
Build 6916: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson retitled this revision from Demonstrate in tests code is ready for X-Hub-Signature-256 to Test X-Hub-Signature-256 documentation values.Sat, Apr 18, 13:30
dereckson edited the summary of this revision. (Show Details)

Unit tests

$ phpunit github 
Switching to Composer phpunit:
PHPUnit 12.5-dev by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.30
Configuration: /home/dereckson/dev/keruald/_monorepo/core/phpunit.xml

......                                                              6 / 6 (100%)

Time: 00:00.012, Memory: 16.00 MB

OK (6 tests, 12 assertions)