-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip synthetics tests if no docker image
- Loading branch information
1 parent
df647c3
commit 8e67a36
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Context } from 'mocha'; | ||
import { ToolingLog } from '@kbn/dev-utils'; | ||
import { FtrProviderContext } from '../api_integration/ftr_provider_context'; | ||
|
||
export function skipIfNoDockerRegistry(providerContext: FtrProviderContext) { | ||
const { getService } = providerContext; | ||
const dockerServers = getService('dockerServers'); | ||
|
||
const server = dockerServers.get('registry'); | ||
const log = getService('log'); | ||
|
||
beforeEach(function beforeSetupWithDockerRegistry() { | ||
if (!server.enabled) { | ||
warnAndSkipTest(this, log); | ||
} | ||
}); | ||
} |