openvibers/openvibe.codes Commits
Tests follow the v0.28.0 pin
Changes
@@@ -1,6 +1,6 @@'use strict';/**-- * The released contracts (openvibe-contracts tag v0.27.0) describe what the code does: the codes++ * The released contracts (openvibe-contracts tag v0.28.0) describe what the code does: the codes* service manifest's events are exactly what the outbox can produce, its capabilities are the ones* the API guards with requireCapability, and the release API answers with the contracts' problems.*/@@@ -19,11 +19,11 @@ const sdkPkg = require('openvibe-sdk/package.json');await check('package.json pins the contracts, SDK and shared tags that are installed', async () => {const tag = (dep) => (pkg.dependencies[dep].match(/refs\/tags\/(v[0-9.]+)$/) || [])[1];-- assert.strictEqual(tag('openvibe-contracts'), 'v0.27.0');++ assert.strictEqual(tag('openvibe-contracts'), 'v0.28.0');assert.strictEqual(tag('openvibe-sdk'), `v${sdkPkg.version}`);assert.strictEqual(tag('openvibe-shared'), `v${require('openvibe-shared/package.json').version}`);assert.strictEqual(sdkPkg.version, '0.2.2');-- // The contracts tag v0.27.0 carries the released codes manifest and codes.app-manifest@1.++ // The contracts tag v0.28.0 carries the released codes manifest and codes.app-manifest@1.assert.ok(contracts.services.get('codes') && contracts.services.get('codes').status === 'alpha');assert.ok(contracts.resolve('codes.app-manifest@1'));});@@@ -33,13 +33,13 @@ const sdkPkg = require('openvibe-sdk/package.json');const r = await t.get(p);assert.strictEqual(r.status, 200, p);assert.ok(r.text.includes(`openvibe-contracts v${contractsVersion}`), `${p} names the installed contracts version`);-- assert.ok(r.text.includes('OpenVibe.Contracts/tree/v0.27.0'), `${p} links the pinned tag`);-- if (contractsVersion !== '0.27.0') assert.ok(r.text.includes('(tag v0.27.0)'), `${p} says the tag differs from the package version`);++ assert.ok(r.text.includes('OpenVibe.Contracts/tree/v0.28.0'), `${p} links the pinned tag`);++ if (contractsVersion !== '0.28.0') assert.ok(r.text.includes('(tag v0.28.0)'), `${p} says the tag differs from the package version`);assert.ok(r.text.includes(`openvibe-sdk v${sdkPkg.version}`), `${p} names the SDK version`);}const v = (await t.get('/api/v1/docs/versions')).json();assert.strictEqual(v.contracts, contractsVersion);-- assert.strictEqual(v.contracts_tag, 'v0.27.0');++ assert.strictEqual(v.contracts_tag, 'v0.28.0');assert.strictEqual(v.sdk, sdkPkg.version);});
@@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
'use strict';
'use strict';
/**
/**
- * The released contracts (openvibe-contracts tag v0.27.0) describe what the code does: the codes
+ * The released contracts (openvibe-contracts tag v0.28.0) describe what the code does: the codes
* service manifest's events are exactly what the outbox can produce, its capabilities are the ones
* service manifest's events are exactly what the outbox can produce, its capabilities are the ones
* the API guards with requireCapability, and the release API answers with the contracts' problems.
* the API guards with requireCapability, and the release API answers with the contracts' problems.
*/
*/
@@ -19,11 +19,11 @@ const sdkPkg = require('openvibe-sdk/package.json');
@@ -19,11 +19,11 @@ const sdkPkg = require('openvibe-sdk/package.json');
await check('package.json pins the contracts, SDK and shared tags that are installed', async () => {
await check('package.json pins the contracts, SDK and shared tags that are installed', async () => {
const tag = (dep) => (pkg.dependencies[dep].match(/refs\/tags\/(v[0-9.]+)$/) || [])[1];
const tag = (dep) => (pkg.dependencies[dep].match(/refs\/tags\/(v[0-9.]+)$/) || [])[1];
- assert.strictEqual(tag('openvibe-contracts'), 'v0.27.0');
+ assert.strictEqual(tag('openvibe-contracts'), 'v0.28.0');
assert.strictEqual(tag('openvibe-sdk'), `v${sdkPkg.version}`);
assert.strictEqual(tag('openvibe-sdk'), `v${sdkPkg.version}`);
assert.strictEqual(tag('openvibe-shared'), `v${require('openvibe-shared/package.json').version}`);
assert.strictEqual(tag('openvibe-shared'), `v${require('openvibe-shared/package.json').version}`);
assert.strictEqual(sdkPkg.version, '0.2.2');
assert.strictEqual(sdkPkg.version, '0.2.2');
- // The contracts tag v0.27.0 carries the released codes manifest and codes.app-manifest@1.
+ // The contracts tag v0.28.0 carries the released codes manifest and codes.app-manifest@1.
assert.ok(contracts.services.get('codes') && contracts.services.get('codes').status === 'alpha');
assert.ok(contracts.services.get('codes') && contracts.services.get('codes').status === 'alpha');
assert.ok(contracts.resolve('codes.app-manifest@1'));
assert.ok(contracts.resolve('codes.app-manifest@1'));
});
});
@@ -33,13 +33,13 @@ const sdkPkg = require('openvibe-sdk/package.json');
@@ -33,13 +33,13 @@ const sdkPkg = require('openvibe-sdk/package.json');
const r = await t.get(p);
const r = await t.get(p);
assert.strictEqual(r.status, 200, p);
assert.strictEqual(r.status, 200, p);
assert.ok(r.text.includes(`openvibe-contracts v${contractsVersion}`), `${p} names the installed contracts version`);
assert.ok(r.text.includes(`openvibe-contracts v${contractsVersion}`), `${p} names the installed contracts version`);
- assert.ok(r.text.includes('OpenVibe.Contracts/tree/v0.27.0'), `${p} links the pinned tag`);
- if (contractsVersion !== '0.27.0') assert.ok(r.text.includes('(tag v0.27.0)'), `${p} says the tag differs from the package version`);
+ assert.ok(r.text.includes('OpenVibe.Contracts/tree/v0.28.0'), `${p} links the pinned tag`);
+ if (contractsVersion !== '0.28.0') assert.ok(r.text.includes('(tag v0.28.0)'), `${p} says the tag differs from the package version`);
assert.ok(r.text.includes(`openvibe-sdk v${sdkPkg.version}`), `${p} names the SDK version`);
assert.ok(r.text.includes(`openvibe-sdk v${sdkPkg.version}`), `${p} names the SDK version`);
}
}
const v = (await t.get('/api/v1/docs/versions')).json();
const v = (await t.get('/api/v1/docs/versions')).json();
assert.strictEqual(v.contracts, contractsVersion);
assert.strictEqual(v.contracts, contractsVersion);
- assert.strictEqual(v.contracts_tag, 'v0.27.0');
+ assert.strictEqual(v.contracts_tag, 'v0.28.0');
assert.strictEqual(v.sdk, sdkPkg.version);
assert.strictEqual(v.sdk, sdkPkg.version);
});
});