Skip to content

Commit 57e8d50

Browse files
authored
Merge pull request #64 from kriegeraa/main
Fix tests for PasswordChangeRequired
2 parents c9676a6 + fae4aff commit 57e8d50

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

redfish_protocol_validator/accounts.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -359,21 +359,22 @@ def password_change_required(sut: SystemUnderTest, session, user, password,
359359
request_type=RequestType.PWD_CHANGE_REQUIRED)
360360
# GET the account
361361
response = requests.get(sut.rhost + uri, auth=(user, password),
362-
headers=headers)
362+
headers=headers, verify=sut.verify)
363363
etag = utils.get_response_etag(response)
364364
sut.add_response(uri, response, resource_type=ResourceType.MANAGER_ACCOUNT,
365365
request_type=RequestType.PWD_CHANGE_REQUIRED)
366366
# try to get protected resource
367367
response = requests.get(sut.rhost + sut.sessions_uri,
368-
auth=(user, password), headers=headers)
368+
auth=(user, password), headers=headers,
369+
verify=sut.verify)
369370
sut.add_response(sut.sessions_uri, response,
370371
request_type=RequestType.PWD_CHANGE_REQUIRED)
371372
# change password
372373
payload = {'Password': new_password(sut)}
373374
if etag:
374375
headers['If-Match'] = etag
375-
response = requests.patch(uri, auth=(user, password), json=payload,
376-
headers=headers)
376+
response = requests.patch(sut.rhost + uri, auth=(user, password), json=payload,
377+
headers=headers, verify=sut.verify)
377378
sut.add_response(uri, response,
378379
resource_type=ResourceType.MANAGER_ACCOUNT,
379380
request_type=RequestType.PWD_CHANGE_REQUIRED)

0 commit comments

Comments
 (0)