コード例 #1
0
# 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)
コード例 #2
0
 def test_init_crowd(self):
     Crowd(
         url=CROWD_URL,
         username=CROWD_APPLICATION,
         password=CROWD_APPLICATION_PASSWORD,
     )
コード例 #3
0
# 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)
コード例 #4
0
# 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)