Bug 12560

Summary: Add tests for layer index API
Product: [Yocto Project Subprojects] Layer Index Reporter: Paul Eggleton <bluelightning>
Component: Layer IndexAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact: apoorv sangal <apoorvsangal>
Severity: enhancement    
Priority: Medium+ CC: brian.avery, randy.macleod, stephano, tim.orling
Version: unspecified   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2018-02-20 04:10:25 UTC
The layer index provides a REST API to allow applications and scripts (such as Toaster) to retrieve information from the index. I added some functionality to the API recently and unintentionally changed part of it in a way that broke Toaster by sending it information in a form it could no longer interpret. To avoid this happening in future we should write some tests for the layer index API that verify it is sending back json containing the expected fields.
Comment 1 Paul Eggleton 2018-02-20 04:12:22 UTC
Here's the API on OE's live instance:

http://layers.openembedded.org/layerindex/api/

We'd be testing the json output rather than the web version, e.g. for branches:

http://layers.openembedded.org/layerindex/api/branches/?format=json
Comment 2 Randy MacLeod 2023-10-24 14:24:32 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 3 Tim Orling 2026-02-12 16:55:34 UTC
Still valid. Perhaps with some help from genAI this can get going. Moving to 6.99.