mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-22 00:36:47 +00:00
tests: add for swap
This commit is contained in:
parent
389ec2c81c
commit
cb471f5a8e
|
@ -170,6 +170,17 @@ query Query {
|
|||
error
|
||||
}
|
||||
}
|
||||
swapUsageOverall {
|
||||
... on MonitoringValues {
|
||||
values {
|
||||
timestamp
|
||||
value
|
||||
}
|
||||
}
|
||||
... on MonitoringQueryError {
|
||||
error
|
||||
}
|
||||
}
|
||||
start
|
||||
step
|
||||
}
|
||||
|
@ -221,6 +232,17 @@ query Query($end: DateTime, $start: DateTime, $step: Int) {
|
|||
error
|
||||
}
|
||||
}
|
||||
swapUsageOverall {
|
||||
... on MonitoringValues {
|
||||
values {
|
||||
timestamp
|
||||
value
|
||||
}
|
||||
}
|
||||
... on MonitoringQueryError {
|
||||
error
|
||||
}
|
||||
}
|
||||
start
|
||||
step
|
||||
}
|
||||
|
@ -499,6 +521,14 @@ def test_graphql_get_memory_usage(
|
|||
},
|
||||
],
|
||||
},
|
||||
"swapUsageOverall": {
|
||||
"values": [
|
||||
{
|
||||
"timestamp": "1970-01-01T00:00:00",
|
||||
"value": "zero",
|
||||
},
|
||||
],
|
||||
},
|
||||
"start": None,
|
||||
"step": 60,
|
||||
},
|
||||
|
@ -584,6 +614,14 @@ def test_graphql_get_memory_usage_with_options(
|
|||
},
|
||||
],
|
||||
},
|
||||
"swapUsageOverall": {
|
||||
"values": [
|
||||
{
|
||||
"timestamp": "1970-01-01T00:00:00",
|
||||
"value": "zero",
|
||||
},
|
||||
],
|
||||
},
|
||||
"start": "2024-07-04T23:35:08",
|
||||
"step": 90,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue