Update @balena/compose to 4.0.1

Update @balena/compose from 3.2.1 to 4.0.1

Change-type: major
This commit is contained in:
Otavio Jacobi 2024-07-19 10:23:43 -03:00
parent 63674c8201
commit c9fa10b9c6
5 changed files with 371 additions and 399 deletions

View File

@ -97,8 +97,8 @@ export default class FleetsCmd extends Command {
'app_name => NAME',
'slug',
'device_type',
'online_devices',
'device_count',
'online_devices',
]),
);
}

749
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -199,7 +199,7 @@
"typescript": "^5.5.2"
},
"dependencies": {
"@balena/compose": "^3.2.1",
"@balena/compose": "^4.0.1",
"@balena/dockerignore": "^1.0.2",
"@balena/env-parsing": "^1.1.8",
"@balena/es-version": "^1.0.1",

View File

@ -87,7 +87,6 @@ describe('balena deploy', function () {
api.expectGetRelease();
api.expectGetUser();
api.expectGetService({ serviceName: 'main' });
api.expectPostService409();
api.expectGetAuth();
api.expectPostImage();
api.expectPostImageIsPartOfRelease();

View File

@ -390,9 +390,12 @@ export class BalenaAPIMock extends NockMock {
serviceName: string;
}) {
const serviceId = opts.serviceId || 243768;
this.optGet(/^\/v\d+\/service($|\?)/, opts).reply(200, {
d: [{ id: serviceId, service_name: opts.serviceName }],
});
this.optGet(/^\/v\d+\/service(\(\w+=\d+,\w+=%27\w+%27\))?$/, opts).reply(
200,
{
d: [{ id: serviceId, service_name: opts.serviceName }],
},
);
}
public expectGetServiceFromApp(opts: {
@ -410,13 +413,6 @@ export class BalenaAPIMock extends NockMock {
);
}
public expectPostService409(opts: ScopeOpts = {}) {
this.optPost(/^\/v\d+\/service$/, opts).reply(
409,
'Unique key constraint violated',
);
}
/**
* Mocks balena-release call
*/