@@ -1719,13 +1719,13 @@ def test_update_config(harness):
1719
1719
)
1720
1720
_handle_postgresql_restart_need .assert_called_once ()
1721
1721
_restart_metrics_service .assert_called_once ()
1722
- # _restart_ldap_sync_service.assert_called_once()
1722
+ _restart_ldap_sync_service .assert_called_once ()
1723
1723
assert "tls" not in harness .get_relation_data (rel_id , harness .charm .unit .name )
1724
1724
1725
1725
# Test with TLS files available.
1726
1726
_handle_postgresql_restart_need .reset_mock ()
1727
1727
_restart_metrics_service .reset_mock ()
1728
- # _restart_ldap_sync_service.reset_mock()
1728
+ _restart_ldap_sync_service .reset_mock ()
1729
1729
harness .update_relation_data (
1730
1730
rel_id , harness .charm .unit .name , {"tls" : "" }
1731
1731
) # Mock some data in the relation to test that it change.
@@ -1748,7 +1748,7 @@ def test_update_config(harness):
1748
1748
)
1749
1749
_handle_postgresql_restart_need .assert_called_once ()
1750
1750
_restart_metrics_service .assert_called_once ()
1751
- # _restart_ldap_sync_service.assert_called_once()
1751
+ _restart_ldap_sync_service .assert_called_once ()
1752
1752
assert "tls" not in harness .get_relation_data (
1753
1753
rel_id , harness .charm .unit .name
1754
1754
) # The "tls" flag is set in handle_postgresql_restart_need.
@@ -1759,11 +1759,11 @@ def test_update_config(harness):
1759
1759
) # Mock some data in the relation to test that it change.
1760
1760
_handle_postgresql_restart_need .reset_mock ()
1761
1761
_restart_metrics_service .reset_mock ()
1762
- # _restart_ldap_sync_service.reset_mock()
1762
+ _restart_ldap_sync_service .reset_mock ()
1763
1763
harness .charm .update_config ()
1764
1764
_handle_postgresql_restart_need .assert_not_called ()
1765
1765
_restart_metrics_service .assert_not_called ()
1766
- # _restart_ldap_sync_service.assert_not_called()
1766
+ _restart_ldap_sync_service .assert_not_called ()
1767
1767
assert harness .get_relation_data (rel_id , harness .charm .unit .name )["tls" ] == "enabled"
1768
1768
1769
1769
# Test with member not started yet.
@@ -1773,7 +1773,7 @@ def test_update_config(harness):
1773
1773
harness .charm .update_config ()
1774
1774
_handle_postgresql_restart_need .assert_not_called ()
1775
1775
_restart_metrics_service .assert_not_called ()
1776
- # _restart_ldap_sync_service.assert_not_called()
1776
+ _restart_ldap_sync_service .assert_not_called ()
1777
1777
assert "tls" not in harness .get_relation_data (rel_id , harness .charm .unit .name )
1778
1778
1779
1779
0 commit comments