Skip to content

Commit

Permalink
PMM-13592 test for server image size
Browse files Browse the repository at this point in the history
  • Loading branch information
yurkovychv committed Jan 14, 2025
1 parent b73aa59 commit 295d9b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/tests/generic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ test.describe('PMM Client "Generic" CLI tests', async () => {
await output.outContains('Node name: ');
});

test('Verify pmm-server container image size in not more than 2.8GB', async ({}) => {
const output = await cli.exec('docker image ls | grep pmm-server | awk \'{print $7}\'');
const size = parseFloat(output.stdout.trim().split('GB')[0]);

expect(size).toBeLessThanOrEqual(2.8);
});

/**
* @link https://github.com/percona/pmm-qa/blob/main/pmm-tests/pmm-2-0-bats-tests/generic-tests.bats#L8
* @link https://github.com/percona/pmm-qa/blob/main/pmm-tests/pmm-2-0-bats-tests/generic-tests.bats#L18
Expand Down

0 comments on commit 295d9b9

Please sign in to comment.