kibana/test
Spencer e67790037a [esArchiver] combine elasticDump and ScenarioManager (#10359)
* As a part of bringing functional testing to plugins, esArchiver gives these plugins a way to capture and reload es indexes without needing to write a bunch of custom code. It works similarly to the elasticDump and ScenarioManager tools that it replaces.

Differences:
  - Streaming implementation allows for much larger archives
  - CLI for creating and using archives
  - Configurable archive location
  - Stores the data in gzipped files (better for source control, searching, large archives)
  - Automatically identifies and upgrades Kibana config documents

Methods:
  - `#load(name)`: import an archive
  - `#loadIfNeeded(name)`: import an archive, but skip the documents what belong to any existing index
  - `#unload(name)`: delete the indexes stored in an archive

CLI operations:
  - `./bin/es_archiver save <name> [index patterns...]`: save the mapping and documents in one or more indexes that match the wild-card patterns into an the `<name>` archive
  - `./bin/es_archiver load <name>`: load the mapping and documents from the `<name>` archive

* [functional_tests/common/nagivate] check for statusPage

* [es_archiver] move bins into new scripts dir

* [functional_tests/apps/context] use esArchiver

* [esArchiver] general improvements after showing to a few folks

 - remove auto-upgrading config doc logic (until we have better access to kibana version info)
 - export unload command
 - remove preemptive checks in favor of reacting to errors
 - use type "doc" vs "hit" for doc records (consistency)
 - wrote a bunch of pending tests to think though and plan

* [esArchiver] make log a stream that writes to itself

* [esArchiver] fill in stats and archive format tests

* [esArchiver] splitup action logic

* [esArchiver/cli] fix cli --help output and comment

* [esArchiver] remove type-based param coercion

* [esArchiver/log] use strings for log levels

* [esArchvier] remove unused var

* [esArchiver/indexDocRecordsStream] add tests

* [esArchive] fill in remaining tests

* [esArchiver] fix dem tests

* [eslint] remove unused vars

* [esArchiver/loadIfNeeded] fix call to load()

* [esArchiver] remove loadDumpData helpers
2017-03-27 15:29:14 -04:00
..
dev_certs
functional [esArchiver] combine elasticDump and ScenarioManager (#10359) 2017-03-27 15:29:14 -04:00
screenshots/baseline Update baseline screenshots with loaded CSS. 2016-06-14 09:37:05 -07:00
scripts Syntax fixes test code (#10747) 2017-03-12 11:58:36 -07:00
support [esArchiver] combine elasticDump and ScenarioManager (#10359) 2017-03-27 15:29:14 -04:00
unit/api [esArchiver] combine elasticDump and ScenarioManager (#10359) 2017-03-27 15:29:14 -04:00
utils [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
visual_regression [esArchiver] combine elasticDump and ScenarioManager (#10359) 2017-03-27 15:29:14 -04:00
intern.js Try to fix another staleElementReference in data table test 2016-07-01 17:40:01 -05:00
intern_api.js Add a new GET script languages API endpoint 2016-08-29 11:26:27 -04:00
intern_visual_regression.js Create visual_regression test suite. 2016-06-21 20:50:55 -07:00
mocha.opts
mocha_setup.js babel 6 upgrade (#9702) 2017-02-09 14:48:55 -07:00
server_config.js Show event context (#9198) 2017-02-22 18:27:49 +01:00
shield.js Port #8880 to master Support Cloud testing (#8915) 2016-11-01 10:44:12 -05:00