From aba5b7713e363c77b3741eb6a109216faefe2a52 Mon Sep 17 00:00:00 2001 From: Ro'e Katz Date: Tue, 30 Apr 2024 19:42:22 +0300 Subject: [PATCH] Suppress warnings in tests --- packages/opal-client/opal_client/config.py | 2 +- packages/opal-common/opal_common/authentication/types.py | 8 ++++---- packages/requires.txt | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/opal-client/opal_client/config.py b/packages/opal-client/opal_client/config.py index a38c280c0..3f9f72125 100644 --- a/packages/opal-client/opal_client/config.py +++ b/packages/opal-client/opal_client/config.py @@ -90,7 +90,7 @@ class OpalClientConfig(Confi): POLICY_STORE_POLICY_PATHS_TO_IGNORE = confi.list( "POLICY_STORE_POLICY_PATHS_TO_IGNORE", [], - description="When loading policies manually or otherwise externally into the policy store, use this list of glob patterns to have OPAL ignore and not delete or override them, end paths (without any wildcards in the middle) with '\**' to indicate you want all nested under the path to be ignored", + description="When loading policies manually or otherwise externally into the policy store, use this list of glob patterns to have OPAL ignore and not delete or override them, end paths (without any wildcards in the middle) with '/**' to indicate you want all nested under the path to be ignored", ) POLICY_UPDATER_ENABLED = confi.bool( diff --git a/packages/opal-common/opal_common/authentication/types.py b/packages/opal-common/opal_common/authentication/types.py index f04f91b70..c06c62e8f 100644 --- a/packages/opal-common/opal_common/authentication/types.py +++ b/packages/opal-common/opal_common/authentication/types.py @@ -2,14 +2,14 @@ from typing import Any, Dict from cryptography.hazmat.primitives.asymmetric.types import ( - PRIVATE_KEY_TYPES, - PUBLIC_KEY_TYPES, + PrivateKeyTypes, + PublicKeyTypes, ) from jwt.algorithms import get_default_algorithms # custom types -PrivateKey = PRIVATE_KEY_TYPES -PublicKey = PUBLIC_KEY_TYPES +PrivateKey = PrivateKeyTypes +PublicKey = PublicKeyTypes JWTClaims = Dict[str, Any] diff --git a/packages/requires.txt b/packages/requires.txt index 5b291165b..5096c6000 100644 --- a/packages/requires.txt +++ b/packages/requires.txt @@ -1,4 +1,3 @@ -charset-normalizer>=2.0.12,<3 idna>=3.3,<4 typer>=0.4.1,<1 fastapi>=0.109.1,<1