features.steps.r_007_steps

Python steps file for R_007.

Attributes

Functions

step_when_admin_performs_action(context, action)

Simulates the admin performing a specified action (create, update, delete).

step_then_system_logs_action(context, action)

Verifies that the system logs the specified action with relevant details.

step_when_admin_retrieves_logs(context, time_range)

Simulates the admin retrieving logs for a specific time range.

step_then_system_displays_logs(context, time_range)

Verifies that the system correctly displays logs within the specified time range.

step_then_logs_can_be_filtered(context, filter_criteria)

Ensures that logs can be filtered using specific criteria.

step_when_admin_modifies_logging(context, log_level)

Simulates the admin modifying the logging configuration.

step_then_system_applies_logging_config(context)

Verifies that the system applies the updated logging configuration.

step_then_logs_reflect_log_level(context, log_level)

Ensures logs reflect the newly configured verbosity level.

step_when_system_restarts(context)

Simulates a system restart.

step_then_previous_logs_are_accessible(context)

Verifies that logs remain accessible after a system restart.

step_then_unauthorized_users_cannot_modify_logs(context)

Ensures unauthorized users cannot delete or modify logs.

reset_log_file()

Module Contents

features.steps.r_007_steps.logger[source]
features.steps.r_007_steps.CURRENT_DIR[source]
features.steps.r_007_steps.LOG_FILE_PATH = b'.'[source]
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

features.steps.r_007_steps.step_then_unauthorized_users_cannot_modify_logs(context)[source]

Ensures unauthorized users cannot delete or modify logs.

Parameters:

context (runner.Context) – Behave context.

Return type:

None

features.steps.r_007_steps.reset_log_file()[source]