stable

Clone or download

Read-only

Allow API Client to request Mercure Token for TestManagement

This patch allows any API Client to request a Mercure token for a specific Campaign that they have access to . This token enables them to listen to updates on the Campaign Testing can be done by : 1. Setting up mercure in your bash-web 2. setting feature_flag_enable_mercure_dev_testmanagement to 1 in bash-web 3. Create a campaign and note it's id 4. use the console to run fetch('https://tuleap-web.tuleap-aio-dev.docker/plugins/testmanagement/mercure_realtime_token/$id',{method:'POST';}) .then((response) => response.text()) .then((data) => console.log(data)); 5. You can then use any jwt decoder to check that the token has been properly emitted Part of story #32297 Have Tuleap Test Management realtime be Mercure based Change-Id: Ia1bfeb9d9b1d25c4c45070579b87c978f701212d

Modified Files

Name
A plugins/testmanagement/include/RealTime/MercureJWTController.php +87 −0 Go to diff View file
M plugins/testmanagement/include/testmanagementPlugin.php +23 −0 Go to diff View file
A plugins/testmanagement/tests/unit/RealTime/MercureJWTControllerTest.php +186 −0 Go to diff View file
M src/common/RealTimeMercure/MercureClient.php +5 −0 Go to diff View file