Skip to content

Commit 6084d07

Browse files
committed
Add more logs
Signed-off-by: Lin Wang <[email protected]>
1 parent 5f7e47f commit 6084d07

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

cypress/support/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ if (
9494
) {
9595
before(() => {
9696
const originalBackendEndpoint = currentBackendEndpoint.get();
97+
cy.log('originalBackendEndpoint:' + originalBackendEndpoint);
9798
currentBackendEndpoint.set(currentBackendEndpoint.REMOTE_NO_AUTH);
9899
cy.addAssistantRequiredSettings();
99100
cy.prepareAssistantAgents();
101+
cy.log('start set originalBackendEndpoint:' + originalBackendEndpoint);
100102
currentBackendEndpoint.set(originalBackendEndpoint, false);
101103
cy.startDummyServer();
102104
});

cypress/utils/commands.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ export const currentBackendEndpoint = (() => {
6060
}
6161
},
6262
get() {
63-
Cypress.log({
64-
name: ' Get current endpoint',
65-
displayName: 'GCE',
66-
message: currentEndpoint,
67-
});
6863
return currentEndpoint;
6964
},
7065
});

cypress/utils/plugins/dashboards-assistant/commands.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
certPrivateKeyContent,
2828
certPublicKeyContent,
2929
} from '../../../fixtures/plugins/dashboards-assistant/security-cert';
30+
import { currentBackendEndpoint } from '../../commands';
3031

3132
Cypress.Commands.add('addAssistantRequiredSettings', () => {
3233
cy.request('PUT', `${BACKEND_BASE_PATH}/_cluster/settings`, clusterSettings);
@@ -85,7 +86,7 @@ Cypress.Commands.add('prepareAssistantAgents', () => {
8586
Cypress.Commands.add(
8687
'readOrRegisterRootAgent',
8788
({ type, agentName, flowTemplateJSON }) =>
88-
cy
89+
cy.log("current endpoint:"+ currentBackendEndpoint.get())
8990
.request({
9091
url: `${BACKEND_BASE_PATH}${ML_COMMONS_API.AGENT_CONFIG.replace(
9192
'<agent_name>',

0 commit comments

Comments
 (0)