This repository has been archived by the owner on Jan 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix temperature command failing issue
- Loading branch information
Showing
5 changed files
with
353 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
test/unit/mocked_data/test_get_environment/temp_cmd_fail/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"fans": { | ||
"invalid": { | ||
"status": true | ||
} | ||
}, | ||
"temperature": { | ||
"invalid": { | ||
"is_alert": false, | ||
"temperature": -1.0, | ||
"is_critical": false | ||
} | ||
}, | ||
"cpu": { | ||
"0": { | ||
"%usage": 6.0 | ||
} | ||
}, | ||
"power": { | ||
"invalid": { | ||
"status": true, | ||
"output": -1.0, | ||
"capacity": -1.0 | ||
} | ||
}, | ||
"memory": { | ||
"available_ram": 4826256, | ||
"used_ram": 20873476 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
test/unit/mocked_data/test_get_environment/temp_cmd_fail/show_env_temperature_status.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
^ | ||
% Invalid input detected at '^' marker. | ||
|
4 changes: 4 additions & 0 deletions
4
test/unit/mocked_data/test_get_environment/temp_cmd_fail/show_memory_statistics.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b) | ||
Processor 277B88C 21505428 18498044 3007384 2136352 2061756 | ||
I/O 2C00000 4194304 2375432 1818872 1581372 1817552 | ||
Driver te 18C0000 1048576 44 1048532 1048532 1048532 |
Oops, something went wrong.