Commit Graph

33 Commits

Author SHA1 Message Date
Martin Chacon Piza 91022f3e80 Remove project content on master branch
This is step 2b of repository deprecation process as described in [1].

[1] https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Change-Id: Ie446c1cd447789d189a9e723fff9ee783dd3cf4f
2021-02-22 14:57:15 +01:00
Sean McGinnis b3e4ac9554 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I9f7227ec5ed4d84efd36d87fec7f0536276fc151
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-28 12:33:21 +02:00
Andreas Jaeger 08739b0377 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
there.

Change-Id: I7614df314c211dc3acca2e3e8cb647bddddd6c16
2020-05-26 20:18:43 +00:00
Andreas Jaeger a8d2c2e2da Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Id0886a73e1bd1c8a30dd7d1f50af7c7eab90d916
2020-05-22 16:30:30 +02:00
Martin Chacon Piza bf5a1a7adc Migrate from ujson to simplejson
The change updates the imports to use simplejson instead of ujson and
monasca_log_api.common.rest instead of monasca_common.rest

Temporarily set monascalog-python3-tempest as voting false

This is an alternative to this change
https://review.opendev.org/#/c/724658/

Change-Id: Iae94376b38cae8a1eb8aa6a704fc2ca5d383adaf
Story: 2007549
Task: 39601
2020-05-12 11:53:33 +02:00
Ghanshyam Mann 98f8469157 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-log-api is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I3909027440b3af91d5c4fb964e862dedceaa6bed
2019-11-16 14:23:06 +00:00
pengyuesheng d64ab32105 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: I091a3f6b611803d53170928cf2b77e3c691c68ce
2019-07-26 15:24:53 +08:00
Adrian Czarnecki 29e25e6e29 Add support for using Falcon 2.0.0
Falcon 2.0.0 introduces some breaking changes. The relevant ones here are:

- falcon.testing.TestCase.api property was removed
- falcon.testing.TestBase class was removed
- falcon.HTTPRequestEntityTooLarge exception was renamed to
 falcon.HTTPPayloadTooLarge

Additionally, the default behaviour for handling trailing slashes on
URIs also changed:

https://falcon.readthedocs.io/en/latest/user/faq.html#how-does-falcon-
handle-a-trailing-slash-in-the-request-path

This commit adds support for using the new release.

Story: 2005695
Task: 33474

Change-Id: I2379522efef81b919098a0143b66cc259a184e70
2019-06-10 13:45:57 +02:00
Charles Short 1247e7bd8e Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I36d605e1bcb17bffd0effcf3018e87ba6c1a0865
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-06-19 19:52:46 -04:00
OpenStack Proposal Bot cad67bdfa8 Updated from global requirements
Depends-On: https://review.openstack.org/563087
Change-Id: Ia9085ee98c4502c2e6bf6dcf2f846643d4aceace
2018-04-30 13:29:58 +02:00
OpenStack Proposal Bot 053540ab76 Updated from global requirements
Change-Id: I776b31da45401d683feee6237ac0b7ded760899a
2018-01-24 01:03:06 +00:00
OpenStack Proposal Bot a6ead61a65 Updated from global requirements
Change-Id: Iffc32111430bbc063f99e8846fc419b33f5dc41a
2018-01-18 03:03:48 +00:00
OpenStack Proposal Bot 51e6802932 Updated from global requirements
Change-Id: I39eaea17490637297e8b54969a45d19fb0d5865d
2018-01-16 04:13:13 +00:00
OpenStack Proposal Bot 6f28e1b2a0 Updated from global requirements
Change-Id: I70bcc8427d4b123e9049d6adc623561b802a62ae
2017-09-16 23:14:51 +00:00
OpenStack Proposal Bot 7f0ca25db1 Updated from global requirements
Change-Id: Ia236587796b1c63ffbe9d94d5eb01e69afc7e4eb
2017-09-13 12:53:18 +00:00
OpenStack Proposal Bot 5e922485ab Updated from global requirements
Change-Id: I1d30336b39dbd1e790cf48457c4f9a005f719f26
2017-08-18 11:32:50 +00:00
OpenStack Proposal Bot a9fa907516 Updated from global requirements
Change-Id: I68c9d99581124120314ac73b36263ad9f65eecae
2017-08-18 04:43:25 +00:00
OpenStack Proposal Bot a0fb643f31 Updated from global requirements
Change-Id: I120aa85909ce49a27e383466b1776b2b857e19de
2017-07-28 06:26:42 +00:00
Tomasz Trębski 86433df26f Tweaks in tox.ini to speed it up
Reworked several environments where installing of the
package (monasca-log-api) is not necessary.

Also added validating all bash files with bashate
for the devstack plugin part.

Change-Id: I02bd5bfcc3bfbdfda30bc9b6bcc977b37c6c3674
2017-07-19 05:38:44 +00:00
OpenStack Proposal Bot 3dd0a03fbd Updated from global requirements
Change-Id: I6e7eab789071f7b0fa228b2d8f579b490d6da725
2017-07-04 17:49:57 +00:00
Tomasz Trębski 29126ba9f8 Migrate documentation to Sphinx
Migration of Openstack Project is held in
*.rst files and build with Sphinx.

Following change provides:
* technical documention
* api guide
* api ref
* releasenotes

Note:
    For now, generating codebase documentation is disabled.
    It caused gate failures because of, yet unnown, reasons.
    In order to pull this foundation, this part is skipped.

Extra:
* provided venvs descriptions to let user know what is the scope

Story: 2001058
Task: 4665

Change-Id: Ieb2b58e165de1617748d97d997af368bd91d5c0e
2017-07-03 07:38:53 +00:00
OpenStack Proposal Bot 0c9734a898 Updated from global requirements
Change-Id: If4056dddbee16a2ee8099fc8bfda366649d34de9
2017-06-27 17:45:26 +00:00
OpenStack Proposal Bot 3a96cfeef6 Updated from global requirements
Change-Id: Iea1c2790f964ef3973630594d56bf16479be424e
2017-05-17 03:50:21 +00:00
OpenStack Proposal Bot 05b184e0c1 Updated from global requirements
Change-Id: I1f5a7c08d9bab950f6adb2803675fbde8c65f0ef
2017-05-15 00:46:49 +00:00
OpenStack Proposal Bot b5242f6ddc Updated from global requirements
Change-Id: Id70fe4ab79a62dfd31e6fb44f62a1e4b1036deda
2017-02-10 05:51:18 +00:00
Tomasz Trębski 04030115db Migrate testing to ostestr and adding docs
Following commits not only enables running
unit tests with ostestr, like other
OS projects, but also:
* enables covarage with testr
* enables building documentation with build_sphinx commands

Additionally:
* tox.ini was organized a bit

Change-Id: I2a21f9cee0e00f7148142465a8fc131ef4ff6f44
2017-01-17 12:53:54 +01:00
Dirk Mueller 09302e7a31 Enable checking with bandit
bandit is statically analyzing source code in order to identify
potentially security sensitive constructs.

Change-Id: Iea7057ccfd68cefea84e23fcd26ae498e6bc6533
2016-12-23 09:13:09 +01:00
OpenStack Proposal Bot 87cd940526 Updated from global requirements
Change-Id: Id3d2f4c0c6598d29546069fb06abd89e3e872d93
2016-10-27 12:15:49 +00:00
Andreas Jaeger 5f987c3bf4 Manual sync with requirements
Sync manually with requirements. The automatic sync will not work yet
since gunicorn is not in global-requirements file and then the sync
stops.

So, let's sync what can be synced...

Remove flake8, let hacking install it as dependency in the corresponding
version.

Disable E126 flake8 test since it now fails due to newer flake8
version.

Change-Id: I9547e654de0c618386d56dd98c053118ec0100cf
2016-08-26 06:32:07 +02:00
Roland Hochmuth 9b93fc8864 Add implementation of /v3.0/logs API
Implemented specification proposal for batch support at,
https://review.openstack.org/#/c/273058/

Note, if you want to use this in the monasca-vagrant environment
it should work. I've modified the value of the field kafka_url in
etc/monasca/monasca_log_api.conf to use the kafka server in the
mini-mon vm.

After you've deployed monasca-vagrant using "vagrant up"
ssh into mini-mon "vagrant ssh mini-mon" and then create a new
topic for logs which can be done running the command:

/opt/kafka/bin/kafka-topics.sh --create -zookeeper localhost:2181
--replication-factor 1  --partitions 128 --topic logs

To watch the log messages at the console in the mini-mon VM

/opt/kafka/bin/kafka-console-consumer.sh
--zookeeper localhost:2181 --topic logs

Change-Id: I4247d1824a237ecbe4db878e72485938f40a31c3
2016-02-24 23:09:39 -07:00
Tomasz Trębski 16481d397c Updating requirements.txt
Synchronized the version requirements with openstack/requirements
global-requirements.txt

Change-Id: I249a8e9e3a6d6d1ba120c1d9b1a36cadf19c28f7
2016-02-10 08:11:36 +01:00
Tomasz Trębski d2d50f42d4 Migrating tempest to project
- moving tempest test from old location
to the project

Change-Id: I018a898a621163d3d058e1c3950ae00b53944f84
2015-12-09 12:13:53 +01:00
Tomasz Trębski e921fd506c monasca-log-api python
- single log message with rest api
- parsing / validation for data
- configuration
- bootstrapping
- tox
- unit tests

Change-Id: I7386b3500ee9097383a573bf915da55ce2ff881f
2015-10-08 10:38:12 +02:00