SHA256
1
0

18 Commits

Author SHA256 Message Date
Frank Schreiner
f5a32792e0 t: implemented test_003_refuse_manual_merge
Fixes: git-workflow/tests #19
2026-03-05 09:20:25 +01:00
Andrii Nikitin
96a908d0be t: Simplify create_gitea_pr using new_branch param
Refactor create_gitea_pr() in common_test_utils.py to leverage the
'new_branch' parameter in the Gitea 'diffpatch' API call. This allows
for automatic creation of the target branch while applying the diff,
eliminating the need for explicit branch creation using the branches
endpoint. This also fixed strange behavior when diffpatch damaged
history of precreated branch
2026-03-03 13:03:32 +01:00
Andrii Nikitin
6aaff89179 t: test MergeMode of workflow-pr
- Add TC-MERGE-008 to 013 for testing MergeMode of workflow-pr
- Synchronize integration/test-plan.md with the actual test implementations
2026-03-03 13:03:00 +01:00
Andrii Nikitin
7832ef90c0 t: rename Gitea objects to avoid accidental collision with real repos
Also address potential race condition between requested reviews and sending approvals in TC-MERGE-002
2026-02-27 13:22:26 +01:00
Andrii Nikitin
4691747038 t: add manual merge test and improve robustness
- Add TC-MERGE-002: new end-to-end test for ManualMergeOnly functionality.
- Implement global object tracking in conftest.py to prevent redundant setup.
- Update test-plan.md to reflect current test implementation and skip statuses.
- Improve review tests robustness by using unique filenames and better assertions.
- Configure SLFO staging-main and manual-merge branches for monitored tests.
- Move flaky NoProjectGitPR tests from xfail to skip.
2026-02-27 02:30:47 +01:00
Andrii Nikitin
cb9131a5dd t: add init process to all services
Enable init: true for all services in podman-compose.yml to ensure
proper signal handling and zombie process reaping within containers.
2026-02-26 12:17:29 +01:00
Andrii Nikitin
bf8d1196ba ci: workaround event-publisher unwillingness to retry 2026-02-24 18:56:03 +01:00
Andrii Nikitin
0456fc114e t: allow tracking of integration config files
Update .gitignore to exempt .conf files within the integration/ directory
from the global *.conf ignore rule. This ensures that essential test
configurations, like rabbitmq.conf, are preserved and shared across
environments, preventing issues where empty directories were
automatically created by Podman-compose.
2026-02-24 17:17:46 +01:00
Andrii Nikitin
ff68cc8200 ci: Add integration test config 2026-02-24 17:17:42 +01:00
Andrii Nikitin
a814c4ce24 t: Add status of tests to test-plan.md 2026-02-23 11:32:44 +01:00
Andrii Nikitin
aadc7f9d41 t: Add integration test for project PR labels
Itroduces a new integration test to verify the automatic application of
labels to project git pull requests based on the workflow configuration.

Changes:
- Add `create_label` method to Gitea API client for test setup.
- Configure a new `label-test` branch with `StagingAuto` and `ReviewPending`
  label mappings in `conftest.py`.
- Update `setup_users_from_config` to correctly handle `*` reviewer prefix.
- Ensure required labels are created during global test setup.
- Add `staging_bot_client` fixture to simulate bot approvals.
- Enable monitoring for the `label-test` branch in `workflow-pr` service.
- Implement `tests/workflow_pr_label_test.py` to verify label logic.
- Mark `review/Pending` check as xfail due to current implementation issues.
2026-02-23 09:38:14 +01:00
Andrii Nikitin
0598448fdb t: modularize test branch configurations in conftest.py
- Split branch configurations into COMMON and CUSTOM structures to reduce redundancy.
- Implemented dynamic field injection for 'Branch' and 'GitProjectName' using branch keys and placeholders.
- Enhanced the configuration merging logic to automatically synthesize final settings for each test environment.
2026-02-22 21:34:58 +01:00
Andrii Nikitin
2c174b687a t: improve debugging for zypper installation failures in Dockerfiles 2026-02-22 20:48:00 +01:00
Andrii Nikitin
4826d0869a t: consolidate test environment setup and optimize service restarts
- Moved Gitea repository, file, and user creation to a session-scoped global initialization in conftest.py.
 - Implemented content-aware configuration updates to avoid unnecessary workflow-pr service restarts.
 - Add review test_001 to verify reviews are added for both maintainers and config-defined reviewers.
2026-02-22 20:45:55 +01:00
Andrii Nikitin
3e1b3c5c84 Add some merge and review tests 2026-02-20 15:16:33 +01:00
Andrii Nikitin
fc4899b75a t: more workflow-pr sync integration tests 2026-02-20 15:16:33 +01:00
Andrii Nikitin
d1bcc222ce Move fixtures from container-files to pytest tearup 2026-02-17 18:23:57 +01:00
Andrii Nikitin
b632952f62 Add integration tests 2026-02-16 21:40:58 +01:00