Skip to content

Commit d0b3ce1

Browse files
feat!: Dashboards v3 (#141)
* ci: Move Policy v2 from examples to tests * chore: Expand imports * ci: Add test to remove all policies * ci: Add coverage for tests * ci: Add error tests for policy v2 * ci: Add monitor alert tests * ci: Add Dashboard V2 tests * ci: Test with mamba while the agent is running for capture creation * ci: Add Captures v1 tests * ci: Increase the poll time to 1 minute and add Docker cache * ci: Remove Monitor API script test * ci: Add virtualenv folder to cache * ci: Rename capture in tests * ci: Remove .travis.yml * ci: Increase the poll time to 5 minute * ci: Remove docker cache due to permission errors * feat: Split Monitor client into EventsClient clients * ci: Move event_spec tests to events_v2_spec * ci: Add Agent tests * fix(ci): Wait for config changes to be propagated in the agents * feat: Add list, add, delete and create default tests for policies v1 * fix(ci): Increase wait time after changing config * feat: Add test listing policies priorities for policies v1 * feat: Add test to get a policy for policies v1 * feat: Add update policy test for policies v1 * refactor: Changed delete all policies test to use a single delete_all_policies() call for policies v1 * chore(ci): Deactivate Capture tests Since we cannot control whether the agent is able to create captures or not, and it's not our duty verify that, but offer a Python API for the Backend API, we are disabling these tests but maintaining them for future reference. * feat: Add change evaluation order of policies test for policies v1 * fix: Add missing import to change the evaluation order of policies test for policies v1 * feat: Add get policy by id test for policies v1 * feat: Add delete single policy by id test for policies v1 * feat: Add delete single policy by name test for policies v1 * feat!: Add Dashboards v3 client and split Monitor BREAKING CHANGE: Splits the SdMonitorClient into a DashboardClient's, both from version v2 and v3. By default now SdMonitorClient inherits from DashboardClientV3 and therefore implements all the interface, but the following methods have changed the signature: - add_dashboard_panel - remove_dashboard_panel This is required because the Dashboards V3 do not implement the same kind of panels as V2 implemented. Signed-off-by: Federico Barcelona <[email protected]> * chore: Add tatsu as dependency in setup.py Co-authored-by: Vicente Herrera <[email protected]>
1 parent 322be7e commit d0b3ce1

File tree

14 files changed

+2048
-838
lines changed

14 files changed

+2048
-838
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ coverage = "*"
1717
requests = "*"
1818
pyaml = "*"
1919
requests-toolbelt = "*"
20+
tatsu = "*"
2021

2122
[requires]
2223
python_version = "3.8"

Pipfile.lock

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdcclient/_monitor.py

Lines changed: 15 additions & 825 deletions
Large diffs are not rendered by default.

sdcclient/monitor/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
from ._dashboards_v3 import DashboardsClientV3
2+
from ._dashboards_v2 import DashboardsClientV2
13
from ._events_v1 import EventsClientV1
24
from ._events_v2 import EventsClientV2

0 commit comments

Comments
 (0)