Skip to content

Instantly share code, notes, and snippets.

@sochotnicky
Created February 20, 2019 13:41
Show Gist options
  • Select an option

  • Save sochotnicky/d4368d93119fc8734c9fcbff14101910 to your computer and use it in GitHub Desktop.

Select an option

Save sochotnicky/d4368d93119fc8734c9fcbff14101910 to your computer and use it in GitHub Desktop.
jira_test_principal.py
from ticketutil.jira import JiraTicket
# To test run:
# kdestroy
# export KRB5_CLIENT_KTNAME=<path to keytab>
# python <this script>
JIRA_URL = "https://projects.engineering.redhat.com"
t = JiraTicket(JIRA_URL,
"DEVOPSA",
auth='kerberos',
ticket_id="DEVOPSA-1")
JIRA_URL = "https://projects.devel.engineering.redhat.com"
t = JiraTicket(JIRA_URL,
"DEVOPSA",
auth='kerberos',
ticket_id="DEVOPSA-1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment