features.steps.r_007_steps¶
Python steps file for R_007.
Attributes¶
Functions¶
|
Simulates the admin performing a specified action (create, update, delete). |
|
Verifies that the system logs the specified action with relevant details. |
|
Simulates the admin retrieving logs for a specific time range. |
|
Verifies that the system correctly displays logs within the specified time range. |
|
Ensures that logs can be filtered using specific criteria. |
|
Simulates the admin modifying the logging configuration. |
Verifies that the system applies the updated logging configuration. |
|
|
Ensures logs reflect the newly configured verbosity level. |
|
Simulates a system restart. |
Verifies that logs remain accessible after a system restart. |
|
Ensures unauthorized users cannot delete or modify logs. |
|
Module Contents¶
- features.steps.r_007_steps.step_when_admin_performs_action(context, action)[source]¶
Simulates the admin performing a specified action (create, update, delete).
- Parameters:
context (runner.Context) – Behave context.
action (str) – The action being performed.
- Return type:
None
- features.steps.r_007_steps.step_then_system_logs_action(context, action)[source]¶
Verifies that the system logs the specified action with relevant details.
- Parameters:
context (runner.Context) – Behave context.
action (str) – The action that should be logged.
- Return type:
None
- features.steps.r_007_steps.step_when_admin_retrieves_logs(context, time_range)[source]¶
Simulates the admin retrieving logs for a specific time range.
- Parameters:
context (runner.Context) – Behave context.
time_range (str) – The time range for filtering logs.
- Return type:
None
- features.steps.r_007_steps.step_then_system_displays_logs(context, time_range)[source]¶
Verifies that the system correctly displays logs within the specified time range.
- Parameters:
context (runner.Context) – Behave context.
time_range (str) – The expected time range of logs.
- Return type:
None
- features.steps.r_007_steps.step_then_logs_can_be_filtered(context, filter_criteria)[source]¶
Ensures that logs can be filtered using specific criteria.
- Parameters:
context (runner.Context) – Behave context.
filter_criteria (str) – The filtering criteria (e.g., user, event type).
- Return type:
None
- features.steps.r_007_steps.step_when_admin_modifies_logging(context, log_level)[source]¶
Simulates the admin modifying the logging configuration.
- Parameters:
context (runner.Context) – Behave context.
log_level (str) – The new logging verbosity level.
- Return type:
None
- features.steps.r_007_steps.step_then_system_applies_logging_config(context)[source]¶
Verifies that the system applies the updated logging configuration.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_007_steps.step_then_logs_reflect_log_level(context, log_level)[source]¶
Ensures logs reflect the newly configured verbosity level.
- Parameters:
context (runner.Context) – Behave context.
log_level (str) – The expected verbosity level.
- Return type:
None
- features.steps.r_007_steps.step_when_system_restarts(context)[source]¶
Simulates a system restart.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_007_steps.step_then_previous_logs_are_accessible(context)[source]¶
Verifies that logs remain accessible after a system restart.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None