Skip to content

Improve Cloud and Unit test coverage #2419

Open
adehad wants to merge 3 commits into
mainfrom
enable-more-jira-cloud-tests
Open

Improve Cloud and Unit test coverage #2419
adehad wants to merge 3 commits into
mainfrom
enable-more-jira-cloud-tests

Conversation

@adehad

@adehad adehad commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Based on work from #2376

studioj
studioj previously approved these changes May 1, 2026
@adehad adehad changed the base branch from fix/jira-server-ci to main May 1, 2026 10:53
@adehad adehad dismissed studioj’s stale review May 1, 2026 10:53

The base branch was changed.

@adehad adehad changed the base branch from main to fix/jira-server-ci May 1, 2026 10:53
Base automatically changed from fix/jira-server-ci to main May 1, 2026 11:43
@adehad adehad changed the base branch from main to enable-ci-again May 1, 2026 12:31
@adehad adehad changed the base branch from enable-ci-again to main May 1, 2026 12:32
@adehad adehad force-pushed the enable-more-jira-cloud-tests branch from bb3960b to a366c56 Compare May 1, 2026 20:02
studioj added 3 commits May 1, 2026 21:04
Carry over the cloud-specific body changes from origin/enable-ci-again
that pair with the @allow_on_cloud markers added in the previous commit:

- IssueTests: sleeptime class attr (10s on cloud, 0 on server), used
  before search-after-mutate and around the rank ordering checks.
  Adds an unconditional time.sleep(1) inside the create_issues delete
  loop to let cloud catch up on bulk teardown. Switches the default
  search-fields probe to summary/description, which both server and
  cloud actually return without explicit field selection.
- EpicTests.make_epic: omit the epic-name custom field when running
  against Jira Cloud CI - cloud auto-generates the field and rejects
  the explicit value.
- FilterTests: pause one second after creating a filter on cloud, and
  skip the owner.name assertion on cloud where it returns empty.
- DashboardTests: suppress JIRAError on tearDown so async cloud
  teardown failures don't poison the suite, and add one-second sleeps
  around dashboard gadget creation/update to give cloud time to
  materialise the gadget before the next call.
- IssuePropertyTests: only assert the property list is empty after
  delete on server - cloud doesn't return an empty list synchronously.
The fix/jira-server-ci tox workflow filters with `tox -- -k test_unit`
to run only the unit tests on PRs and on Windows/macOS jobs. Without
the prefix none of the unit tests in test_exceptions.py, test_qsh.py
or test_resilientsession.py match the keyword filter, so those tests
have been silently skipped on every fix-branch CI run.

Rename the affected pytest functions and unittest methods (and the
matching tempfile-name variable in test_exceptions.py) to
`test_unit_*` so the keyword filter actually hits them.

The empty-dict-body assertion change from origin/enable-ci-again is
deliberately not carried over - fix/jira-server-ci's commit
ccbad3d aligned that test with actual production behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants