Adding a repo turned out to be easy:

root = client.get_root()
root.get_repositories().create(name='perforce', tool="Perforce", 
path="localhost:1492")

I'm all set.  Thanks!

--Steve


On Tuesday, April 7, 2015 at 7:40:50 AM UTC-7, Steve wrote:
>
> Okay, makes sense.  I can work around that.  Is there support for adding a 
> perforce repository via the API?  That's the only other piece I need to 
> automate my tests.
>
> Thanks
>
> --Steve
>
>
> On Monday, April 6, 2015 at 6:41:32 PM UTC-7, Christian Hammond wrote:
>>
>> Hi Steve,
>>
>> There's no support in the API for creating users. This must be done 
>> through the web UI or through an authentication backend, like LDAP or 
>> Active Directory.
>>
>> Christian
>>
>> -- 
>> Christian Hammond - chi...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> Beanbag, Inc. - http://www.beanbaginc.com
>>
>> On Mon, Apr 6, 2015 at 2:35 PM, Steve <seide...@gmail.com> wrote:
>>
>>> I've been chasing my tail for a few hours on this and thought it was 
>>> time for some help. For testing, I want to spin up a new rb site, which 
>>> I have a script to do, and then create 2 new users for posting reviews.  I 
>>> can access existing users this way:
>>>
>>> client = RBClient("http://localhost";)
>>> root = client.get_root()
>>> user = root.get_user(username="sallan")
>>> print user
>>>
>>> But I can't figure out how to create a new user in a script.  Can 
>>> someone point me in the right direction?
>>>
>>> Thanks
>>>
>>>
>>> ---Steve
>>>
>>>  -- 
>>> Supercharge your Review Board with Power Pack: 
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons: 
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to reviewboard...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to