Skip to content

Commit f471c14

Browse files
authored
Revert "fix(jira): update authentication to use Basic Auth instead of Bearer token" (#1241)
* revert: undo jira auth change to Basic Auth This reverts commit a8f5a88. Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com> * fix: updates needed in jira call Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com> --------- Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com>
1 parent ad1d2ce commit f471c14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/GETTING_STARTED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ To run tests with admin client only, pass `--tc=use_unprivileged_client:False` t
138138
### jira integration
139139

140140
To skip running tests which have open bugs, [pytest_jira](https://github.com/rhevm-qe-automation/pytest_jira) plugin is used.
141-
To run tests with jira integration, you need to set `PYTEST_JIRA_URL`, `PYTEST_JIRA_USERNAME` and `PYTEST_JIRA_PASSWORD` environment variables.
141+
To run tests with jira integration, you need to set `PYTEST_JIRA_URL` and `PYTEST_JIRA_TOKEN` environment variables.
142142
To make a test with jira marker, add: `@pytest.mark.jira(jira_id="RHOAIENG-0000", run=False)` to the test.
143143

144144
### Running containerized tests

utilities/jira.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def get_jira_connection() -> JIRA:
2323
2424
"""
2525
return JIRA(
26-
basic_auth=(os.getenv("PYTEST_JIRA_USERNAME"), os.getenv("PYTEST_JIRA_PASSWORD")),
27-
options={"server": os.getenv("PYTEST_JIRA_URL")},
26+
server=os.getenv("PYTEST_JIRA_URL"),
27+
basic_auth=(os.getenv("PYTEST_JIRA_USERNAME"), os.getenv("PYTEST_JIRA_TOKEN")),
2828
)
2929

3030

0 commit comments

Comments
 (0)