Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move the content of ops.testing to ops._private.harness #1369

Merged
merged 7 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/db-charm-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
commit: e59139a097bd407b5e785daf8193b777cc691af9 # 2024-08-26T10:45:00Z
- charm-repo: canonical/postgresql-k8s-operator
commit: beed68055e33191721896a3b8e28274a99e7de7b # 2024-08-26T16:47:32Z
- charm-repo: canonical/mysql-operator
commit: 25a8a79680f3fbf3c36e9e1d8c20a852f54129c1 # 2024-08-26T13:48:51Z
# Waiting for an upstream PR:
# https://github.com/canonical/mysql-operator/pull/519
#- charm-repo: canonical/mysql-operator
# commit: 25a8a79680f3fbf3c36e9e1d8c20a852f54129c1 # 2024-08-26T13:48:51Z
- charm-repo: canonical/mysql-k8s-operator
commit: 52df6266067d7233b7a067f7a967170b4096dba8 # rev183 rev182 2024-08-26T13:44:33Z
steps:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/observability-charm-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ jobs:
include:
- charm-repo: canonical/alertmanager-k8s-operator
commit: 4b2f567c43bc67e9d1fe24f018ba186dcd0396ed # 2024-08-28T11:32:28Z
- charm-repo: canonical/prometheus-k8s-operator
commit: 27025e5d840ec09331608b398cf4e49e5fe256e9 # 2024-08-28T11:32:32Z
- charm-repo: canonical/grafana-k8s-operator
commit: 1c80f746f8edeae6fd23ddf31eed45f5b88c06b4 # rev118 2024-08-12T14:02:32Z
# Waiting for an upstream PR:
# https://github.com/canonical/prometheus-k8s-operator/pull/639
#- charm-repo: canonical/prometheus-k8s-operator
# commit: 27025e5d840ec09331608b398cf4e49e5fe256e9 # 2024-08-28T11:32:32Z
# Waiting for an upstream PR:
# https://github.com/canonical/grafana-k8s-operator/pull/347
#- charm-repo: canonical/grafana-k8s-operator
# commit: 1c80f746f8edeae6fd23ddf31eed45f5b88c06b4 # rev118 2024-08-12T14:02:32Z
steps:
- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions docs/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ def _compute_navigation_tree(context):
('py:class', '_TextOrBinaryIO'),
('py:class', '_WarningDict'),
('py:class', '_Writeable'),
('py:obj', 'ops._private.harness.CharmType'),
('py:class', 'ops._private.harness.CharmType'),
('py:class', 'ops.charm._ContainerBaseDict'),
('py:class', 'ops.model._AddressDict'),
('py:class', 'ops.model._GenericLazyMapping'),
Expand Down
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ ops.pebble module
ops.testing module
==================

.. automodule:: ops.testing
.. autoclass:: ops.testing.ActionFailed
.. autoclass:: ops.testing.ActionOutput
.. autoclass:: ops.testing.ExecArgs
.. autoclass:: ops.testing.ExecResult
.. autoclass:: ops.testing.Harness


Indices
Expand Down
Loading
Loading