git - How to add dummy interactive users on the Gerrit -


i have setup local gerrit ldap enabled. need add dummy/test users not registered in ldap should able log in using gerrit login page. default login method set ldap (may need bypass ldap authentication test users).

fyi. tried below command it's not working.

ssh -p 29418 username@192.168.12.70 gerrit create-account --group developers --full-name "developers" --email test@devgroup.com --http-password password username

and throws below error fatal: many arguments: username

it seems bug... if try use rest api instead? can use this:

curl --request put --user user:pass --data @- --header content-type:application/json https://gerrit-server/a/accounts/username << eof {     "name": "developers",     "email": "test@devgroup.com",     "http_password": "password",     "groups": [       "developers"     ] } eof 

see more info here.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -