mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Changing measurement to name in result set
This commit is contained in:
@@ -24,6 +24,22 @@ class ResultSetTest extends \PHPUnit_Framework_TestCase
|
||||
new ResultSet($invalidJSON);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws Exception if something went wrong with influxDB
|
||||
* @expectedException \Leaseweb\InfluxDB\InfluxDBClientError
|
||||
*/
|
||||
public function testThrowsInfluxDBException()
|
||||
{
|
||||
|
||||
$errorResult = <<<EOD
|
||||
{
|
||||
"series": [],
|
||||
"error": "Big error, many problems."
|
||||
}
|
||||
EOD;
|
||||
new ResultSet($errorResult);
|
||||
}
|
||||
|
||||
/**
|
||||
* We can get points from measurement
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user