Skip to content

Commit

Permalink
AVX-55377: fix handling of insufficient JIRA configuration (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <snoonan@aviatrix.com>
  • Loading branch information
tycho authored Jul 30, 2024
1 parent 67050d8 commit 0e13ab5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytest_testrail/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def set_github_env_var(self, var_name, var_value):
else:
logging.error("GITHUB_ENV environment variable is not set")

def get_client(self) -> jira.JIRA:
def get_jira_client(self) -> jira.JIRA:
user = self.jira_username
token = self.jira_token
jira_client = None
Expand Down Expand Up @@ -386,12 +386,12 @@ def handle_ci_notifications(

def jira(self, outcome: str) -> str:
try:
client = self.get_client()
client = self.get_jira_client()
username = self.jira_owner
testname = self.test_dirs
regex = re.compile(r"[^a-zA-Z0-9_]+") # Expecting only letters and numbers
logger.info("username" + username)
logger.info("testname" + testname)
assert client is not None
assert username is not None
self.issue_id = self.handle_ci_notifications(
client, username, testname, outcome, self.github_commit_sha
)
Expand Down

0 comments on commit 0e13ab5

Please sign in to comment.