-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathStorageUsageReporting.feature
More file actions
49 lines (43 loc) · 1.91 KB
/
StorageUsageReporting.feature
File metadata and controls
49 lines (43 loc) · 1.91 KB
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
48
49
Feature: Storage Usage Reporting API
The storage usage reporting API allows authorized Keycloak users to retrieve
aggregated storage usage metrics across all accounts and locations.
# Permission tests
@2.14.0
@PreMerge
@StorageUsageReporting
Scenario Outline: Storage usage report access control per role
When the user retrieves the storage usage report as "<role>"
Then the storage usage report http response code is <expectedStatus>
Examples:
| role | expectedStatus |
| storage_manager | 200 |
| data_consumer | 403 |
# Content tests
@2.14.0
@PreMerge
@StorageUsageReporting
Scenario: Storage usage report has a valid structure
When the user retrieves the storage usage report as "storage_manager"
Then the storage usage report http response code is 200
And the storage usage report response has a valid structure
@2.14.0
@PreMerge
@StorageUsageReporting
Scenario: Storage usage report contains multiple accounts
Given 2 additional accounts
When the user retrieves the storage usage report as "storage_manager"
Then the storage usage report http response code is 200
And the storage usage report contains the additional accounts
@2.14.0
@PreMerge
@StorageUsageReporting
@PrepareStorageUsageReportingScenarios
Scenario Outline: Storage usage report returns accurate metrics
Given the environment is set up with bucket created, test data uploaded, and count-items ran
When the user retrieves the storage usage report as "storage_manager"
Then the storage usage report http response code is 200
And the report contains the test account with location "<locationName>"
And the report shows 3 objects and 600 bytes
Examples:
| locationName |
| us-east-1 |