Skip to content

Commit

Permalink
Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Feb 26, 2025
1 parent 39034e3 commit a225d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_data_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _on_index_requested(self, _) -> None:


class DataProvidesBaseTests(ABC):
SECRET_FIELDS = ["username", "password", "tls", "tls-ca", "uris"]
SECRET_FIELDS = ["username", "password", "tls", "tls-ca", "uris", "read-only-uris"]
DATABASE_FIELD = "database"

@pytest.fixture
Expand Down Expand Up @@ -946,6 +946,7 @@ def test_set_additional_fields(self):
self.harness.charm.provider.set_tls(self.rel_id, "True")
self.harness.charm.provider.set_tls_ca(self.rel_id, "Canonical")
self.harness.charm.provider.set_uris(self.rel_id, "host1:port,host2:port")
self.harness.charm.provider.set_read_only_uris(self.rel_id, "host2:port")
self.harness.charm.provider.set_version(self.rel_id, "1.0")

# Check that the additional fields are present in the relation.
Expand All @@ -957,6 +958,7 @@ def test_set_additional_fields(self):
"tls": "True",
"tls-ca": "Canonical",
"uris": "host1:port,host2:port",
"read-only-uris": "host2:port",
"version": "1.0",
}

Expand Down

0 comments on commit a225d28

Please sign in to comment.