From 692f4fc8cf910475c6f002be1c1255a0bb18af23 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Mon, 27 Jan 2020 17:35:37 -0500 Subject: [PATCH] Add some failures for testing --- Jenkinsfile | 90 +++++++++---------- test/functional/apps/console/_console.ts | 4 + .../custom_element_collector.test.ts | 4 + 3 files changed, 53 insertions(+), 45 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4e6f3141a12e7..26379890059f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,56 +11,56 @@ stage("Kibana Pipeline") { // This stage is just here to help the BlueOcean UI a catchError { retryable.enable() parallel([ - 'kibana-intake-agent': kibanaPipeline.intakeWorker('kibana-intake', './test/scripts/jenkins_unit.sh'), + // 'kibana-intake-agent': kibanaPipeline.intakeWorker('kibana-intake', './test/scripts/jenkins_unit.sh'), 'x-pack-intake-agent': kibanaPipeline.intakeWorker('x-pack-intake', './test/scripts/jenkins_xpack.sh'), 'kibana-oss-agent': kibanaPipeline.withWorkers('kibana-oss-tests', { kibanaPipeline.buildOss() }, [ - 'oss-firefoxSmoke': kibanaPipeline.getPostBuildWorker('firefoxSmoke', { - retryable('kibana-firefoxSmoke') { - runbld('./test/scripts/jenkins_firefox_smoke.sh', 'Execute kibana-firefoxSmoke') - } - }), + // 'oss-firefoxSmoke': kibanaPipeline.getPostBuildWorker('firefoxSmoke', { + // retryable('kibana-firefoxSmoke') { + // runbld('./test/scripts/jenkins_firefox_smoke.sh', 'Execute kibana-firefoxSmoke') + // } + // }), 'oss-ciGroup1': kibanaPipeline.getOssCiGroupWorker(1), - 'oss-ciGroup2': kibanaPipeline.getOssCiGroupWorker(2), - 'oss-ciGroup3': kibanaPipeline.getOssCiGroupWorker(3), - 'oss-ciGroup4': kibanaPipeline.getOssCiGroupWorker(4), - 'oss-ciGroup5': kibanaPipeline.getOssCiGroupWorker(5), - 'oss-ciGroup6': kibanaPipeline.getOssCiGroupWorker(6), - 'oss-ciGroup7': kibanaPipeline.getOssCiGroupWorker(7), - 'oss-ciGroup8': kibanaPipeline.getOssCiGroupWorker(8), - 'oss-ciGroup9': kibanaPipeline.getOssCiGroupWorker(9), - 'oss-ciGroup10': kibanaPipeline.getOssCiGroupWorker(10), - 'oss-ciGroup11': kibanaPipeline.getOssCiGroupWorker(11), - 'oss-ciGroup12': kibanaPipeline.getOssCiGroupWorker(12), - 'oss-accessibility': kibanaPipeline.getPostBuildWorker('accessibility', { - retryable('kibana-accessibility') { - runbld('./test/scripts/jenkins_accessibility.sh', 'Execute kibana-accessibility') - } - }), + // 'oss-ciGroup2': kibanaPipeline.getOssCiGroupWorker(2), + // 'oss-ciGroup3': kibanaPipeline.getOssCiGroupWorker(3), + // 'oss-ciGroup4': kibanaPipeline.getOssCiGroupWorker(4), + // 'oss-ciGroup5': kibanaPipeline.getOssCiGroupWorker(5), + // 'oss-ciGroup6': kibanaPipeline.getOssCiGroupWorker(6), + // 'oss-ciGroup7': kibanaPipeline.getOssCiGroupWorker(7), + // 'oss-ciGroup8': kibanaPipeline.getOssCiGroupWorker(8), + // 'oss-ciGroup9': kibanaPipeline.getOssCiGroupWorker(9), + // 'oss-ciGroup10': kibanaPipeline.getOssCiGroupWorker(10), + // 'oss-ciGroup11': kibanaPipeline.getOssCiGroupWorker(11), + // 'oss-ciGroup12': kibanaPipeline.getOssCiGroupWorker(12), + // 'oss-accessibility': kibanaPipeline.getPostBuildWorker('accessibility', { + // retryable('kibana-accessibility') { + // runbld('./test/scripts/jenkins_accessibility.sh', 'Execute kibana-accessibility') + // } + // }), // 'oss-visualRegression': kibanaPipeline.getPostBuildWorker('visualRegression', { runbld('./test/scripts/jenkins_visual_regression.sh', 'Execute kibana-visualRegression') }), ]), - 'kibana-xpack-agent': kibanaPipeline.withWorkers('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [ - 'xpack-firefoxSmoke': kibanaPipeline.getPostBuildWorker('xpack-firefoxSmoke', { - retryable('xpack-firefoxSmoke') { - runbld('./test/scripts/jenkins_xpack_firefox_smoke.sh', 'Execute xpack-firefoxSmoke') - } - }), - 'xpack-ciGroup1': kibanaPipeline.getXpackCiGroupWorker(1), - 'xpack-ciGroup2': kibanaPipeline.getXpackCiGroupWorker(2), - 'xpack-ciGroup3': kibanaPipeline.getXpackCiGroupWorker(3), - 'xpack-ciGroup4': kibanaPipeline.getXpackCiGroupWorker(4), - 'xpack-ciGroup5': kibanaPipeline.getXpackCiGroupWorker(5), - 'xpack-ciGroup6': kibanaPipeline.getXpackCiGroupWorker(6), - 'xpack-ciGroup7': kibanaPipeline.getXpackCiGroupWorker(7), - 'xpack-ciGroup8': kibanaPipeline.getXpackCiGroupWorker(8), - 'xpack-ciGroup9': kibanaPipeline.getXpackCiGroupWorker(9), - 'xpack-ciGroup10': kibanaPipeline.getXpackCiGroupWorker(10), - 'xpack-accessibility': kibanaPipeline.getPostBuildWorker('xpack-accessibility', { - retryable('xpack-accessibility') { - runbld('./test/scripts/jenkins_xpack_accessibility.sh', 'Execute xpack-accessibility') - } - }), - // 'xpack-visualRegression': kibanaPipeline.getPostBuildWorker('xpack-visualRegression', { runbld('./test/scripts/jenkins_xpack_visual_regression.sh', 'Execute xpack-visualRegression') }), - ]), + // 'kibana-xpack-agent': kibanaPipeline.withWorkers('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [ + // 'xpack-firefoxSmoke': kibanaPipeline.getPostBuildWorker('xpack-firefoxSmoke', { + // retryable('xpack-firefoxSmoke') { + // runbld('./test/scripts/jenkins_xpack_firefox_smoke.sh', 'Execute xpack-firefoxSmoke') + // } + // }), + // 'xpack-ciGroup1': kibanaPipeline.getXpackCiGroupWorker(1), + // 'xpack-ciGroup2': kibanaPipeline.getXpackCiGroupWorker(2), + // 'xpack-ciGroup3': kibanaPipeline.getXpackCiGroupWorker(3), + // 'xpack-ciGroup4': kibanaPipeline.getXpackCiGroupWorker(4), + // 'xpack-ciGroup5': kibanaPipeline.getXpackCiGroupWorker(5), + // 'xpack-ciGroup6': kibanaPipeline.getXpackCiGroupWorker(6), + // 'xpack-ciGroup7': kibanaPipeline.getXpackCiGroupWorker(7), + // 'xpack-ciGroup8': kibanaPipeline.getXpackCiGroupWorker(8), + // 'xpack-ciGroup9': kibanaPipeline.getXpackCiGroupWorker(9), + // 'xpack-ciGroup10': kibanaPipeline.getXpackCiGroupWorker(10), + // 'xpack-accessibility': kibanaPipeline.getPostBuildWorker('xpack-accessibility', { + // retryable('xpack-accessibility') { + // runbld('./test/scripts/jenkins_xpack_accessibility.sh', 'Execute xpack-accessibility') + // } + // }), + // // 'xpack-visualRegression': kibanaPipeline.getPostBuildWorker('xpack-visualRegression', { runbld('./test/scripts/jenkins_xpack_visual_regression.sh', 'Execute xpack-visualRegression') }), + // ]), ]) } } diff --git a/test/functional/apps/console/_console.ts b/test/functional/apps/console/_console.ts index 456752c0cd6eb..3a7c0ce340e2a 100644 --- a/test/functional/apps/console/_console.ts +++ b/test/functional/apps/console/_console.ts @@ -46,6 +46,10 @@ export default function({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.common.navigateToApp('console'); }); + it.only('fails', () => { + expect(true).to.eql(false); + }); + it('should show the default request', async () => { // collapse the help pane because we only get the VISIBLE TEXT, not the part that is scrolled // on IE11, the dialog that says 'Your browser does not meet the security requirements for Kibana.' diff --git a/x-pack/plugins/canvas/server/collectors/custom_element_collector.test.ts b/x-pack/plugins/canvas/server/collectors/custom_element_collector.test.ts index f09bb704b09e3..cc714b7329386 100644 --- a/x-pack/plugins/canvas/server/collectors/custom_element_collector.test.ts +++ b/x-pack/plugins/canvas/server/collectors/custom_element_collector.test.ts @@ -19,6 +19,10 @@ function mockCustomElement(...nodeExpressions: string[]): TelemetryCustomElement describe('custom_element_collector.handleResponse', () => { describe('invalid responses', () => { + it.only('fails', () => { + expect(false).toEqual(true); + }); + it('returns nothing if no valid hits', () => { expect(summarizeCustomElements([])).toEqual({}); });