Skip to content

Commit

Permalink
tests: updating how docker tests are run
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tegefaulkes committed Dec 19, 2023
1 parent dff1543 commit 9614a48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion tests/integration/docker/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()]);
Expand Down

0 comments on commit 9614a48

Please sign in to comment.