Skip to content

Commit 1058ede

Browse files
authored
fix push information (#2647)
Signed-off-by: Mohit Suman <mohit.skn@gmail.com> Signed-off-by: Mohit Suman <mohit.skn@gmail.com>
1 parent d1263c5 commit 1058ede

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/openshift/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export class Component extends OpenShiftItem {
557557
commands.executeCommand('openshift.componentsView.refresh');
558558
}
559559

560-
const result: any = new String(`Component '${componentName}' successfully created. To deploy it on cluster, perform 'Push' action.`);
560+
const result: any = new String(`Component '${componentName}' successfully created. Perform actions on it from Components View.`);
561561
result.properties = creatComponentProperties;
562562
return result;
563563
} catch (err) {

test/unit/openshift/component.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ suite('OpenShift/Component', () => {
131131
test('happy path works', async () => {
132132
const result = await Component.create(appItem);
133133

134-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
134+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
135135
expect(progressFunctionStub).calledOnceWith(
136136
`Creating new Component '${componentItem.getName()}'`);
137137
expect(execStub).calledWith(Command.createLocalComponent(componentType.name, undefined, componentItem.getName(), folder.uri.fsPath));
@@ -270,7 +270,7 @@ suite('OpenShift/Component', () => {
270270
inputStub.resolves(componentItem.getName());
271271
quickPickStub.onSecondCall().resolves(componentType);
272272
const result = await Component.createFromRootWorkspaceFolder(folder);
273-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
273+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
274274
});
275275

276276
test('skips component type selection if componentTypeName provided and only one type found in registries', async () => {
@@ -284,7 +284,7 @@ suite('OpenShift/Component', () => {
284284
)
285285
]);
286286
const result = await Component.createFromRootWorkspaceFolder(folder, [], undefined, 'componentType1');
287-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
287+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
288288
expect(quickPickStub).calledOnce;
289289
expect(quickPickStub).have.not.calledWith({ placeHolder: 'Component type' })
290290
});
@@ -310,7 +310,7 @@ suite('OpenShift/Component', () => {
310310
componentType1, componentType2
311311
]);
312312
const result = await Component.createFromRootWorkspaceFolder(folder, [], undefined, 'componentType1');
313-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
313+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
314314
expect(quickPickStub).calledTwice;
315315
expect(quickPickStub).calledWith([componentType1, componentType2]);
316316
});
@@ -328,7 +328,7 @@ suite('OpenShift/Component', () => {
328328
componentType1
329329
]);
330330
const result = await Component.createFromRootWorkspaceFolder(folder, [], undefined, 'componentType1');
331-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
331+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
332332
expect(quickPickStub).calledTwice;
333333
expect(quickPickStub).calledWith([componentType1]);
334334
});
@@ -341,7 +341,7 @@ suite('OpenShift/Component', () => {
341341
' name: componentName'
342342
);
343343
const result = await Component.createFromRootWorkspaceFolder(folder, [], undefined, 'componentType1');
344-
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. To deploy it on cluster, perform 'Push' action.`);
344+
expect(result.toString()).equals(`Component '${componentItem.getName()}' successfully created. Perform actions on it from Components View.`);
345345
});
346346

347347

0 commit comments

Comments
 (0)