Skip to content

Commit 41346a3

Browse files
Merge branch 'dev' into rginsburg/imds_compute_json
2 parents af2ed74 + bfd7fb7 commit 41346a3

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.Pipelines/template-pipeline-stages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,15 @@ stages:
121121
--benchmark-skip \
122122
--timeout=120 \
123123
--junitxml=test-results/junit-unit.xml \
124+
--log-file=test-results/pytest-unit.log \
124125
--ignore=tests/test_e2e.py \
125126
--ignore=tests/test_e2e_manual.py \
126127
--ignore=tests/test_fmi_e2e.py \
127128
--deselect tests/test_cryptography.py::CryptographyTestCase::test_ceiling_should_be_latest_cryptography_version_plus_three \
128-
--deselect tests/test_cryptography.py::CryptographyTestCase::test_should_be_run_with_latest_version_of_cryptography \
129-
2>&1 | tee test-results/pytest-unit.log
129+
--deselect tests/test_cryptography.py::CryptographyTestCase::test_should_be_run_with_latest_version_of_cryptography
130130
displayName: 'Run pytest (unit)'
131131
timeoutInMinutes: 5
132132
env:
133-
# Force unbuffered stdout so ADO logs stream in real time through the tee pipe.
134133
PYTHONUNBUFFERED: '1'
135134
136135
# Run cryptography version-gating tests separately as a warning-only check.

msal/wstrust_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#------------------------------------------------------------------------------
2727

2828
import uuid
29-
from datetime import datetime, timedelta
29+
from datetime import datetime, timedelta, timezone
3030
import logging
3131

3232
from .mex import Mex
@@ -76,7 +76,7 @@ def wsu_time_format(datetime_obj):
7676

7777

7878
def _build_rst(username, password, cloud_audience_urn, endpoint_address, soap_action):
79-
now = datetime.utcnow()
79+
now = datetime.now(timezone.utc)
8080
return """<s:Envelope xmlns:s='{s}' xmlns:wsa='{wsa}' xmlns:wsu='{wsu}'>
8181
<s:Header>
8282
<wsa:Action s:mustUnderstand='1'>{soap_action}</wsa:Action>

0 commit comments

Comments
 (0)