Bug 12560 - Add tests for layer index API
Summary: Add tests for layer index API
Status: NEW
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.99
Assignee: Unassigned
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-02-20 04:10 UTC by Paul Eggleton
Modified: 2026-02-12 16:55 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.