blob: 5e8e1f3826d2ad7bea57a801656791151c394d06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
from obsapi.personapi import ObsPersonApi
prj = 'home:sbahling:obsapi:test'
pkg = 'suse-hello-1.0'
repo = 'SLE_12_SP3'
arch = 'x86_64'
personapi = ObsPersonApi(apiurl='https://api.opensuse.org')
def test_person_get():
xml = personapi.get()
assert '<directory' in xml
assert '<entry name="Admin"/>' in xml
def test_person_get_user():
user = 'Admin'
xml = personapi.get(user)
assert '<person>' in xml
assert '<email' in xml
assert '<realname' in xml
assert '<state' in xml
assert '<globalrole' in xml
assert '<ignore_auth_service' in xml
|