kubectl system run test

pull/496/head
Frostebite 2023-02-16 18:30:49 +00:00
parent 6487d8f07c
commit 61e8452dc1
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,7 @@ describe('Cloud Runner Locking', () => {
expect( expect(
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters), await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
).toBeTruthy(); ).toBeTruthy();
expect(CloudRunner.lockedWorkspace).toMatch(newWorkspaceName);
}, 150000); }, 150000);
it(`Get Or Create From Locked`, async () => { it(`Get Or Create From Locked`, async () => {
Cli.options.retainWorkspaces = true; Cli.options.retainWorkspaces = true;
@ -148,6 +149,7 @@ describe('Cloud Runner Locking', () => {
expect( expect(
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters), await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
).toBeTruthy(); ).toBeTruthy();
expect(CloudRunner.lockedWorkspace === newWorkspaceName).toBeTruthy();
}, 150000); }, 150000);
it(`Get Or Create From Unlocked Was Locked`, async () => { it(`Get Or Create From Unlocked Was Locked`, async () => {
Cli.options.retainWorkspaces = true; Cli.options.retainWorkspaces = true;
@ -170,6 +172,7 @@ describe('Cloud Runner Locking', () => {
expect( expect(
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters), await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
).toBeTruthy(); ).toBeTruthy();
expect(CloudRunner.lockedWorkspace === newWorkspaceName).toBeTruthy();
}, 150000); }, 150000);
it.skip('All Locking Actions', async () => { it.skip('All Locking Actions', async () => {
Cli.options.retainWorkspaces = true; Cli.options.retainWorkspaces = true;