# coding=utf-8 import logging import os from atlassian import Crowd log = logging.getLogger() log.setLevel(logging.DEBUG) CROWD_URL = os.environ.get("CROWD_URL", "http://localhost:8085/crowd") CROWD_APPLICATION = os.environ.get("CROWD_APPLICATION", "bamboo") CROWD_APPLICATION_PASSWORD = os.environ.get("CROWD_APPLICATION_PASSWORD", "admin") crowd = Crowd(url=CROWD_URL, username=CROWD_APPLICATION, password=CROWD_APPLICATION_PASSWORD) group_members = crowd.group_nested_members("bamboo-user") print(group_members)
def test_init_crowd(self): Crowd( url=CROWD_URL, username=CROWD_APPLICATION, password=CROWD_APPLICATION_PASSWORD, )
# coding=utf-8 import logging import os from atlassian import Crowd log = logging.getLogger() log.setLevel(logging.DEBUG) CROWD_URL = os.environ.get("CROWD_URL", "http://localhost:8085/crowd") CROWD_APPLICATION = os.environ.get("CROWD_APPLICATION", "bamboo") CROWD_APPLICATION_PASSWORD = os.environ.get("CROWD_APPLICATION_PASSWORD", "admin") crowd = Crowd(url=CROWD_URL, username=CROWD_APPLICATION, password=CROWD_APPLICATION_PASSWORD) user_details = crowd.user("xdfjklm") print(user_details)
# coding: utf8 from atlassian import Crowd import os import logging log = logging.getLogger() log.setLevel(logging.DEBUG) CROWD_URL = os.environ.get('CROWD_URL', 'http://localhost:8085/crowd') CROWD_APPLICATION = os.environ.get('CROWD_APPLICATION', 'bamboo') CROWD_APPLICATION_PASSWORD = os.environ.get('CROWD_APPLICATION_PASSWORD', 'admin') crowd = Crowd( url=CROWD_URL, username=CROWD_APPLICATION, password=CROWD_APPLICATION_PASSWORD) group_members = crowd.group_nested_members('bamboo-user') print(group_members)