Merge pull request #675 from crazy-max/undock-fix-itg
undock: fix integration test
This commit is contained in:
@@ -17,13 +17,10 @@
|
|||||||
import {describe, expect, it} from '@jest/globals';
|
import {describe, expect, it} from '@jest/globals';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import os from 'os';
|
import os from 'os';
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
import {Undock} from '../../src/undock/undock';
|
import {Undock} from '../../src/undock/undock';
|
||||||
import {Install as UndockInstall} from '../../src/undock/install';
|
import {Install as UndockInstall} from '../../src/undock/install';
|
||||||
|
|
||||||
const tmpDir = fs.mkdtempSync(path.join(process.env.TEMP || os.tmpdir(), 'undock-itg-'));
|
|
||||||
|
|
||||||
describe('run', () => {
|
describe('run', () => {
|
||||||
it('extracts moby/moby-bin:26.1.5', async () => {
|
it('extracts moby/moby-bin:26.1.5', async () => {
|
||||||
const install = new UndockInstall();
|
const install = new UndockInstall();
|
||||||
@@ -41,9 +38,8 @@ describe('run', () => {
|
|||||||
(async () => {
|
(async () => {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
await undock.run({
|
await undock.run({
|
||||||
source: 'moby/moby-bin:26.1.5',
|
source: 'docker/buildx-bin:0.23.0',
|
||||||
dist: tmpDir,
|
dist: os.tmpdir()
|
||||||
all: true
|
|
||||||
});
|
});
|
||||||
})()
|
})()
|
||||||
).resolves.not.toThrow();
|
).resolves.not.toThrow();
|
||||||
|
|||||||
Reference in New Issue
Block a user