stackabletech / operator-rs

A simple wrapper/framework around kube-rs to make implementing Operators/Controllers easier
Apache License 2.0
116 stars 12 forks source link

chore: implement PartialEq for most Snafu Error enums #757

Closed NickLarsenNZ closed 5 months ago

NickLarsenNZ commented 5 months ago

Description

This change is to encourage testing error variants by type rather than text contents.

[!IMPORTANT] Some variants are impossible to compare, so these implementations are restricted to #[cfg(test)] because they cause panics.

Definition of Done Checklist

# Reviewer
- [ ] Code contains useful comments
- [ ] (Integration-)Test cases added
- [ ] Documentation added or updated
- [ ] Changelog updated
- [ ] Cargo.toml only contains references to git tags (not specific commits or branches)
# Acceptance
- [ ] Feature Tracker has been updated
- [ ] Proper release label has been added