Skip to content

Commit ab8fabd

Browse files
committed
tmp
1 parent da5af92 commit ab8fabd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ui-test/tests/deploy.kubernetes.run.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ describe('Camel standalone file deployment using Camel JBang Kubernetes Run', fu
5555
await killTerminal();
5656
await editorView.closeAllEditors();
5757
// remove deployed integration from a local cluster
58-
execSync('jbang camel@apache/camel kubernetes delete --name=demoroute', { stdio: 'inherit', cwd: RESOURCES_PATH });
58+
// TODO pay attention to change 4.9.0-SNAPSHOT to some stable version
59+
execSync('jbang -Dcamel.jbang.version=4.9.0-SNAPSHOT camel@apache/camel kubernetes delete --name=demoroute', { stdio: 'inherit', cwd: RESOURCES_PATH });
5960
});
6061

6162
it('Deploy integration to Kubernetes (Minikube)', async function () {
@@ -74,7 +75,7 @@ describe('Camel standalone file deployment using Camel JBang Kubernetes Run', fu
7475
}, 10_000, 'New terminal shell was not opened properly.', 2_000);
7576
// skip 'await' for async function to allow continue test after terminal command execution which would be blocking thread for infinity
7677
// eslint-disable-next-line @typescript-eslint/no-floating-promises
77-
terminalView.executeCommand('jbang camel@apache/camel kubernetes logs --name=demoroute');
78+
terminalView.executeCommand('jbang -Dcamel.jbang.version=4.9.0-SNAPSHOT camel@apache/camel kubernetes logs --name=demoroute'); // TODO pay attention to change 4.9.0-SNAPSHOT to some stable version
7879
await waitUntilTerminalHasText(action.getDriver(), ['Hello Camel from'], 3_000, 120_000);
7980
});
8081

src/ui-test/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export async function waitUntilTerminalHasText(driver: WebDriver, textArray: str
154154
try {
155155
const terminal = await activateTerminalView();
156156
const terminalText = await terminal.getText();
157+
console.log("🚀 ~ terminalText:", terminalText);
157158
for await (const text of textArray) {
158159
if (!(terminalText.includes(text))) {
159160
return false;

0 commit comments

Comments
 (0)