Skip to content

Add configurable fault injection for negative testing - #591

Merged
marcushines merged 2 commits into
openconfig:mainfrom
mtr002:fail2
Aug 6, 2025
Merged

Add configurable fault injection for negative testing#591
marcushines merged 2 commits into
openconfig:mainfrom
mtr002:fail2

Conversation

@mtr002

@mtr002 mtr002 commented Aug 1, 2025

Copy link
Copy Markdown
Contributor
  • Add proto definitions for FaultServiceConfiguration and GNOIFaults
  • Implement config-based fault interceptor with sequential application

@mtr002
mtr002 requested a review from a team as a code owner August 1, 2025 19:18
@marcushines

Copy link
Copy Markdown
Contributor

/gcbrun

Comment thread fault/fault.go
Comment thread fault/fault.go
- Introduced a fault manager to handle configuration-based fault injection for gNOI services.
- Enhanced the Device struct to include a fault manager and initialized it based on configuration.
- Added fault configuration validation and default settings in the config loader.
- Created new configuration files for fault injection examples and gNOI fault definitions.
- Updated the fault interceptor to support pre-configured faults for RPC methods.
@marcushines

Copy link
Copy Markdown
Contributor

/gcbrun

@marcushines
marcushines merged commit 7600b98 into openconfig:main Aug 6, 2025
9 checks passed
@mtr002
mtr002 deleted the fail2 branch August 6, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants