Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: test_ad_user_source is failing on dot1x_eap_tls test #8474

Closed
JeGoi opened this issue Jan 8, 2025 · 2 comments
Closed

tests: test_ad_user_source is failing on dot1x_eap_tls test #8474

JeGoi opened this issue Jan 8, 2025 · 2 comments
Assignees
Labels
Priority: High tests Issues related to tests performed by CI

Comments

@JeGoi
Copy link
Contributor

JeGoi commented Jan 8, 2025

Describe the problem

            • test_ad_user_source FAILURE
    Testcase "pf_api_action", step #1: Assertion "result.statuscode ShouldEqual \"200\"" failed. expected: 200  got: 422 (:0)
    Testcase "test_ad_user_source", step #0: failed (/usr/local/pf/t/venom/test_suites/wired_dot1x_eap_tls_pki/20_create_and_test_ad_user_source.yml:68) 

from venom.log:

Jan  8 18:47:54.630^[[37m [DEBU] [Create and test AD user source] [test_ad_user_source] [http] ^[[0mresult of runTestStepExecutor: {TimeSeconds:0.287354787 StatusCode:422 Request:{Method:POST URL:https://172.18.200.12:1443/api/v1/config/sources/test Header:map[Authorization:[3ba344a7e692a2c8841fb1bbf7052f683eca067601277d855cd17e767335de15] Content-Type:[application/json]] Body:{ "basedn": "dc=example,dc=lan", "binddn": "[email protected]", "connection_timeout": 1, "description": "172.18.200.100 user authentication", "encryption": "starttls", "host": [ "172.18.200.100" ], "id": "wired_dot1x_eap_tls_pki_user_auth", "password": "VagrantPass1", "port": "389", "read_timeout": 10, "scope": "sub", "type": "AD", "usernameattribute": "sAMAccountName", "verify": "none", "client_cert_file": "", "client_key_file": "", "ca_file": "", "write_timeout": 5 } Form:map[] PostForm:map[]} Body:{"errors":[],"message":"Can't connect to server or bind with '[email protected]' on 172.18.200.100:389","status":422} BodyJSON:map[errors:[] message:Can't connect to server or bind with '[email protected]' on 172.18.200.100:389 status:422] Headers:map[Alt-Svc:h3=":9999"; ma=2592000 Content-Length:125 Content-Type:application/json Date:Wed, 08 Jan 2025 18:47:54 GMT Server:Caddy Set-Cookie:token=3ba344a7e692a2c8841fb1bbf7052f683eca067601277d855cd17e767335de15; Path=/; Expires=Wed, 08 Jan 2025 19:02:54 GMT; Max-Age=90000] Err:}

The test is there: https://github.com/inverse-inc/packetfence/blob/devel/t/venom/test_suites/wired_dot1x_eap_tls_pki/20_create_and_test_ad_user_source.yml#L65

Mandatory informations

Something broke between 67e3389 and this message

Symptoms
How the problem can be identified if it appears again ?

@JeGoi JeGoi added Priority: High tests Issues related to tests performed by CI labels Jan 8, 2025
@JeGoi JeGoi added this to the PacketFence-14.1 milestone Jan 8, 2025
@JeGoi
Copy link
Contributor Author

JeGoi commented Jan 13, 2025

On hold.

@jrouzierinverse
Copy link
Member

This maybe fixed by 956b738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High tests Issues related to tests performed by CI
Projects
None yet
Development

No branches or pull requests

3 participants