Search documentation of snmpkit

# SnmpKit.SnmpSim.TestHelpers.ProductionTestHelper (snmpkit v1.3.17)

Specialized testing utilities for production validation and testing.

# Summary

## Functions

cleanup_all()

Cleanup all production test resources.

cleanup_devices(devices)

Cleanup specific devices.

clear_monitoring_condition(condition_type)

Clears a specific monitoring condition.

create_devices_efficiently(device_count, opts \\ [])

Creates devices efficiently in batches for large-scale testing.

get_latest_alert(metric)

Gets the latest alert for a specific metric.

inject_monitoring_condition(condition_type, threshold)

Injects specific monitoring conditions for testing alerting systems.

integration_available?(system_name)

Checks if an integration system is available for testing.

reset_system_state()

Resets system state for production testing.

run_deployment_test(test_type, options \\ %{})

Runs deployment tests to validate operational procedures.

run_integration_test(test_type, options \\ %{})

Runs integration tests with external systems.

run_reliability_test(devices, duration_ms, failure_scenarios, options \\ %{})

Runs a comprehensive reliability test with failure injection.

run_security_test(test_type, options \\ %{})

Runs security tests to validate system resilience against attacks.

wait_for_alert(metric, timeout_ms)

Waits for a specific alert to be triggered within a timeout.

wait_for_recovery_alert(metric, timeout_ms)

Waits for a recovery alert indicating the condition has cleared.

# Functions

# cleanup_all()

Cleanup all production test resources.

# cleanup_devices(devices)

Cleanup specific devices.

# clear_monitoring_condition(condition_type)

Clears a specific monitoring condition.

# create_devices_efficiently(device_count, opts \\ [])

Creates devices efficiently in batches for large-scale testing.

# get_latest_alert(metric)

Gets the latest alert for a specific metric.

# inject_monitoring_condition(condition_type, threshold)

Injects specific monitoring conditions for testing alerting systems.

# integration_available?(system_name)

Checks if an integration system is available for testing.

# reset_system_state()

Resets system state for production testing.

# run_deployment_test(test_type, options \\ %{})

Runs deployment tests to validate operational procedures.

# run_integration_test(test_type, options \\ %{})

Runs integration tests with external systems.

# run_reliability_test(devices, duration_ms, failure_scenarios, options \\ %{})

Runs a comprehensive reliability test with failure injection.

# run_security_test(test_type, options \\ %{})

Runs security tests to validate system resilience against attacks.

# wait_for_alert(metric, timeout_ms)

Waits for a specific alert to be triggered within a timeout.

# wait_for_recovery_alert(metric, timeout_ms)

Waits for a recovery alert indicating the condition has cleared.