2021-01-27 02:06:12 +08:00
|
|
|
# Integration Tests
|
|
|
|
|
|
2021-11-25 02:45:19 +08:00
|
|
|
To run our current integration test suite:
|
2021-01-27 02:06:12 +08:00
|
|
|
|
|
|
|
|
Running the integration tests requires several docker containers to be
|
|
|
|
|
running. You can start the containers with:
|
2021-11-25 02:45:19 +08:00
|
|
|
|
|
|
|
|
```shell
|
2021-01-27 02:06:12 +08:00
|
|
|
docker-compose up
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
To run only the integration tests use:
|
|
|
|
|
|
2021-11-25 02:45:19 +08:00
|
|
|
```shell
|
2021-01-27 02:06:12 +08:00
|
|
|
make test-integration
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Use `make docker-kill` to stop the containers.
|
|
|
|
|
|
2021-11-25 02:45:19 +08:00
|
|
|
Contributing integration tests:
|
2021-01-27 02:06:12 +08:00
|
|
|
|
|
|
|
|
- Add Integration to the end of the test name so it will be run with the above command.
|
|
|
|
|
- Writes tests where no library is being used in the plugin
|
|
|
|
|
- There is poor code coverage
|
|
|
|
|
- It has dynamic code that only gets run at runtime eg: SQL
|
|
|
|
|
|
2021-11-25 02:45:19 +08:00
|
|
|
Current areas we have integration tests:
|
2021-01-27 02:06:12 +08:00
|
|
|
|
|
|
|
|
| Area | What it does |
|
|
|
|
|
|------------------------------------|-------------------------------------------|
|
|
|
|
|
| Inputs: Aerospike | |
|
|
|
|
|
| Inputs: Disque | |
|
2021-11-25 02:45:19 +08:00
|
|
|
| Inputs: Dovecot | |
|
|
|
|
|
| Inputs: Mcrouter | |
|
|
|
|
|
| Inputs: Memcached | |
|
|
|
|
|
| Inputs: Mysql | |
|
|
|
|
|
| Inputs: Opcua | |
|
|
|
|
|
| Inputs: Openldap | |
|
|
|
|
|
| Inputs: Pgbouncer | |
|
|
|
|
|
| Inputs: Postgresql | |
|
|
|
|
|
| Inputs: Postgresql extensible | |
|
|
|
|
|
| Inputs: Procstat / Native windows | |
|
|
|
|
|
| Inputs: Prometheus | |
|
|
|
|
|
| Inputs: Redis | |
|
|
|
|
|
| Inputs: Sqlserver | |
|
|
|
|
|
| Inputs: Win perf counters | |
|
|
|
|
|
| Inputs: Win services | |
|
|
|
|
|
| Inputs: Zookeeper | |
|
|
|
|
|
| Outputs: Cratedb / Postgres | |
|
|
|
|
|
| Outputs: Elasticsearch | |
|
|
|
|
|
| Outputs: Kafka | |
|
|
|
|
|
| Outputs: MQTT | |
|
|
|
|
|
| Outputs: Nats | |
|
|
|
|
|
| Outputs: NSQ | |
|
2021-01-27 02:06:12 +08:00
|
|
|
|
|
|
|
|
Areas we would benefit most from new integration tests:
|
|
|
|
|
|
|
|
|
|
| Area |
|
|
|
|
|
|------------------------------------|
|
2021-11-25 02:45:19 +08:00
|
|
|
| SNMP |
|
|
|
|
|
| MYSQL |
|
|
|
|
|
| SQLSERVER |
|