Skip to content

Commit

Permalink
Expect failures on docker images v1 format
Browse files Browse the repository at this point in the history
Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release.

Change-type: patch
  • Loading branch information
otaviojacobi committed Jul 12, 2024
1 parent b850e25 commit b73b538
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions test/multibuild/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,11 @@ describe('Resolved project building', () => {
const newTask = resolveTask(task, 'amd64', 'intel-nuc', resolveListeners);

resolve(runBuildTask(newTask, docker, secretMap, buildVars));
})
.then((image) => {
expect(image).to.have.property('successful').that.equals(true);
return checkExists(image.name!);
})
.then((inspect: any) => {
expect(inspect).to.have.property('Architecture').that.equals('amd64');
});
}).then((image) => {
console.error('oi', image);
expect(image).to.have.property('successful').that.equals(false);
expect(image).to.have.property('error').that.is.not.null;
});
});

it('should build without "platform" flag (v1 manifest) for multi-stage builds', async () => {
Expand All @@ -349,14 +346,10 @@ describe('Resolved project building', () => {
const newTask = resolveTask(task, 'amd64', 'intel-nuc', resolveListeners);

resolve(runBuildTask(newTask, docker, secretMap, buildVars));
})
.then((image) => {
expect(image).to.have.property('successful').that.equals(true);
return checkExists(image.name!);
})
.then((inspect: any) => {
expect(inspect).to.have.property('Architecture').that.equals('amd64');
});
}).then((image) => {
expect(image).to.have.property('successful').that.equals(false);
expect(image).to.have.property('error').that.is.not.null;
});
});

it('should build using "platform" flag (v2 manifest) on third party registry', async () => {
Expand Down

0 comments on commit b73b538

Please sign in to comment.