V0.38.4 full composition (#237)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -95,6 +95,22 @@
|
||||
T.assert(r.id === globalId, 'should match global connection by name');
|
||||
});
|
||||
|
||||
// ── Connection Type Discovery (v0.38.4) ──
|
||||
|
||||
await T.test('connections', 'types-list', 'GET /connection-types returns array', async function () {
|
||||
var r = await sw.api.connectionTypes.list();
|
||||
T.assert(Array.isArray(r), 'should be array');
|
||||
});
|
||||
|
||||
await T.test('connections', 'types-include-sdk-test', 'connection types include sdk-test-conn from global conn', async function () {
|
||||
// The global connection we created above references package_id sdk-test-pkg
|
||||
// but that package may not exist. The endpoint scans active package manifests,
|
||||
// so this test verifies the endpoint returns without error. Actual type matching
|
||||
// is tested in the composition domain with a real library.
|
||||
var r = await sw.api.connectionTypes.list();
|
||||
T.assert(Array.isArray(r), 'should be array (may be empty if no packages declare connections)');
|
||||
});
|
||||
|
||||
// ── Cleanup ──────────────────────────────
|
||||
|
||||
await T.test('connections', 'personal-delete', 'delete personal connection', async function () {
|
||||
|
||||
Reference in New Issue
Block a user