-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathUsageExplorerStorageTest.php
47 lines (41 loc) · 1.17 KB
/
UsageExplorerStorageTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace RegressionTests\Controllers;
use RegressionTests\TestHarness\RegressionTestHelper;
/**
* Test the usage explorer for storage realm regressions.
*/
class UsageExplorerStorageTest extends aUsageExplorerTest
{
public function csvExportProvider()
{
$statistics = [
'avg_file_count',
'avg_logical_usage',
'avg_physical_usage',
'avg_logical_utilization',
'avg_hard_threshold',
'avg_soft_threshold',
'user_count'
];
$groupBys = [
'none',
'nsfdirectorate',
'parentscience',
'fieldofscience',
'mountpoint',
'pi',
'resource',
'resource_type',
'username',
'person'
];
$settings = [
'realm' => ['Storage'],
'dataset_type' => ['aggregate', 'timeseries'],
'statistic' => $statistics,
'group_by' => $groupBys,
'aggregation_unit' => ['Day', 'Month', 'Quarter', 'Year']
];
return RegressionTestHelper::generateTests($settings, '2018-12-27', '2019-01-05');
}
}