Skip to content

Commit b414828

Browse files
fix: fix rotated secret test assertion and add proper commits.rst
The test_get_rotated_secret_passes_list was checking .names on a MagicMock object instead of verifying the SDK constructor call args. The commits.rst file was missing a proper RST title, causing 48 documentation build errors. Made-with: Cursor
1 parent dd601ff commit b414828

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

providers/akeyless/docs/commits.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.. Licensed to the Apache Software Foundation (ASF) under one
1+
2+
.. Licensed to the Apache Software Foundation (ASF) under one
23
or more contributor license agreements. See the NOTICE file
34
distributed with this work for additional information
45
regarding copyright ownership. The ASF licenses this file
@@ -15,6 +16,20 @@
1516
specific language governing permissions and limitations
1617
under the License.
1718
18-
Package ``apache-airflow-providers-akeyless``
19+
.. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
20+
21+
.. IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
22+
`PROVIDER_COMMITS_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
23+
24+
.. THE REMAINDER OF THE FILE IS AUTOMATICALLY GENERATED. IT WILL BE OVERWRITTEN!
25+
26+
Package apache-airflow-providers-akeyless
27+
------------------------------------------------------
28+
29+
`Akeyless <https://www.akeyless.io/>`__ Vault Platform provider for Apache Airflow.
30+
31+
32+
This is detailed commit list of changes for versions provider package: ``akeyless``.
33+
For high-level changelog, see :doc:`package information including changelog <index>`.
1934

20-
.. Commit list will be generated at release time.
35+
.. airflow-providers-commits::

providers/akeyless/tests/unit/akeyless/hooks/test_akeyless.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,4 @@ def test_get_rotated_secret_passes_list(self, mock_sdk, mock_conn):
203203

204204
hook = AkeylessHook()
205205
hook.get_rotated_secret_value("/rotated/creds")
206-
call_args = api.get_rotated_secret_value.call_args[0][0]
207-
assert call_args.names == ["/rotated/creds"]
206+
mock_sdk.GetRotatedSecretValue.assert_called_once_with(names=["/rotated/creds"], token="t")

0 commit comments

Comments
 (0)