Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing vm tests #3826

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions packages/grid_client/tests/modules/vm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,9 @@ test("TC1229 - VM: Deploy a VM With a Disk", async () => {
//Verify that the disk was added successfully.
await ssh.execCommand("df -h").then(async function (result) {
const splittedRes = result.stdout.split("\n");
log(splittedRes[4]);
expect(splittedRes[4]).toContain(mountPoint);
expect(splittedRes[4]).toContain(diskSize.toString());
log(splittedRes[5]);
expect(splittedRes[5]).toContain(mountPoint);
expect(splittedRes[5]).toContain(diskSize.toString());
});
} finally {
//Disconnect from the machine
Expand Down Expand Up @@ -727,7 +727,11 @@ test("TC1230 - VM: Deploy Multiple VMs on Different Nodes", async () => {
log(result.stdout);
expect(result.stdout).toContain(vmEnvVarValue[maxIterations]);
});

await ssh.execCommand("apk add util-linux").then(function (result) {
if (result.stderr) {
throw new Error("Failed to install util-linux");
}
});
//Verify VM Resources(CPU)
await ssh.execCommand("lscpu").then(async function (result) {
const splittedRes = result.stdout.split("\n");
Expand Down
Loading