fix kerberos cluster API tests
Description
Problem/Justification
None
Impact
None
Activity
Show:

Bug Clerk November 2, 2021 at 5:41 PM
22.02-RC.2 PR: https://github.com/truenas/middleware/pull/7811
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee

Reporter

Labels
Time remaining
0m
Components
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created November 2, 2021 at 5:20 PM
Updated July 6, 2022 at 8:57 PM
Resolved November 2, 2021 at 5:48 PM
=================================== FAILURES ===================================
______________ test_006_validate_kerberos_settings[10.234.65.10] _______________
ip = '10.234.65.10'
request = <FixtureRequest for <Function test_006_validate_kerberos_settings[10.234.65.10]>>
@pytest.mark.parametrize('ip', CLUSTER_IPS)
def test_006_validate_kerberos_settings(ip, request):
depends(request, ['JOINED_AD'])
payload = {
'query-filters': [["realm", "=", CLUSTER_ADS['DOMAIN']]],
'query-options': {'get': True},
}
url = f'http://{ip}/api/v2.0/kerberos/realm'
res = make_request('get', url, data=payload)
> assert res.status_code == 200, res.text
E AssertionError: {
E "message": ""
E }
E assert 404 == 200
E +404
E -200