Add Cassandra db to Monasca gate tests

This change includes tests for both python and java monasca-persister
  tests when using Cassandra db as a time series database.

Change-Id: I6eb47a6c979689c8128d04449bf682a0a4b9059d
Story: 2001231
Task: 5793
This commit is contained in:
Scott Grasley 2017-11-15 13:50:00 -08:00 committed by Witold Bedyk
parent 9ed87db4b4
commit c720e5d8a4
2 changed files with 37 additions and 6 deletions

View File

@ -23,14 +23,18 @@
parent: monasca-tempest-base
vars:
database: mysql
lang: python
tsdb: influxdb
api_lang: python
persister_lang: python
- job:
name: monasca-tempest-python-postgresql
parent: monasca-tempest-base
vars:
database: postgresql
lang: python
tsdb: influxdb
api_lang: python
persister_lang: python
voting: false
- job:
@ -38,14 +42,38 @@
parent: monasca-tempest-base
vars:
database: mysql
lang: java
tsdb: influxdb
api_lang: java
persister_lang: java
- job:
name: monasca-tempest-java-postgresql
parent: monasca-tempest-base
vars:
database: postgresql
lang: java
tsdb: influxdb
api_lang: java
persister_lang: java
voting: false
- job:
name: monasca-tempest-python-cassandra
parent: monasca-tempest-base
vars:
database: mysql
tsdb: cassandra
api_lang: python
persister_lang: python
voting: false
- job:
name: monasca-tempest-java-cassandra
parent: monasca-tempest-base
vars:
database: mysql
tsdb: cassandra
api_lang: python
persister_lang: java
voting: false
- project:
@ -56,6 +84,8 @@
- monasca-tempest-python-postgresql
- monasca-tempest-java-mysql
- monasca-tempest-java-postgresql
- monasca-tempest-python-cassandra
- monasca-tempest-java-cassandra
gate:
jobs:
- monasca-tempest-python-mysql

View File

@ -31,8 +31,9 @@
cat << 'EOF' >>"/tmp/dg-local.conf"
[[local|localrc]]
enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api
MONASCA_API_IMPLEMENTATION_LANG="{{ lang }}"
MONASCA_PERSISTER_IMPLEMENTATION_LANG="{{ lang }}"
MONASCA_API_IMPLEMENTATION_LANG="{{ api_lang }}"
MONASCA_PERSISTER_IMPLEMENTATION_LANG="{{ persister_lang }}"
MONASCA_METRICS_DB="{{ tsdb }}"
EOF
executable: /bin/bash