Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
09ab8e42
Commit
09ab8e42
authored
Jan 10, 2023
by
Justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/monitor/test.py: Added instanciation test class for node-monitoring
parent
ddb190ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
software/monitor/test/test.py
software/monitor/test/test.py
+38
-0
No files found.
software/monitor/test/test.py
View file @
09ab8e42
...
...
@@ -533,3 +533,41 @@ URL =
self
.
assertSurykatkaPromises
()
self
.
assertSurykatkaCron
()
self
.
assertConnectionParameterDict
()
class
TestNodeMonitoring
(
SlapOSInstanceTestCase
):
"""Test class for node monitoring instanciation"""
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
({
'promise_cpu_temperature_frequency'
:
2
,
'promise_cpu_temperature_threshold'
:
90
,
'promise_cpu_avg_temperature_threshold'
:
80
,
'promise_cpu_avg_temperature_threshold_duration'
:
600
,
'promise_ram_available_frequency'
:
2
,
'promise_ram_available_threshold'
:
500
,
'promise_ram_avg_available_threshold'
:
1e3
,
'promise_ram_avg_available_threshold_duration'
:
600
,
'promise_network_errors_frequency'
:
5
,
'promise_network_errors_threshold'
:
100
,
'promise_network_lost_packets_threshold'
:
100
,
'promise_network_transit_frequency'
:
1
,
'promise_network_transit_max_data_threshold'
:
1e6
,
'promise_network_transit_min_data_threshold'
:
0
,
'promise_network_transit_duration'
:
600
,
'promise_cpu_load_threshold'
:
1.5
,
'promise_monitor_space_frequency'
:
5
,
'promise_partition_space_threshold'
:
0.08
,
'promise_free_disk_space_frequency'
:
3
,
'promise_free_disk_space_threshold'
:
0.08
,
'promise_free_disk_space_nb_days_predicted'
:
10
,
'promise_free_disk_space_display_partition'
:
True
,
'promise_free_disk_space_display_prediction'
:
True
,
})}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
'default'
def
test_node_monitoring_instance
(
self
):
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment