Skip to content

Commit db56ece

Browse files
committed
Releasing 2.0b1. Live tests work. On to the docs.
1 parent ccf87a0 commit db56ece

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from setuptools import setup, find_packages
2222

2323
setup(name='umapi-client',
24-
version='2.0a4',
24+
version='2.0b1',
2525
description='Client for the User Management API (UMAPI) from Adobe - see https://adobe.ly/2h1pHgV',
2626
long_description=('The User Management API (aka the UMAPI) is an Adobe-hosted network service '
2727
'which provides Adobe Enterprise customers the ability to manage their users. This '

tests/test_live.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def config():
5050
def test_status(config):
5151
conn, _ = config
5252
_, status = conn.status(remote=True)
53+
logging.info("Server status is %s", status)
5354
assert status["state"] == "LIVE"
5455

5556

@@ -60,11 +61,23 @@ def test_list_users(config):
6061
email = user.get("email", "")
6162
if re.match(r".*@adobe.com$", str(email).lower()):
6263
assert str(user["type"]) == "adobeID"
64+
logging.info("Found %d users.", len(users.all_results()))
65+
66+
def test_list_groups(config):
67+
conn, params = config
68+
groups = umapi_client.GroupsQuery(connection=conn)
69+
for group in groups:
70+
name = group.get("groupName")
71+
logging.debug("Group: %s", group)
72+
if group.get("memberCount", 0) > params["big_group_size"]:
73+
assert name in params["big_groups"]
74+
logging.info("Found %d groups.", len(groups.all_results()))
6375

6476

6577
def test_get_user(config):
6678
conn, params = config
6779
user_query = umapi_client.UserQuery(conn, params["test_user"]["email"])
6880
user = user_query.result()
81+
logging.info("User: %s", user)
6982
for k, v in six.iteritems(params["test_user"]):
7083
assert user[k].lower() == v.lower()

0 commit comments

Comments
 (0)