This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from java.util import Date | |
from sets import Set | |
from com.xebialabs.xlrelease.domain import Release | |
from com.xebialabs.xlrelease.domain.status import ReleaseStatus | |
from com.xebialabs.xlrelease.api.v1.views import TeamView | |
def create_blank_template(template_name): | |
template = Release() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib, urllib2, base64 | |
def get_config_id(title, username="admin", password="admin"): | |
params = {"configurationType": "configuration.HttpConnection", "title":title} | |
request = urllib2.Request("http://localhost:5516/api/v1/config/byTypeAndTitle?%s" % urllib.urlencode(params)) | |
base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '') | |
request.add_header("Authorization", "Basic %s" % base64string) | |
result = urllib2.urlopen(request) | |
return json.load(result)[0]["id"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pok |
NewerOlder