Commit Graph

38 Commits

Author SHA1 Message Date
Gauvain Pocentek e59f07864e Retire the project
Change-Id: Ic92e304924561a1aafdadab08803d282938aa17a
2018-01-19 11:10:40 +01:00
Anthony Michon a9133e72d5 Check prefix path is member route
Change-Id: I20c0bb159eef04bc88d208a3d4853d6b190c1dae
2015-08-05 14:01:28 +02:00
Romain Ziba 743a941f9f Sync with global requirements
Change-Id: I00db3139a6e6442e8392dd83447ece810a6bb6ca
2015-07-02 15:02:09 +02:00
Romain Ziba df2faae0e1 US573: Use alembic instead of sqlalchemy migrate
Change-Id: I547e618f1095d3c1febcd20f89129c8601db479f
2015-06-26 14:07:42 +02:00
Romain Ziba 24a211e711 Security report is now retrieved by its uuid
* Report uuid is used in the functional test python file
* Other changes of this commit only fix misuses of international module
gettextutils

Change-Id: Id36ffd618ebab1493b5ef4ec86314cb3866ab3c5
2015-06-24 10:14:47 +02:00
Romain Ziba f4559a91a4 Cerberus creates an uuid for security reports
Previously, Cerberus retrieved reports according to the report identifier the plugin
provided. The goal of this US is for Cerberus to create its own uuid and keep the
report identifier of the plugin. The changes include:

* Migration of the db
* an unique attribute UUID
* Tuple (report_id, plugin_id) must be unique
* Changes of unit & functional tests

Change-Id: I9aedb88fd5a4f66ccd5e2e831790d9655f76bb09
2015-06-11 16:27:19 +02:00
Romain Ziba b0bc8fddfb Task model: Persistent attribute is a boolean
In the model of task, we used to have a text unicode for the attribute
'persistent' of a task. This was a mistake.
Change use of unicode 'True'/'False' for real boolean

Change-Id: Ia8c06de318053ef704d286edbe68eaf388a3a450
2015-06-03 10:36:32 +02:00
Romain Ziba 7b78686ca2 Task API: Change action restart into start
The method restart task was used to start a task that is stopped
The term restart means that within the same action we stop and we
start back the task. As a result, it's better to call this method
<start>

Change-Id: Ic6b282fba1957910d64e0dcec6e5160f72435421
2015-06-02 15:44:12 +02:00
Romain Ziba d7cfd977a3 Test starts the task after stopping it
Change-Id: I40c75232762ee93771b20d692e88f83cbc7868ce
2015-06-02 15:32:00 +02:00
Romain Ziba c59c53380b Functional test: get plugin
Change-Id: I0f9ee512123824aeb3b94062456cb5d8149fde1e
2015-06-02 10:26:19 +02:00
Romain Ziba e96cb948f1 tests crud security report and task
Change-Id: I4e51696a7c98d2cb0b7df94a897e25e64442a465
2015-06-01 17:33:02 +02:00
Romain Ziba 0a0ca2cad7 Storage and the notification of a security report
* New functional test
* Fix of bugs

Change-Id: I700fb634d4aba47c4996df5d5e59c38a034ddcc7
2015-06-01 15:43:14 +02:00
Romain Ziba 7d7cc5bf90 Remove pdb
Change-Id: Ia4b24e6272422c47c48bd75f0bcdb8e0a2de48cc

More functional tests

Change-Id: I5bb9115199e446fe9e6dbc27ac53efa6dbb06939
2015-05-29 16:53:03 +02:00
Romain Ziba 4d6c183de0 Functional test: notification with image.update
Test if notification is working thanks to test_plugin which subscribed
to image.update notifications.

Change-Id: I46fa1bf0674e5d4f9ccb6cc6f3e67eb443d0c978
2015-05-29 11:27:39 +02:00
Romain Ziba cee6956cdf Correct mistake: deletion of __init__.py in tests
Unit tests are moved in cerberus/tests/unit folder.
Functional ones in cerberus/tests/functional
Play only unit tests

Change-Id: Ia861c84f5016558eb2a5a46c3a1fefc04339a16f
2015-05-28 18:08:34 +02:00
Romain Ziba 0428e150be Add functional tests
Use pbr post versioning

Change-Id: Iad68c1b75318654b89e1b68bf593031470a0522c
2015-05-28 10:34:23 +02:00
Romain Ziba 32b4caee14 US560: store alarm and send notification
US561: create a dict using report values and send them all in
the notification

Change-Id: Ib10cd6f735f153ad62ede2ac59588ecd7f912f25
2015-05-26 10:59:39 +02:00
Romain Ziba 72e6edcef2 Unit test send_notification
Change-Id: Ib04938aaa8d69f17e15d5e4e8628fe216dd731b4
2015-05-22 17:00:12 +02:00
Jenkins 5df0f4c098 Merge "Fix a bug while logging exceptions occured with db" 2015-05-22 14:58:12 +00:00
Jenkins 5961f82f51 Merge "US561: generate a notif when a report is created" 2015-05-22 14:58:10 +00:00
Jenkins 67dd8952f8 Merge "Fix init version" 2015-05-22 14:50:01 +00:00
Anthony Michon 062fb933d3 Fix init version
Change-Id: I85cf59a555fe390eefa1c3ac6e418be0066de2a3
2015-05-22 16:41:59 +02:00
Romain Ziba cafb4b2421 Fix a bug while logging exceptions occured with db
Change-Id: I1691512ffb4557094a32afd6b91bcd461bcc3458
2015-05-22 16:21:31 +02:00
Romain Ziba 6123c0e678 US561: generate a notif when a report is created
When a plugin decides to store a security report in db,
Cerberus sends a notification on the oslo bus containing the
security rating

Change-Id: I0e378524a9c947855055748d8aac96cae945072e
2015-05-22 16:21:31 +02:00
Jenkins 6e5b5663f4 Merge "Fix wrong types for plugin_info" 2015-05-22 13:12:04 +00:00
Anthony Michon 393931d642 Fix wrong types for plugin_info
Change-Id: Ifab9954d3c277fb391603bd74ba096df29b46da6
2015-05-22 15:04:32 +02:00
Jenkins 792d8ad189 Merge "Use sql-alchemy-migrate to create tables" 2015-05-21 12:54:19 +00:00
Anthony Michon 5112277cc5 Use sql-alchemy-migrate to create tables
Change-Id: I5ffb920f0377f1899202ffc0f70c06f9355ad409
2015-05-21 14:44:52 +02:00
Romain Ziba 7b141d0c1e Add notifier to get the notification_topics option
The notifier will be used in the future

Change-Id: I38ac4ba24a7848877c1423c86f3ce86223984171
2015-05-21 11:41:30 +02:00
Romain Ziba 43f337b605 Fix incorrect tests
Tests were not achieving their goal because of the change of the
api. We had a bad request response but for the wrong reason.

Change-Id: Icc428eb4c666221432d70e7a7e47279287ddbc8f
2015-05-21 11:17:08 +02:00
Romain Ziba 58c3e0a2f7 Improve return and raises values for documentation
Change-Id: Ice8ba6cf38f1d0a38de9bc6ef73a6252c4c3fbf4
2015-05-20 11:06:04 +02:00
Romain Ziba 10b7611fa7 test if blank line improves the generated doc
Change-Id: I77ec2eb02dad5f0f50917f50fc54a9e45ae265e3
2015-05-20 10:33:18 +02:00
Romain Ziba 755a7e0a28 Add more samples in datamodels for documentation
Samples for task, security report and plugin added

Change-Id: I9ce282f1ab7433cacb9815dfa9c0d27cc8a75173
2015-05-18 15:42:19 +02:00
Romain Ziba 009eaf9991 Add samples in datamodels for documentation
Also correct a spelling error SecurityAlarm in security reports

Change-Id: I350499aec9ff7046f6a4eb2692beb45a6c79109c
2015-05-18 10:46:44 +02:00
Romain Ziba 9a33d4b042 Transform exceptions in db into Cerberus ones
Also remove each reference to alert, replaced by security alarms

Change-Id: Ib9ee978db668c1ddf6e8e244d47f5fed6a38bbfa
2015-05-12 15:33:13 +02:00
Anthony Michon 0b70506183 Migration from falcon to pecan
Persistent tasks
Devstack installation scripts
Link with sticks project (ticket creation)

Change-Id: I91246b23c7c39ee81a366dc099d4de1329d3d689
2015-05-11 15:57:37 +02:00
Anthony Michon f6176f3fd7 Release 1.1.0
Change-Id: I7d49059a98ed36825f4be3324b165d196cf66474
2015-04-16 14:22:45 +02:00
Anthony Michon 24406d820a Initial Cookiecutter Commit.
Change-Id: Ia39f6e1acd01cf41a89a2c831ee61870094079d3
2015-02-05 14:45:16 +01:00