diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e12d7e2..8bf3c66e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -343,7 +343,7 @@ integration:docker: - > nix-shell --arg ci true --run $' image_and_tag="$(docker load --input ./builds/*docker* | cut -d\' \' -f3)"; - docker tag "$image_and_tag" "polykey:testTarget"; + docker tag "$image_and_tag" "polykey-cli:testtarget"; npm run test tests/integration/docker; ' rules: diff --git a/tests/integration/docker/docker.test.ts b/tests/integration/docker/docker.test.ts index 49d077ea..9b5550f6 100644 --- a/tests/integration/docker/docker.test.ts +++ b/tests/integration/docker/docker.test.ts @@ -9,11 +9,16 @@ import Logger, { LogLevel, StreamHandler } from '@matrixai/logger'; import { encodeNodeId } from 'polykey/dist/ids'; import * as testUtils from '../../utils'; +/** + * These tests run against a docker image of a PolykeyAgent. + * For these tests to run properly the image must be tagged as `polykey-cli:testtarget` + */ + describe('asd', () => { const commandFactory = (cwd: string) => { const dockerOptions = testUtils.generateDockerArgs(cwd).join(' '); // Return undefined - return `docker run ${dockerOptions} polykey:testTarget`; + return `docker run ${dockerOptions} polykey-cli:testtarget`; }; const logger = new Logger('start test', LogLevel.WARN, [new StreamHandler()]);