44 * you may not use this file except in compliance with the Elastic License.
55 */
66
7- /* eslint-disable import/no-default-export */
8-
97import { resolve } from 'path' ;
108
9+ import { defineDockerServersConfig } from '@kbn/test' ;
10+ import { first , tap } from 'rxjs/operators' ;
11+
1112import { services } from './services' ;
1213import { pageObjects } from './page_objects' ;
1314
@@ -69,6 +70,30 @@ export default async function({ readConfigFile }) {
6970
7071 servers : kibanaFunctionalConfig . get ( 'servers' ) ,
7172
73+ dockerServers : defineDockerServersConfig (
74+ process . env . FLEET_PACKAGE_REGISTRY_PORT
75+ ? {
76+ helloWorld : {
77+ image : 'docker.elastic.co/package-registry/package-registry:master' ,
78+ portInContainer : 8080 ,
79+ port : process . env . FLEET_PACKAGE_REGISTRY_PORT ,
80+ waitForLogLine : 'package manifests loaded into memory' ,
81+ async waitFor ( server , logLine$ ) {
82+ await logLine$
83+ . pipe (
84+ first ( line => line . includes ( 'Package registry started' ) ) ,
85+ tap ( line => {
86+ console . log ( `waitFor found log line "${ line } "` ) ;
87+ console . log ( 'marking server ready' , server ) ;
88+ } )
89+ )
90+ . toPromise ( ) ;
91+ } ,
92+ } ,
93+ }
94+ : { }
95+ ) ,
96+
7297 esTestCluster : {
7398 license : 'trial' ,
7499 from : 'snapshot' ,
@@ -89,6 +114,8 @@ export default async function({ readConfigFile }) {
89114 '--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"' , // server restarts should not invalidate active sessions
90115 '--xpack.encryptedSavedObjects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"' ,
91116 '--timelion.ui.enabled=true' ,
117+ `--xpack.ingestManager.enabled=true` ,
118+ `--xpack.ingestManager.epm.registryUrl=http://localhost:${ process . env . FLEET_PACKAGE_REGISTRY_PORT } ` ,
92119 ] ,
93120 } ,
94121 uiSettings : {
0 commit comments