Page MenuHomeDevCentral

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

Authored by dereckson on Sat, Apr 18, 13:25.

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 Skipped
Unit
Tests Skipped
Branch
T2310-X-Hub-Signature-256
Build Status
Buildable 6633
Build 6917: 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)