qontract-reconcile 0.10.2.dev76__py3-none-any.whl → 0.10.2.dev77__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev76
3
+ Version: 0.10.2.dev77
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -488,7 +488,7 @@ reconcile/skupper_network/site_controller.py,sha256=ovBUPuqrJjmhZBSV2zF9HQByVgBF
488
488
  reconcile/statuspage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
489
489
  reconcile/statuspage/atlassian.py,sha256=41uE77ZeV0M98k_xVmrXUQ33iVG8Lb3TwrWq2pRc84U,18617
490
490
  reconcile/statuspage/integration.py,sha256=hsazrQMceJbr61nEkJLxJbHhudTGtFuH0mlCo66-2ug,711
491
- reconcile/statuspage/page.py,sha256=EWzu7rYjS6QJzgjKmfSV5pGmCAzFR3U5HGiN9ytblog,5375
491
+ reconcile/statuspage/page.py,sha256=zq9udsWw7ARxnG10mZytcBwGvH30XsyduqcQJByCQaI,6339
492
492
  reconcile/statuspage/state.py,sha256=wjX9by5Yy7nobxiE-xNhf6GyNwMVATd0O37jBckJm5M,1591
493
493
  reconcile/statuspage/status.py,sha256=5nYtMaxOqMYdM7n_Glss3ZcaPKQe_nUUQKH6xCTE9rI,2741
494
494
  reconcile/statuspage/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -786,7 +786,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
786
786
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
787
787
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
788
788
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
789
- qontract_reconcile-0.10.2.dev76.dist-info/METADATA,sha256=s6eKwa3m2zrcw94LpEgwZaygpv33tsluTXLefR2jdzM,24565
790
- qontract_reconcile-0.10.2.dev76.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
- qontract_reconcile-0.10.2.dev76.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
- qontract_reconcile-0.10.2.dev76.dist-info/RECORD,,
789
+ qontract_reconcile-0.10.2.dev77.dist-info/METADATA,sha256=F9mP1rH9xCxwwAfw3JvwbEgzbmx7fS6Zbq8gkoxS_5A,24565
790
+ qontract_reconcile-0.10.2.dev77.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
791
+ qontract_reconcile-0.10.2.dev77.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
792
+ qontract_reconcile-0.10.2.dev77.dist-info/RECORD,,
@@ -52,6 +52,16 @@ class StatusComponent(BaseModel):
52
52
  class Config:
53
53
  arbitrary_types_allowed = True
54
54
 
55
+ def __eq__(self, other: object) -> bool:
56
+ if not isinstance(other, StatusComponent):
57
+ raise NotImplementedError("Cannot compare to non StatusComponent objects.")
58
+ return (
59
+ self.name == other.name
60
+ and self.display_name == other.display_name
61
+ and self.description == other.description
62
+ and self.group_name == other.group_name
63
+ )
64
+
55
65
  @classmethod
56
66
  def init_from_page_component(
57
67
  cls, component: StatusPageComponentV1, name_override: str | None = None
@@ -172,3 +182,17 @@ class StatusMaintenance(BaseModel):
172
182
  components=affected_components,
173
183
  announcements=statuspage_announcements[0],
174
184
  )
185
+
186
+ def __eq__(self, other: object) -> bool:
187
+ if not isinstance(other, StatusMaintenance):
188
+ raise NotImplementedError(
189
+ "Cannot compare to non StatusMaintenance objects."
190
+ )
191
+ return (
192
+ self.name == other.name
193
+ and self.message == other.message
194
+ and self.schedule_start == other.schedule_start
195
+ and self.schedule_end == other.schedule_end
196
+ and self.components == other.components
197
+ and self.announcements == other.announcements
198
+ )