i1['chap-discovery-initiator-password'] = None
map_data = self.driver.initialize_connection(self.data.test_volume2,
self.data.connector)
+ data = {}
+ self.driver._add_auth(data, True, True)
+ self.assertIn('initiator-discovery-user-name', data,
+ 'Missing discovery user in data')
+ self.assertIn('initiator-discovery-password', data,
+ 'Missing discovery password in data')
def test_initialize_connection_bad_ig(self, req):
req.side_effect = xms_bad_request
login_passwd = self._get_password()
data['initiator-authentication-password'] = login_passwd
if discovery_chap:
- data['chap-discovery-initiator-user-name'] = 'chap_user'
+ data['initiator-discovery-user-name'] = 'chap_user'
discovery_passwd = self._get_password()
- data['chap-discovery-initiator-password'] = discovery_passwd
+ data['initiator-discovery-password'] = discovery_passwd
return login_passwd, discovery_passwd
def _create_initiator(self, connector, login_chap, discovery_chap):