Simplify provisioning operation details (Refs #86)
This commit is contained in:
@@ -330,7 +330,7 @@ describe('provisioning outcome and evidence presentation', () => {
|
||||
});
|
||||
const body = render(ProvisioningProgressView, { props: { detail, hostHistoryHref: '/hosts/operations?server=test&returnTo=%2Fprovisioning%2Foperation-a' } }).body;
|
||||
const commandStep = body.slice(body.indexOf('Create instance through host agent'), body.indexOf('Verify readiness'));
|
||||
for (const value of ['Remote response uncertain', detail.progress.command!.message, 'agent-command-a', 'Agent disconnected', 'View host operation history']) {
|
||||
for (const value of ['Remote response uncertain', detail.progress.command!.message, 'Agent disconnected', 'View host operation history']) {
|
||||
expect(commandStep).toContain(value);
|
||||
expect(body.split(value)).toHaveLength(2);
|
||||
}
|
||||
@@ -357,7 +357,6 @@ describe('provisioning outcome and evidence presentation', () => {
|
||||
detail.agentOperation = { id: 'legacy-agent-command', hostId: 'host-a', state: 'failed', createdAt: at, updatedAt: at, error: 'Command failed on host' };
|
||||
const body = render(ProvisioningProgressView, { props: { detail } }).body;
|
||||
expect(body).toContain('Detailed checkpoints were not recorded');
|
||||
expect(body).toContain('legacy-agent-command');
|
||||
expect(body).toContain('Command failed on host');
|
||||
expect(body).toContain('Stopped here');
|
||||
expect(body).not.toContain('Verify readiness');
|
||||
|
||||
Reference in New Issue
Block a user