File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ module.exports = defineConfig({
17
17
env : {
18
18
ENGINE : {
19
19
name : 'default' ,
20
- url : 'http://localhost:9200' ,
20
+ url : undefined ,
21
21
} ,
22
22
SECONDARY_ENGINE : {
23
23
name : 'test_cluster' ,
24
- url : 'http://localhost:9200' ,
24
+ url : undefined ,
25
25
} ,
26
26
S3_ENGINE : {
27
27
name : 'BasicS3Connection' ,
Original file line number Diff line number Diff line change 5
5
6
6
export * from './apps/constants' ;
7
7
8
+ // ToDo: `BASE_PATH` need not and should not be used by any test; remove it!
8
9
export const BASE_PATH = Cypress . config ( 'baseUrl' ) ;
10
+
9
11
export const BASE_ENGINE = Cypress . env ( 'ENGINE' ) ;
12
+ // If SECONDARY_ENGINE.url is not provided, use the OpenSearch instance
13
+ BASE_ENGINE . url = BASE_ENGINE . url || Cypress . env ( 'openSearchUrl' ) ;
14
+
10
15
export const SECONDARY_ENGINE = Cypress . env ( 'SECONDARY_ENGINE' ) ;
16
+ // If SECONDARY_ENGINE.url is not provided, use the OpenSearch instance
17
+ SECONDARY_ENGINE . url = SECONDARY_ENGINE . url || Cypress . env ( 'openSearchUrl' ) ;
11
18
12
19
export const PATHS = {
13
20
BASE : BASE_PATH ,
You can’t perform that action at this time.
0 commit comments