Improve remote runtime cache logging
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
createRemoteEphemeralBootstrapCommand,
|
||||
createRemoteEphemeralReadinessCommand,
|
||||
createRemoteEphemeralRuntimeCacheCheckCommand,
|
||||
createRemoteEphemeralRuntimeMarkCommand,
|
||||
createRemoteBootstrapCommand,
|
||||
createRemoteInstallCommand,
|
||||
createRemoteServerInstallPlan,
|
||||
@@ -113,4 +114,16 @@ tap.test('should render ephemeral runtime cache check command', async () => {
|
||||
expect(cacheCheckCommand).toInclude('runtimeCache=hit');
|
||||
});
|
||||
|
||||
tap.test('should render ephemeral runtime mark command', async () => {
|
||||
const markCommand = createRemoteEphemeralRuntimeMarkCommand({
|
||||
runtimeRoot: '/tmp/gitzone-ide-0.1.0-deadbeef',
|
||||
runtimeSha256: 'deadbeef',
|
||||
});
|
||||
|
||||
expect(markCommand).toInclude('.gitzone-runtime-sha256.tmp');
|
||||
expect(markCommand).toInclude("printf '%s");
|
||||
expect(markCommand).toInclude("'deadbeef'");
|
||||
expect(markCommand).toInclude('runtimeCache=stored');
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
|
||||
Reference in New Issue
Block a user