Skip to content

Workflow multitenancy tests#211

Merged
DanielElisenberg merged 13 commits intomainfrom
workflow_multitenancy_tests
Jan 14, 2026
Merged

Workflow multitenancy tests#211
DanielElisenberg merged 13 commits intomainfrom
workflow_multitenancy_tests

Conversation

@DanielElisenberg
Copy link
Collaborator

Multitenancy tests

In order to improve tests and their readability, we opted to start from scratch to structure the tests in a more resonable way. The PR has already grown gigantic so I am electing to post this for review first, and I will merge smaller branches into this one a smaller piece at a time.

This branch contains:

  • Deleted all tests
  • Moved code from app.py to Manager
  • Added a JobContext and updated all domain code to use this job context
  • Made an integration tests directory and working tests for import and datastore jobs

@DanielElisenberg DanielElisenberg requested a review from a team as a code owner November 20, 2025 11:49
@DanielElisenberg DanielElisenberg linked an issue Nov 20, 2025 that may be closed by this pull request
DanielElisenberg and others added 8 commits November 21, 2025 10:21
* remove_dotenv: move to conftest

* remove_dotenv: remove dependency
* more_integration_tests: new datastore resouce dirs

* more_integration_tests: add to common functions

* more_integration_tests: add rollback tests

* more_integration_tests: fix

* more_integration_tests: fix
* reintroduce_unit_tests: adapter tests

* reintroduce_unit_tests: config tests

* reintroduce_unit_tests: manager tests

* reintroduce_unit_tests: worker tests

* reintroduce_unit_tests: fix resources

* reintroduce_unit_tests: fixes manager test

* reintroduce_unit_tests: fixes

* reintroduce_unit_tests: missing gitkeep

* reintroduce_unit_tests: fix imports

* reintroduce_unit_tests: test fixes
* pin_actions: better security (#210)

* Use variables from env in workflow scripts

* remove double env in workflow-step

* update INTEGRATION_TEST_WORKFLOW and DEPLOY_WORKFLOW in env

* Update urllib3

* Check tmp dir of all datastores

---------

Co-authored-by: linnbjornerud <linnchb@gmail.com>
Co-authored-by: Linn Bjørnerud <125447659+linnbjornerud@users.noreply.github.com>
* extra_assertions_integration_tests: added metadata update assertions

* extra_assertions_integration_tests: more assertions, update resources

* extra_assertions_integration_tests: update dependencies

* extra_assertions_integration_tests: ruff
@sonarqubecloud
Copy link

@DanielElisenberg
Copy link
Collaborator Author

@statisticsnorway/microdata-developers this is now ready for review

Copy link
Contributor

@linnbjornerud linnbjornerud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the walkthroughs we have had with the team of the changes/updates to the app code and the test-improvements, I think this overall looks very good.

I have also looked through the integration tests, and think they look very good.
The tests and resources are well organized and feels clean imo 💯

@DanielElisenberg DanielElisenberg merged commit c868934 into main Jan 14, 2026
5 checks passed
@DanielElisenberg DanielElisenberg deleted the workflow_multitenancy_tests branch January 14, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Housekeeping After Multi-Tenancy Features are Implemented

3 participants