Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 38622cb

Browse files
juergwcopybara-github
authored andcommitted
Rename _hcvault_kms_client.py to _hcvault_kms_aead.py.
PiperOrigin-RevId: 602960083
1 parent 069da25 commit 38622cb

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

python/tink/integration/hcvault/BUILD.bazel

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ py_library(
99
srcs_version = "PY3",
1010
visibility = ["//visibility:public"],
1111
deps = [
12-
":_hcvault_kms_client",
12+
":_hcvault_kms_aead",
1313
],
1414
)
1515

1616
py_library(
17-
name = "_hcvault_kms_client",
18-
srcs = ["_hcvault_kms_client.py"],
17+
name = "_hcvault_kms_aead",
18+
srcs = ["_hcvault_kms_aead.py"],
1919
srcs_version = "PY3",
2020
deps = [
2121
"//tink:tink_python",
@@ -32,7 +32,7 @@ py_test(
3232
srcs_version = "PY3",
3333
deps = [
3434
":hcvault",
35-
":_hcvault_kms_client",
35+
":_hcvault_kms_aead",
3636
"//tink:tink_python",
3737
"//tink/testing:helper",
3838
requirement("absl-py"),

python/tink/integration/hcvault/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
try:
1717
# pylint: disable=g-import-not-at-top
18-
from tink.integration.hcvault import _hcvault_kms_client
18+
from tink.integration.hcvault import _hcvault_kms_aead
1919
except ImportError as import_error:
2020
raise ImportError(
2121
'Error importing the Tink HashiCorp Vault KMS module; did you forget to'
2222
' install the `tink[hcvault]` extras?'
2323
) from import_error
2424

25-
create_aead = _hcvault_kms_client.create_aead
25+
create_aead = _hcvault_kms_aead.create_aead

python/tink/integration/hcvault/_hcvault_kms_aead_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""Tests for _hcvault_kms_client.py."""
14+
"""Tests for _hcvault_kms_aead.py."""
1515

1616
import base64
1717
import http.server
@@ -171,7 +171,7 @@ def test_encrypt_with_bad_uri(self):
171171
def test_valid_get_endpoint_paths(
172172
self, path, expected_mount, expected_key_name
173173
):
174-
mount, path = hcvault._hcvault_kms_client._get_endpoint_paths(path)
174+
mount, path = hcvault._hcvault_kms_aead._get_endpoint_paths(path)
175175
self.assertEqual(mount, expected_mount)
176176
self.assertEqual(path, expected_key_name)
177177

@@ -189,7 +189,7 @@ def test_valid_get_endpoint_paths(
189189
])
190190
def test_invalid_get_endpoint_paths(self, path):
191191
with self.assertRaises(tink.TinkError):
192-
_, _ = hcvault._hcvault_kms_client._get_endpoint_paths(path)
192+
_, _ = hcvault._hcvault_kms_aead._get_endpoint_paths(path)
193193

194194

195195
if __name__ == '__main__':

0 commit comments

Comments
 (0)