File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
plugins/dashboards-assistant Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 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 } ) ;
Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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
3132Cypress . Commands . add ( 'addAssistantRequiredSettings' , ( ) => {
3233 cy . request ( 'PUT' , `${ BACKEND_BASE_PATH } /_cluster/settings` , clusterSettings ) ;
@@ -85,7 +86,7 @@ Cypress.Commands.add('prepareAssistantAgents', () => {
8586Cypress . 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>' ,
You can’t perform that action at this time.
0 commit comments