Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Refactor integration testing suites #457

Merged
merged 8 commits into from
Jun 20, 2018
Merged

Refactor integration testing suites #457

merged 8 commits into from
Jun 20, 2018

Conversation

Crazybus
Copy link
Contributor

Right now there is a lot of testing duplication in the test suites. We also have some suites which are only testing a couple of things which are already being tested.

New setup and roles

oss

Standard elasticsearch-oss role with idempotency test

oss-upgrade

Upgrade from previous minor version oss to current minor version oss

oss-to-xpack-upgrade Upgrade from previous minor version oss to current minor version xpack

xpack

Standard elasticsearch (with xpack) role with idempotency test

xpack-upgrade

Upgrade from previous minor version xpack to current minor version xpack
multi: Tests multiple instances of elasticsearch on a single machine

The plan is to make sure that all of the features being tested by the current test suites end up in the new test suites (plus extra options and tests)

Notes about what the current test suites actually do:

config:

  • oss
  • changes the transport port from 9301 to 9501
  • changes the http port from 9201 to 9301
  • changes bootatrp.memory_lock from false to true
  • sets es_max_threads to 3000
  • installs ingest-geoip, then switches to ingest-attachment and ingest-user-agent
  • add custom es_config_log4j2 file

issue-test:

  • xpack
  • es_users file and native
  • es_role native

multi:

  • oss
  • deploy a master
  • deploy a data node on a different port

package:

  • oss
  • installs an extra plugin

standard:

  • oss
  • install plugin ingest-geoip
  • tests idempotence

xpack-standard:

  • xpack
  • increase heap size to 2g
  • enable xpack features: monitoring, graph, ml

xpack:

  • xpack
  • first run:
    • upgrade from previous version to current version (6.2.4 to 6.3.0)
    • test installing xpack license
    • es_templates: true
    • enable features: security, alerting
    • basic auth
    • es_message_auth_file
    • es_role_mapping
    • es_users: native, file
    • es_roles: native, file
  • second run:
    • install a different plugin
    • change basic auth password
    • remove elastic user from es_users.native
    • don't set a password for logstash_system user
    • remove es_roles variable

This commit is just moving the tests to their new names. The config,
packge and issue test suites have been removed and the tests from these
will be incorporated into the oss and xpack tests.

oss: Standard elasticsearch-oss role with idempotency test

oss-upgrade: Upgrade from previous minor version oss to current minor version oss

oss-to-xpack-upgrade: Upgrade from previous minor version oss to current minor version xpack

xpack: Standard elasticsearch (with xpack) role with idempotency test

xpack-upgrade: Upgrade from previous minor version xpack to current minor version xpack

multi: Tests multiple instances of elasticsearch on a single machine
@Crazybus Crazybus force-pushed the test_all_the_things branch from f209d26 to da58c5f Compare June 19, 2018 08:43
@Crazybus Crazybus changed the title WIP: Refactor integration testing suites Refactor integration testing suites Jun 19, 2018
@Crazybus Crazybus requested a review from itsmed June 19, 2018 19:20
Copy link
Contributor

@itsmed itsmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍠

@Crazybus Crazybus merged commit 4a44948 into master Jun 20, 2018
@Crazybus Crazybus deleted the test_all_the_things branch June 20, 2018 04:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants