qontract-reconcile 0.10.1rc862__py3-none-any.whl → 0.10.1rc863__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.
- {qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/RECORD +7 -7
- reconcile/test/test_three_way_diff_strategy.py +10 -0
- reconcile/utils/three_way_diff_strategy.py +8 -0
- {qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc863
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/RECORD
RENAMED
@@ -551,7 +551,7 @@ reconcile/test/test_terraform_tgw_attachments.py,sha256=rHZHUtDxewpKsRj3nfm2bZ2J
|
|
551
551
|
reconcile/test/test_terraform_users.py,sha256=XOAfGvITCJPI1LTlISmHbA4ONMQMkxYUMTsny7pQCFw,4319
|
552
552
|
reconcile/test/test_terraform_vpc_peerings.py,sha256=Btl0ym7NmO2QFST9Xviz4OO1RjJuhCp1Xhix5A3e_HQ,20822
|
553
553
|
reconcile/test/test_terraform_vpc_peerings_build_desired_state.py,sha256=7VAFVbjlnnUJoOkZ4ApDc1lHFj38Zj4yrbDKvWkqWXE,49545
|
554
|
-
reconcile/test/test_three_way_diff_strategy.py,sha256=
|
554
|
+
reconcile/test/test_three_way_diff_strategy.py,sha256=v3rNkQFNy5e1uyfeNSlNBA07fvrPGD0aXD91Lgv8oxc,4062
|
555
555
|
reconcile/test/test_utils_jinja2.py,sha256=TpzQlpFnLGzNEZp5WOh0o7AuBiGEktqO4MuwiiJW2YY,3895
|
556
556
|
reconcile/test/test_vault_replication.py,sha256=wlc4jm9f8P641UvvxIFFFc5_unJysNkOVrKJscjhQr0,16867
|
557
557
|
reconcile/test/test_vault_utils.py,sha256=vbJnc89XAuE07qbTuWxHM5o9F6R9SO5aHXA38fwxT7A,1122
|
@@ -703,7 +703,7 @@ reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,35
|
|
703
703
|
reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
|
704
704
|
reconcile/utils/terraform_client.py,sha256=mZEKpu6nbfiQd60wRkc8-5sljBTUTOgaAKnF89itMzU,32085
|
705
705
|
reconcile/utils/terrascript_aws_client.py,sha256=msKley24-PiYt3lsPUNzKh2tpMj4MpGjF7lXFr0sBM0,276187
|
706
|
-
reconcile/utils/three_way_diff_strategy.py,sha256=
|
706
|
+
reconcile/utils/three_way_diff_strategy.py,sha256=OniTnogBkdgy_7Xg51N1MgjS-Qtk8uM1ccjWaiXxiV8,4895
|
707
707
|
reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
|
708
708
|
reconcile/utils/vault.py,sha256=AYGG5aDJ7CSVhTFdZowfEg3iSQWenoAt676aGjHQMX8,14978
|
709
709
|
reconcile/utils/vaultsecretref.py,sha256=3Ed2uBy36TzSvL0B-l4FoWQqB2SbBKDKEuUPIO608Bo,931
|
@@ -836,8 +836,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
836
836
|
tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
|
837
837
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
838
838
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
839
|
-
qontract_reconcile-0.10.
|
840
|
-
qontract_reconcile-0.10.
|
841
|
-
qontract_reconcile-0.10.
|
842
|
-
qontract_reconcile-0.10.
|
843
|
-
qontract_reconcile-0.10.
|
839
|
+
qontract_reconcile-0.10.1rc863.dist-info/METADATA,sha256=y5iyh4zPDNPYn2dGYtX6BC-ak-Fy21lC_RxGqXh0BjA,2273
|
840
|
+
qontract_reconcile-0.10.1rc863.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
841
|
+
qontract_reconcile-0.10.1rc863.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
842
|
+
qontract_reconcile-0.10.1rc863.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
843
|
+
qontract_reconcile-0.10.1rc863.dist-info/RECORD,,
|
@@ -119,3 +119,13 @@ def test_3wpd_diff_detects_missing_annotation(deployment):
|
|
119
119
|
del c_item.body["metadata"]["annotations"]["new-annotation"]
|
120
120
|
|
121
121
|
assert three_way_diff_using_hash(c_item, d_item) is False
|
122
|
+
|
123
|
+
|
124
|
+
def test_3wpd_diff_detects_switch_integration(deployment):
|
125
|
+
d_item = OR(deployment, "same-integration", "")
|
126
|
+
deployment["metadata"]["annotations"]["qontract.integration"] = (
|
127
|
+
"different-integration"
|
128
|
+
)
|
129
|
+
c_item = OR(deployment, "same-integration", "").annotate(canonicalize=False)
|
130
|
+
|
131
|
+
assert three_way_diff_using_hash(c_item, d_item) is False
|
@@ -131,6 +131,14 @@ def three_way_diff_using_hash(c_item: OR, d_item: OR) -> bool:
|
|
131
131
|
logging.debug("Current object QR hash is missing -> Apply")
|
132
132
|
return False
|
133
133
|
|
134
|
+
if (
|
135
|
+
c_item_integration := annotations["qontract.integration"]
|
136
|
+
) != d_item.integration:
|
137
|
+
logging.info(
|
138
|
+
f"resource switching integration from {c_item_integration} to {d_item.integration}"
|
139
|
+
)
|
140
|
+
return False
|
141
|
+
|
134
142
|
# Original object does not match Desired -> Apply
|
135
143
|
# Current object hash is not recalculated!
|
136
144
|
if c_item_sha256 != d_item.sha256sum():
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc862.dist-info → qontract_reconcile-0.10.1rc863.dist-info}/top_level.txt
RENAMED
File without changes
|