Skip to content

Commit

Permalink
Cut down on all tests except for secops tests and one example of infr… (
Browse files Browse the repository at this point in the history
#24693)

* Cut down on all tests except for secops tests and one example of infra integration tests
* Commented out code for only this branch
* Added comments and "please see issue number"
* https://github.com/elastic/ingest-dev/issues/60
  • Loading branch information
FrankHassanabad authored and andrew-goldstein committed Dec 4, 2018
1 parent e565f0b commit 8de4294
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 30 deletions.
38 changes: 19 additions & 19 deletions .ci/jobs.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
JOB:
- kibana-intake
#- kibana-intake
- x-pack-intake
# make sure all kibana-ciGRoups are listed in tasks/function_test_groups.js
- kibana-ciGroup1
- kibana-ciGroup2
- kibana-ciGroup3
- kibana-ciGroup4
- kibana-ciGroup5
- kibana-ciGroup6
- kibana-ciGroup7
- kibana-ciGroup8
- kibana-ciGroup9
- kibana-ciGroup10
- kibana-ciGroup11
- kibana-ciGroup12
#- kibana-ciGroup1
#- kibana-ciGroup2
#- kibana-ciGroup3
#- kibana-ciGroup4
#- kibana-ciGroup5
#- kibana-ciGroup6
#- kibana-ciGroup7
#- kibana-ciGroup8
#- kibana-ciGroup9
#- kibana-ciGroup10
#- kibana-ciGroup11
#- kibana-ciGroup12
# make sure all x-pack-ciGroups are listed in test/scripts/jenkins_xpack_ci_group.sh
- x-pack-ciGroup1
- x-pack-ciGroup2
- x-pack-ciGroup3
- x-pack-ciGroup4
- x-pack-ciGroup5
- x-pack-ciGroup6
#- x-pack-ciGroup1
#- x-pack-ciGroup2
#- x-pack-ciGroup3
#- x-pack-ciGroup4
#- x-pack-ciGroup5
#- x-pack-ciGroup6

# `~` is yaml for `null`
exclude: ~
8 changes: 4 additions & 4 deletions test/scripts/jenkins_xpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ source src/dev/ci_setup/checkout_sibling_es.sh

export TEST_BROWSER_HEADLESS=1

echo " -> Running mocha tests"
echo " -> Skipping Running mocha tests (for secops only)"
cd "$XPACK_DIR"
yarn test
# yarn test
echo ""
echo ""


echo " -> Running jest tests"
echo " -> Running jest tests (for secops only)"
cd "$XPACK_DIR"
node scripts/jest --ci --no-cache --verbose
node scripts/jest --ci --no-cache --verbose secops
echo ""
echo ""
24 changes: 17 additions & 7 deletions x-pack/test/api_integration/apis/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
Expand All @@ -8,13 +9,22 @@ export default function ({ loadTestFile }) {
describe('apis', function () {
this.tags('ciGroup5');

loadTestFile(require.resolve('./es'));
loadTestFile(require.resolve('./security'));
loadTestFile(require.resolve('./monitoring'));
loadTestFile(require.resolve('./xpack_main'));
loadTestFile(require.resolve('./logstash'));
loadTestFile(require.resolve('./kibana'));
// These commented out tests are only for within the secops branch and should not be merged into master
// loadTestFile(require.resolve('./es'));
// loadTestFile(require.resolve('./security'));
// loadTestFile(require.resolve('./monitoring'));
// loadTestFile(require.resolve('./xpack_main'));
// loadTestFile(require.resolve('./logstash'));
// loadTestFile(require.resolve('./kibana'));

// TODO: I am only running infra at the moment
// but in reality I should not be running infra and
// should instead be running secops which still needs
// to be built. I kept this api integration test running for right now
// as an example. -- Frank H.
// See completion of issue: https://github.com/elastic/ingest-dev/issues/56
loadTestFile(require.resolve('./infra'));
loadTestFile(require.resolve('./beats'));

// loadTestFile(require.resolve('./beats'));
});
}

0 comments on commit 8de4294

Please sign in to comment.