Skip to content

Commit

Permalink
userName updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashkuma committed Nov 17, 2023
1 parent 05b0c19 commit 5edf97b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catchpoint/catchpoint_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func setTestRequestSettings(config *TestConfig) RequestSetting {
authenticationMethodType := GenericIdNameOmitEmpty{Id: config.AuthenticationType.Id, Name: config.AuthenticationType.Name}
passwordStatus := GenericIdNameOmitEmpty{Id: 1, Name: "Set"}
passwordIds := config.AuthenticationPasswordIds
authentication = AuthenticationStruct{AuthenticationMethodType: authenticationMethodType, PasswordStatus: passwordStatus, Username: config.Username, Password: config.Password, PasswordIds: passwordIds}
authentication = AuthenticationStruct{AuthenticationMethodType: authenticationMethodType, PasswordStatus: passwordStatus, UserName: config.UserName, Password: config.Password, PasswordIds: passwordIds}
}

requestSetting := RequestSetting{RequestSettingType: requestSettingType, HttpHeaderRequests: httpHeaderRequests, TokenIds: config.AuthenticationTokenIds, LibraryCertificateIds: config.AuthenticationCertificateIds}
Expand Down
4 changes: 2 additions & 2 deletions catchpoint/test_section_setter.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ func setRequestSettings(testTypeId int, request_setting map[string]interface{},
if authentication_type_id == -1 {
return errors.New("invalid authentication_type provided. valid types are 'basic','ntlm','digest','login'")
}
username := authentication["username"].(string)
userName := authentication["userName"].(string)
password := authentication["password"].(string)
testConfig.AuthenticationType.Id = authentication_type_id
testConfig.AuthenticationType.Name = authentication_type_name
testConfig.Username = username
testConfig.UserName = userName
testConfig.Password = password

tfpassword_ids := authentication["password_ids"].([]interface{})
Expand Down
2 changes: 1 addition & 1 deletion catchpoint/test_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type TestConfig struct {
TestStatus int
RequestSettingType int
AuthenticationType IdName
Username string
UserName string
Password string
AuthenticationPasswordIds []int
AuthenticationTokenIds []int
Expand Down

0 comments on commit 5edf97b

Please sign in to comment.