kubectl system run test
parent
6487d8f07c
commit
61e8452dc1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue