* https://review.openstack.org/#/c/526844/ move the intree
bundled tempest plugin to a new repo monasca-tempest-plugin.
Let's use it and remove the bundled tempest plugin from repo.
* Moved post_host script to main root directory
* Removed dummy gate_hook.sh script
* Fixed the jobs for the same
Story: 2001400
Task: 6085
Depends-On: I2ce2bd8238d44a451faeba9ddbfe27d900e9adef
Change-Id: I79cea368271bbef33914dba7b95f5546a1b8d3c1
Statisics api fails when no end time is present with Casssandra.
Fixed the bug and added a test case with no end time.
Change-Id: I39fd349ab03877d4a67ec89a7859adf2707233f6
story: 2001461
task: 6175
Default InfluxDB behaviour is to return a timestamp with no value for
each time period requested. Since we remove those from the return value,
this behaviour breaks pagination because it thinks we hit the limit
but we returned nothing. With fill(none), Influx will not return a
timestamp for a period with no value, which fixes limit and pagination.
Change-Id: I81a7d3610541ef4b333b11e54136ad1cc516687a
Story: 2001457
Task: 6169
In process of Python 3 support implementation replacing dict.iteritems() with
dict.items().
Change-Id: Ida5caa4d9999daceb381d14659af6d3ba8d2c343
Story: 2000975
Task: 5948
Support Cassandra db installation and Cassandra related
configurations for Monasca api and persister services
in devstack. Add Monasca rest API Cassandra plugin for
retrieving metric, dimension, measurement, statistics
and alarms.
Change-Id: Ie60d668692e1f25f555dda2355f4e513d582736c
story: 2001231
task: 5759
The new silence and inhibit rules will include tags on the alarm
that can be queried via the api. For more information and
documentation see: https://review.openstack.org/#/c/466403
Change-Id: I85b8bfc9338ee17709ec30aeb4b807b3bc12404e
This will fix following error:
RuntimeError: resource_cleanup for TestAlarmsCount did not call
the super's resource_cleanup.
Change-Id: I700285eb0b0408678b93431bcc3de47e67f28e75
Since assertEmpty() function has already been implemented in tempest,
let's use this function instead of generic assertEqual() function.
This change makes the code and the error messages to be more readable.
Therefore it improves maintainability a little bit.
Change-Id: I451d5f091f2103dd838da28afca7f3b9fe955d89
"monasca-read-only-user" is a better name instead of "anotherrole"
for read only tempest tests. It's also set by default in
api-config.conf
Also change test.attr() to decorators.attr() in tempest tests
because of the deprecation warning.
Change-Id: I05427147e2755bdc6fde483a145258f6fb695356
Function 'tempest.test.attr()' has moved to 'tempest.lib.decorators
.attr()' in Pike and will be removed in a future version[1].
This patch replaces the 'tempest.test.attr()' with the 'tempest.lib
.decorators.attr().'
[1] Iaafbb112b6eee458089cc49918359a8a8d0485e2
Change-Id: I66562ad991b86bf3950a945541d7a5b6e0fd20a1
Keystone in default devstack installation runs as a uwsgi process
which isn't using ports 5000 and 35357. Instead it uses aliases bind
to default http port.
Set up keystone installation to runs as wsgi which uses default ports
that are used by monasca components.
Change tempest tests configuration to work with
keystone deployed in uwsgi mode.
Remove custom tempest.conf file. Using configure_auth_token_middleware
for monasca-api configuration file and use openrc to generate
environmental variables.
Story: 2000995
Task: 4173
Change-Id: I337609a471a8ee8e350e149df9e9d7924a730f57
It was failed that putting multibyte character into
alarm definition name and description by monascaclient.
There were some mistakes about treatment of utf8 encoding.
And mysql connection had no utf8 option, so mysql could not
handle multibyte character.
Change-Id: I8743f89fcc5d5efd4e50f440b76d78abc037e8e7
Monasca-Agent http_check plugin creates
dimensions which contain multiple colon:
url:http://192.168.10.4:5601
This bugfix makes it possible to query for
metrics with such dimensions. Until now an
exception was thrown.
Closes-Bug: 1668937
Change-Id: I39ed6fba99491630f6a7e0c67743b807e3529461
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.
Change-Id: I4e7de66b522ba11e1d895728d52757ca0bd19305
If you run the command: monasca alarm-list --sort-by severity,state
It fails with: "Unprocessable Entity" complaining that 'name,state'
is not a valid sort_by field. It is treating the comma separated
list as a single entry.
Fix by doing a split using ',' if the sort_by field is a string.
Created a tempest test that showed the problem
Change-Id: I68ce80ccea8493f5980e4d95929a38e587464949
CLI sends multiple group_by fields with ',' as a separator, but the
',' gets urlencoded. Falcon then treats the group_by parameter
as a string instead of a list so 'state,severity' was treated as a
single value and failed validation. The fix was to do a split using ','.
The tempest tests did not urlencode the ',' so Falcon treated
group_by as a list and the tests succeeded even though the
same test through the CLI would fail.
Created tempest test that shows the failure and that it now works
Change-Id: Ice01df6e66c6b019270fed27de08de8ee713114f
Created a tempest test that showed that alarm-count with metric-name failed
with a 500.
Fixed the sqla implementation of get_alarms_count(). Not sure how it
happened, but the code for querying by metric-name was all wrong.
Replaced bad code with code from get_alarms() for handling the metric-name.
Also, add test for count alarms by state and refactor some tests to remove
duplicate code
Change-Id: I7ecb896fd6594fa11c5f2029bec44f09ef413637
Add tests that an invalid ID returns 404 for update, patch and delete
methods for alarms, alarm definitions and notification methods. Some
of these tests already existed but this ensures a complete set of
tests exists for these cases.
Move the resource try catch block wrapper to the correct layer
so that it catches all potential Internal Server Errors and throws
the proper exception.
Change-Id: I07159d0eaed995518bb0c0e2fbf446dff65ec632
1. Use get_x_tenant_or_tenant_id instead of get_tenant_id in list
metrics api.
2. Add missing delegateAuthorizedRole config to devstack api-config.yml
Change-Id: I18c0dd340a4ac8b016e761d648d9f03923b070bc
Closes-bug: #1613997
The Tempest Manager class must have changed and the service
argument apparently no longer exists. Instead, it was being set
as the scope which caused the catalog to not be retrieved
Change-Id: If934bac4e2cd833fe4e381c373218383354969ec
In InfluxDB version 0.11.0 the result set for SHOW SERIES changed. See
https://github.com/influxdata/influxdb/blob/master/CHANGELOG.md#v0110-2016-03-22
Modifed the code to be compatible with either the old or new result
set.
In InfluxDB version 1.0.0 the config file changed. See
https://github.com/influxdata/influxdb/blob/master/CHANGELOG.md#v100-2016-09-08
Modified the config file deployed by DevStack to be compatible with either the
old or new config file.
In some other InfluxDB release several database ops, such as CREATE
DATABASE, were modified from http GET to POST. Modified how databases
are created in the DevStack plugin.sh.
Change-Id: I33188f4e64150d2cb24c0a06979c06f03c803da4
Added influx group by for multiple dimensions
Added vertica group by for multiple dimensions
Added tempest tests for group by with one, multiple, and all dimensions
Change-Id: I69c27198ab180e17b7636bbd0f26fc1bd5292f3b
Added documentation for last function
Added python parsing for last function
Added tempest tests for last_value function
Change-Id: I4c35321e23e13596a2ef02e7e57306d5685c81ec
Depends-On: Ib5123ed035018757a50d9ebeb7335fbca48054f2
Implements: Blueprint last-value
This endpoint will return all the dimension names for a given metric
name.
Added dimension-names for influx in python api and java api
Added dimension-names for vertica in java api
Depends-On: Id981dafd00778a6d4a376b9ceab011231e94c0c6
Change-Id: I0192ccb9276ea94103a477bd2ad7d10f21e64d31
Implements: blueprint dimensions-api
Service available group already exists.Therefore we don't need to
register this group here again.
Change-Id: Ia02b23afebe0e41a197a34dccefb0a7f564a057f
Closes-Bug: #1621036
Since returned metric names are distinct, we can remove the id from
each element. Also change the returned metric name into alphabetical
order.
Change-Id: Id981dafd00778a6d4a376b9ceab011231e94c0c6