Skip to content

Commit a66d53b

Browse files
feat: updated some tests
1 parent ffbab33 commit a66d53b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/resources/local_certs/generate_certificates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ openssl req \
1414
-newkey rsa:4096 \
1515
-keyout ca/private/ca_key.pem \
1616
-out ca/ca_cert.pem \
17-
-subj "/C=US/ST=Acme State/L=Acme City/O=Acme Inc./CN=0.0.0.0"
17+
-subj "/C=US/ST=Acme State/L=Acme City/O=Acme Inc./CN=Devo Test CA"
1818

1919
# Create server private key and certificate request
2020
mkdir -p server/private

tests/integration/test_sender_send_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def test_fake_get_peer_cert_chain(setup):
732732
chain_certs.append(crypto.load_certificate(crypto.FILETYPE_PEM, str(_ca)))
733733

734734
for a, b in zip(fake_chain_cert, chain_certs):
735-
assert a.get_subject() == b.get_subject()
735+
assert a.to_cryptography() == b.to_cryptography()
736736

737737

738738
def test_open_file(setup):

tests/integration/test_sender_send_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_deprecated_warning(setup):
376376
verify_mode=CERT_NONE,
377377
)
378378
con = Sender(engine_config)
379-
with pytest.warns(DeprecationWarning) as record:
379+
with pytest.warns(DeprecationWarning, match="lookup upload functionality") as record:
380380
lookup = Lookup(name=setup.lookup_name, historic_tag=None, con=con)
381381

382382
with open(setup.lookup_file) as f:

0 commit comments

Comments
 (0)