Exemple #1
0
    def validate_config(cls, config, target):
        req = ['bugzilla.username', 'bugzilla.password', 'bugzilla.base_uri']
        for option in req:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        super(BugzillaService, cls).validate_config(config, target)
Exemple #2
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'trac.base_uri'):
            die("[%s] has no 'base_uri'" % target)
        elif '://' in config.get(target, 'trac.base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

        IssueService.validate_config(config, target)
Exemple #3
0
    def validate_config(cls, config, target):
        req = ["bugzilla.username", "bugzilla.password", "bugzilla.base_uri"]
        for option in req:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
Exemple #4
0
    def validate_config(cls, config, target):
        if not config.has_option(target, "bitbucket.username"):
            die("[%s] has no 'username'" % target)
        if not config.has_option(target, "bitbucket.login"):
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(config, target)
Exemple #5
0
    def validate_config(cls, service_config, target):
        if 'username' not in service_config:
            die("[%s] has no 'username'" % target)
        if 'login' not in service_config:
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(service_config, target)
    def validate_config(cls, config, target):
        for k in ('activecollab.url', 'activecollab.key',
                  'activecollab.user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #7
0
    def validate_config(cls, config, target):
        options = ("versionone.base_uri", "versionone.username")
        for option in options:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
Exemple #8
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'projects', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab2.%s'" % (target, k))

        super(ActiveCollab2Service,
              cls).validate_config(service_config, target)
Exemple #9
0
    def validate_config(cls, service_config, target):
        if 'base_uri' not in service_config:
            die("[%s] has no 'base_uri'" % target)
        elif '://' in service_config.get('base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

        IssueService.validate_config(service_config, target)
Exemple #10
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        # TODO -- validate other options

        IssueService.validate_config(config, target)
Exemple #11
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'trac.base_uri'):
            die("[%s] has no 'base_uri'" % target)
        elif '://' in config.get(target, 'trac.base_uri'):
            die("[%s] do not include scheme in 'base_uri'" % target)

        IssueService.validate_config(config, target)
Exemple #12
0
    def validate_config(cls, service_config, target):
        if 'username' not in service_config:
            die("[%s] has no 'username'" % target)
        if 'login' not in service_config:
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(service_config, target)
Exemple #13
0
    def validate_config(cls, config, target):
        req = ['bugzilla.username', 'bugzilla.password', 'bugzilla.base_uri']
        for option in req:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        super(BugzillaService, cls).validate_config(config, target)
Exemple #14
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'bitbucket.username'):
            die("[%s] has no 'username'" % target)
        if not config.has_option(target, 'bitbucket.login'):
            die("[%s] has no 'login'" % target)

        IssueService.validate_config(config, target)
    def validate_config(cls, config, target):
        for k in ('activecollab2.url', 'activecollab2.key',
                  'activecollab2.projects', 'activecollab2.user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(config, target)
Exemple #16
0
    def validate_config(cls, service_config, target):
        if 'tag' not in service_config and 'repo' not in service_config:
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if 'base_url' not in service_config:
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(service_config, target)
Exemple #17
0
    def validate_config(cls, service_config, target):
        if 'tag' not in service_config and 'repo' not in service_config:
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if 'base_url' not in service_config:
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(service_config, target)
Exemple #18
0
 def validate_config(cls, service_config, target):
     """ Validate generic options for a particular target """
     if service_config.has_option(target, 'only_if_assigned'):
         die("[%s] has an 'only_if_assigned' option.  Should be "
             "'%s.only_if_assigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'also_unassigned'):
         die("[%s] has an 'also_unassigned' option.  Should be "
             "'%s.also_unassigned'." % (target, cls.CONFIG_PREFIX))
Exemple #19
0
    def validate_config(cls, config, target):
        for k in (
            'activecollab.url', 'activecollab.key', 'activecollab.user_id'
        ):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #20
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'pagure.tag') and \
           not config.has_option(target, 'pagure.repo'):
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if not config.has_option(target, 'pagure.base_url'):
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(config, target)
    def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        if config.has_option(target, 'only_if_assigned'):
            die("[%s] - github does not currently support issue owners." %
                target)

        IssueService.validate_config(config, target)
Exemple #22
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'pagure.tag') and \
           not config.has_option(target, 'pagure.repo'):
            die("[%s] has no 'pagure.tag' or 'pagure.repo'" % target)

        if not config.has_option(target, 'pagure.base_url'):
            die("[%s] has no 'pagure.base_url'" % target)

        super(PagureService, cls).validate_config(config, target)
Exemple #23
0
    def validate_config(cls, service_config, target):
        req = ['username', 'base_uri']
        for option in req:
            if option not in service_config:
                die("[%s] has no 'bugzilla.%s'" % (target, option))
        if 'password' not in service_config and 'api_key' not in service_config:
            die("[%s] has neither 'bugzilla.password' nor 'bugzilla.api_key'" % (target,))

        super(BugzillaService, cls).validate_config(service_config, target)
Exemple #24
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        if config.has_option(target, 'only_if_assigned'):
            die("[%s] - github does not currently support issue owners." %
                target)

        IssueService.validate_config(config, target)
Exemple #25
0
    def validate_config(cls, service_config, target):
        req = ['username', 'base_uri']
        for option in req:
            if option not in service_config:
                die("[%s] has no 'bugzilla.%s'" % (target, option))
        if 'password' not in service_config and 'api_key' not in service_config:
            die("[%s] has neither 'bugzilla.password' nor 'bugzilla.api_key'" %
                (target, ))

        super(BugzillaService, cls).validate_config(service_config, target)
Exemple #26
0
    def validate_config(cls, service_config, target):
        options = (
            'base_uri',
            'username',
        )
        for option in options:
            if option not in service_config:
                die("[%s] has no 'versionone.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
Exemple #27
0
    def validate_config(cls, config, target):
        options = (
            'versionone.base_uri',
            'versionone.username',
        )
        for option in options:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
Exemple #28
0
    def validate_config(cls, service_config, target):
        for k in (
            'url',
            'key',
            'projects',
            'user_id'
        ):
            if k not in service_config:
                die("[%s] has no 'activecollab2.%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(service_config, target)
Exemple #29
0
    def validate_config(cls, config, target):
        for k in (
            'activecollab2.url',
            'activecollab2.key',
            'activecollab2.projects',
            'activecollab2.user_id'
        ):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        super(ActiveCollab2Service, cls).validate_config(config, target)
Exemple #30
0
 def validate_config(cls, service_config, target):
     """ Validate generic options for a particular target """
     if service_config.has_option(target, 'only_if_assigned'):
         die("[%s] has an 'only_if_assigned' option.  Should be "
             "'%s.only_if_assigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'also_unassigned'):
         die("[%s] has an 'also_unassigned' option.  Should be "
             "'%s.also_unassigned'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'default_priority'):
         die("[%s] has a 'default_priority' option.  Should be "
             "'%s.default_priority'." % (target, cls.CONFIG_PREFIX))
     if service_config.has_option(target, 'add_tags'):
         die("[%s] has an 'add_tags' option.  Should be "
             "'%s.add_tags'." % (target, cls.CONFIG_PREFIX))
Exemple #31
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'gitlab.host'):
            die("[%s] has no 'gitlab.host'" % target)

        if not config.has_option(target, 'gitlab.login'):
            die("[%s] has no 'gitlab.login'" % target)

        if not config.has_option(target, 'gitlab.token'):
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(config, target)
Exemple #32
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'gitlab.host'):
            die("[%s] has no 'gitlab.host'" % target)

        if not config.has_option(target, 'gitlab.login'):
            die("[%s] has no 'gitlab.login'" % target)

        if not config.has_option(target, 'gitlab.token'):
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(config, target)
Exemple #33
0
    def validate_config(cls, service_config, target):
        if 'host' not in service_config:
            die("[%s] has no 'gitlab.host'" % target)

        if 'login' not in service_config:
            die("[%s] has no 'gitlab.login'" % target)

        if 'token' not in service_config:
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(service_config, target)
Exemple #34
0
    def validate_config(cls, service_config, target):
        if 'host' not in service_config:
            die("[%s] has no 'gitlab.host'" % target)

        if 'login' not in service_config:
            die("[%s] has no 'gitlab.login'" % target)

        if 'token' not in service_config:
            die("[%s] has no 'gitlab.token'" % target)

        super(GitlabService, cls).validate_config(service_config, target)
Exemple #35
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'github.login'):
            die("[%s] has no 'github.login'" % target)

        if not config.has_option(target, 'github.password'):
            die("[%s] has no 'github.password'" % target)

        if not config.has_option(target, 'github.username'):
            die("[%s] has no 'github.username'" % target)

        super(GithubService, cls).validate_config(config, target)
Exemple #36
0
    def validate_config(cls, service_config, target):
        if 'login' not in service_config:
            die("[%s] has no 'github.login'" % target)

        if 'token' not in service_config and 'password' not in service_config:
            die("[%s] has no 'github.token' or 'github.password'" % target)

        if 'username' not in service_config:
            die("[%s] has no 'github.username'" % target)

        super(GithubService, cls).validate_config(service_config, target)
Exemple #37
0
    def validate_config(cls, config, target):
        if not config.has_option(target, 'login'):
            die("[%s] has no 'login'" % target)

        if not config.has_option(target, 'passw'):
            die("[%s] has no 'passw'" % target)

        if not config.has_option(target, 'username'):
            die("[%s] has no 'username'" % target)

        IssueService.validate_config(config, target)
Exemple #38
0
    def validate_config(cls, service_config, target):
        if 'login' not in service_config:
            die("[%s] has no 'github.login'" % target)

        if 'token' not in service_config and 'password' not in service_config:
            die("[%s] has no 'github.token' or 'github.password'" % target)

        if 'username' not in service_config:
            die("[%s] has no 'github.username'" % target)

        super(GithubService, cls).validate_config(service_config, target)
Exemple #39
0
    def validate_config(cls, service_config, target):
        if ('udd' in service_config and asbool(service_config.get('udd'))
                and 'email' not in service_config):
            die("[%s] has no 'bts.email' but UDD search was requested" %
                (target, ))

        if 'packages' not in service_config and 'email' not in service_config:
            die("[%s] has neither 'bts.email' or 'bts.packages'" % (target, ))

        if ('udd_ignore_sponsor' in service_config
                and (not asbool(service_config.get('udd')))):
            die("[%s] defines settings for UDD search without enabling"
                " UDD search" % (target, ))

        IssueService.validate_config(service_config, target)
Exemple #40
0
    def validate_config(cls, service_config, target):
        if ('udd' in service_config and
                asbool(service_config.get('udd')) and
                'email' not in service_config):
            die("[%s] has no 'bts.email' but UDD search was requested" %
                (target,))

        if 'packages' not in service_config and 'email' not in service_config:
            die("[%s] has neither 'bts.email' or 'bts.packages'" % (target,))

        if ('udd_ignore_sponsor' in service_config and
            (not asbool(service_config.get('udd')))):
            die("[%s] defines settings for UDD search without enabling"
                " UDD search" % (target,))

        IssueService.validate_config(service_config, target)
Exemple #41
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
Exemple #42
0
    def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'host'):
            if k not in service_config:
                die("[%s] has no 'youtrack.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
Exemple #43
0
    def validate_config(cls, config, target):
        for k in ('login', 'password', 'hostname'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #44
0
    def validate_config(cls, config, target):
        for k in ('url', 'key', 'projects', 'user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #45
0
    def validate_config(cls, config, target):
        for option in ['trac.username', 'trac.password', 'trac.base_uri']:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
Exemple #46
0
    def validate_config(cls, service_config, target):
        for option in ('username', 'password', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'jira.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
Exemple #47
0
    def validate_config(cls, service_config, target):
        for k in ('login', 'password', 'hostname'):
            if k not in service_config:
                die("[%s] has no 'mplan.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
Exemple #48
0
 def check_key(opt):
     """ Check that the given key exist in the configuration  """
     if opt not in service_config:
         die("[{}] has no 'trello.{}'".format(target, opt))
Exemple #49
0
    def validate_config(cls, service_config, target):
        for option in ('auth_token', 'base_uri'):
            if option not in service_config:
                die("[%s] has no 'taiga.%s'" % (target, option))

        IssueService.validate_config(service_config, target)
Exemple #50
0
    def validate_config(cls, config, target):
        for k in ('url', 'key', 'projects', 'user_id'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #51
0
 def check_key(opt):
     """ Check that the given key exist in the configuration  """
     if opt not in service_config:
         die("[{}] has no 'trello.{}'".format(target, opt))
Exemple #52
0
    def validate_config(cls, config, target):
        for option in ['trac.username', 'trac.password', 'trac.base_uri']:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)
Exemple #53
0
    def validate_config(cls, config, target):
        for k in ('login', 'password', 'hostname'):
            if not config.has_option(target, k):
                die("[%s] has no '%s'" % (target, k))

        IssueService.validate_config(config, target)
Exemple #54
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key', 'user_id'):
            if k not in service_config:
                die("[%s] has no 'activecollab.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
Exemple #55
0
    def validate_config(cls, service_config, target):
        for k in ('url', 'key'):
            if k not in service_config:
                die("[%s] has no 'redmine.%s'" % (target, k))

        IssueService.validate_config(service_config, target)
Exemple #56
0
    def validate_config(cls, config, target):
        for option in ["jira.username", "jira.password", "jira.base_uri"]:
            if not config.has_option(target, option):
                die("[%s] has no '%s'" % (target, option))

        IssueService.validate_config(config, target)