diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-05-28 15:44:40 +0200 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-05-28 15:44:40 +0200 |
| commit | 54b521f19e00bea52304f7379ca59de0c2e20962 (patch) | |
| tree | d28ecbe7dbd59a5d400f52cd7345ed0f5ec66476 /servers/gitlab_glab/tests/test_integration.py | |
| parent | 0b819edceb307ce2f8ba6d58b37a86329b7d6ec0 (diff) | |
feat(gitlab_glab): add CI pipeline functionality with glab ci run
- Add new run_ci_pipeline method to GitLabServer class
- Support all glab ci run options including variables, branch, and web mode
- Auto-detect current branch using git branch --show-current when -b is missing
- Implement web mode that overrides CI_PIPELINE_SOURCE=web
- Add comprehensive test coverage with 9 new test cases
- Update README.md with complete documentation and usage examples
- Maintain 95% test coverage and pass all 53 tests
- Follow project standards with proper error handling and type hints
Closes: Add CI job runner functionality as requested
Diffstat (limited to 'servers/gitlab_glab/tests/test_integration.py')
| -rw-r--r-- | servers/gitlab_glab/tests/test_integration.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/gitlab_glab/tests/test_integration.py b/servers/gitlab_glab/tests/test_integration.py index b7d1005..1e55b46 100644 --- a/servers/gitlab_glab/tests/test_integration.py +++ b/servers/gitlab_glab/tests/test_integration.py @@ -29,7 +29,8 @@ class TestIntegration: # - search_issues # - create_issue # - get_mr_diff - assert mock_server.tool.call_count == 5 + # - run_ci_pipeline + assert mock_server.tool.call_count == 6 # Verify that the tool decorator was called with functions that have # working_directory parameter. We can't directly access the decorated functions |
