23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
## ADDED Requirements
|
|
|
|
### Requirement: Traffic Threshold And Virtual Statistics Follow Existing Usage Permissions
|
|
|
|
The asset information page SHALL apply the existing real and virtual traffic usage permissions to the relocated virtual traffic stop threshold, breakpoint marker, and added virtual traffic statistics.
|
|
|
|
#### Scenario: Hidden real traffic usage also hides relocated threshold and breakpoint
|
|
|
|
- **GIVEN** 当前登录账号的 `user_type` 为 `1` 或 `2`
|
|
- **AND** 账号缺少 `asset_info:view_current_package_real_usage` 权限
|
|
- **WHEN** 页面渲染“当前生效套餐”或“套餐列表”的套餐流量信息
|
|
- **THEN** 系统 MUST NOT 显示真流量统计
|
|
- **AND** 系统 MUST NOT 显示位于真流量区域的虚流量停机阈值
|
|
- **AND** 系统 MUST NOT 显示位于真流量进度条的停机阈值断点标记
|
|
|
|
#### Scenario: Hidden virtual traffic usage also hides added virtual statistics
|
|
|
|
- **GIVEN** 当前登录账号的 `user_type` 为 `1` 或 `2`
|
|
- **AND** 账号缺少 `asset_info:view_current_package_virtual_usage` 权限
|
|
- **WHEN** 页面渲染“当前生效套餐”或“套餐列表”的套餐流量信息
|
|
- **THEN** 系统 MUST NOT 显示虚流量使用区块
|
|
- **AND** 系统 MUST NOT 显示虚流量区块中的已使用、总量或剩余统计
|