Skip to content

Conversation

@josephjclark
Copy link
Collaborator

Attempt to create an integration test for collections

I've updated the lightning mock to use the mock collections API in the adaptor (needs pnpm link to work)

The integration tests uses a real lightning mock server, and so far as I can tell its hitting the endpoint (kinda wierd to debug). But for some reason it always returns a 404? Or an error deep in adaptor code.

I also notice that the collections adaptor verison isn't listed in the versions list. Neither is common for that matter.

@github-project-automation github-project-automation bot moved this to New Issues in v2 Dec 30, 2025
@josephjclark
Copy link
Collaborator Author

I think it's just something wrong in the mocked response structure. Can't see what. Time for a break.

@josephjclark
Copy link
Collaborator Author

Ah got it - it was me all along. A collection value MUST be a string. I was adding objects using the debug API.

Maybe a good idea for the mock API to throw in these case eh

@josephjclark
Copy link
Collaborator Author

Good: I'll re-test this tomorrow once the collections adaptor is released

@josephjclark josephjclark marked this pull request as ready for review January 2, 2026 17:42
@josephjclark josephjclark merged commit cf51777 into cli-collections Jan 2, 2026
4 of 6 checks passed
@josephjclark josephjclark deleted the collections-test branch January 2, 2026 17:42
@github-project-automation github-project-automation bot moved this from New Issues to Done in v2 Jan 2, 2026
josephjclark added a commit that referenced this pull request Jan 4, 2026
* cli: auto-append collections adaptor

* changeset

* track collections on credentials

* cli: execute with collections

* update command aliases

* make api-token/pat usage more consistent

* lightning mock: add  very basic collections support

* changeset

* Collections integration test (#1199)

* attempt test

* fix test

* tidying

* reduce minimum release age and install

* fix lockfile

* remove adaptor override

* package lock again

* more cleanup

* remove another wierd local dep

* package lock yet again

* fix an option conflict

* fix the mock

* update mock to better match lightning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants