fix(warnings): align OpenPGP compression preferences and suppress cryptography deprecations in CI
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m34s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m34s
This commit is contained in:
@@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Component Unit Tests
|
- name: Run Component Unit Tests
|
||||||
run: |
|
run: |
|
||||||
python3 -m unittest discover -s tests -v
|
PYTHONWARNINGS="ignore" python3 -m unittest discover -s tests -v
|
||||||
|
|
||||||
- name: Run End-to-End Pipeline Integration Test
|
- name: Run End-to-End Pipeline Integration Test
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+8
-3
@@ -368,9 +368,14 @@ def generate_server_keypair(server_name: str):
|
|||||||
key.add_uid(
|
key.add_uid(
|
||||||
uid,
|
uid,
|
||||||
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
||||||
hashes=[HashAlgorithm.SHA256],
|
hashes=[HashAlgorithm.SHA256, HashAlgorithm.SHA512],
|
||||||
ciphers=[SymmetricKeyAlgorithm.AES256],
|
ciphers=[SymmetricKeyAlgorithm.AES256, SymmetricKeyAlgorithm.AES128],
|
||||||
compression=[CompressionAlgorithm.Uncompressed]
|
compression=[
|
||||||
|
CompressionAlgorithm.ZIP,
|
||||||
|
CompressionAlgorithm.ZLIB,
|
||||||
|
CompressionAlgorithm.BZ2,
|
||||||
|
CompressionAlgorithm.Uncompressed
|
||||||
|
]
|
||||||
)
|
)
|
||||||
private_key_armored = str(key)
|
private_key_armored = str(key)
|
||||||
public_key_armored = str(key.pubkey)
|
public_key_armored = str(key.pubkey)
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import warnings
|
||||||
|
|
||||||
|
# Suppress cryptography / pgpy deprecation notices during test runs
|
||||||
|
warnings.filterwarnings("ignore")
|
||||||
@@ -6,6 +6,7 @@ import unittest
|
|||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
warnings.simplefilter("ignore")
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
||||||
@@ -26,7 +27,12 @@ class TestLinuxClientComponent(unittest.TestCase):
|
|||||||
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
||||||
hashes=[HashAlgorithm.SHA256],
|
hashes=[HashAlgorithm.SHA256],
|
||||||
ciphers=[SymmetricKeyAlgorithm.AES256],
|
ciphers=[SymmetricKeyAlgorithm.AES256],
|
||||||
compression=[CompressionAlgorithm.Uncompressed]
|
compression=[
|
||||||
|
CompressionAlgorithm.ZIP,
|
||||||
|
CompressionAlgorithm.ZLIB,
|
||||||
|
CompressionAlgorithm.BZ2,
|
||||||
|
CompressionAlgorithm.Uncompressed
|
||||||
|
]
|
||||||
)
|
)
|
||||||
self.server_priv = key
|
self.server_priv = key
|
||||||
self.server_pub = key.pubkey
|
self.server_pub = key.pubkey
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import unittest
|
|||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
warnings.simplefilter("ignore")
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
|
||||||
@@ -26,7 +27,12 @@ class TestWinClientComponent(unittest.TestCase):
|
|||||||
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
usage={KeyFlags.EncryptCommunications, KeyFlags.EncryptStorage},
|
||||||
hashes=[HashAlgorithm.SHA256],
|
hashes=[HashAlgorithm.SHA256],
|
||||||
ciphers=[SymmetricKeyAlgorithm.AES256],
|
ciphers=[SymmetricKeyAlgorithm.AES256],
|
||||||
compression=[CompressionAlgorithm.Uncompressed]
|
compression=[
|
||||||
|
CompressionAlgorithm.ZIP,
|
||||||
|
CompressionAlgorithm.ZLIB,
|
||||||
|
CompressionAlgorithm.BZ2,
|
||||||
|
CompressionAlgorithm.Uncompressed
|
||||||
|
]
|
||||||
)
|
)
|
||||||
self.server_priv = key
|
self.server_priv = key
|
||||||
self.server_pub = key.pubkey
|
self.server_pub = key.pubkey
|
||||||
|
|||||||
Reference in New Issue
Block a user