@@ -400,7 +400,7 @@ def test_login_success_first_attempt(self, mock_get_option, mock_connection):
400
400
401
401
# Should call attempt_login once and return
402
402
mock_attempt .assert_called_once ()
403
- assert mock_attempt .call_args [0 ][0 ]["controller_type" ] == "DCNM "
403
+ assert mock_attempt .call_args [0 ][0 ]["controller_type" ] == "NDFC "
404
404
405
405
@patch .object (HttpApi , "get_option" )
406
406
def test_login_success_second_attempt (self , mock_get_option , mock_connection ):
@@ -790,11 +790,10 @@ def test_login_configs_structure(self, mock_connection):
790
790
791
791
# Get the first call (DCNM config)
792
792
nd_config = mock_attempt .call_args_list [0 ][0 ][0 ]
793
- assert nd_config ["controller_type" ] == "DCNM"
794
- assert nd_config ["version" ] == 11
795
- assert nd_config ["path" ] == "/rest/logon"
796
- assert nd_config ["force_basic_auth" ] is True
797
- assert "'expirationTime': 10000" in nd_config ["data" ]
793
+ assert nd_config ["controller_type" ] == "NDFC"
794
+ assert nd_config ["version" ] == 12
795
+ assert nd_config ["path" ] == "/login"
796
+ assert nd_config ["force_basic_auth" ] is False
798
797
799
798
def test_logout_config_selection (self , mock_connection ):
800
799
"""Test that logout selects correct configuration based on version."""
@@ -888,8 +887,8 @@ def test_full_login_logout_cycle_nd(self, mock_connection):
888
887
889
888
# Verify login state
890
889
assert http_api .login_succeeded is True
891
- assert http_api .version == 11
892
- assert http_api .connection ._auth == {"Dcnm-Token" : "test-token-123" }
890
+ assert http_api .version == 12
891
+ assert http_api .connection ._auth == {'Authorization' : 'Bearer None' , 'Cookie' : 'AuthCookie=None' }
893
892
894
893
# Perform logout
895
894
http_api .logout ()
0 commit comments