diff options
| author | kinbald <g.desrumaux1@gmail.com> | 2022-03-07 23:46:14 +0100 |
|---|---|---|
| committer | kinbald <g.desrumaux1@gmail.com> | 2022-03-07 23:46:14 +0100 |
| commit | a97e0cf81b5394b3a2b73d927b4efe675bc85208 (patch) | |
| tree | e4a292ba1d7c2c474863049212c029468897274c /gitlab | |
| parent | a14baacd4877e5c5a98849f1a9dfdb58585f0707 (diff) | |
| download | gitlab-a97e0cf81b5394b3a2b73d927b4efe675bc85208.tar.gz | |
feat(object): add pipeline test report summary support
Diffstat (limited to 'gitlab')
| -rw-r--r-- | gitlab/v4/objects/pipelines.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gitlab/v4/objects/pipelines.py b/gitlab/v4/objects/pipelines.py index ec4e8e4..0c2f22e 100644 --- a/gitlab/v4/objects/pipelines.py +++ b/gitlab/v4/objects/pipelines.py @@ -35,6 +35,8 @@ __all__ = [ "ProjectPipelineScheduleManager", "ProjectPipelineTestReport", "ProjectPipelineTestReportManager", + "ProjectPipelineTestReportSummary", + "ProjectPipelineTestReportSummaryManager", ] @@ -52,6 +54,7 @@ class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject): bridges: "ProjectPipelineBridgeManager" jobs: "ProjectPipelineJobManager" test_report: "ProjectPipelineTestReportManager" + test_report_summary: "ProjectPipelineTestReportSummaryManager" variables: "ProjectPipelineVariableManager" @cli.register_custom_action("ProjectPipeline") @@ -251,3 +254,20 @@ class ProjectPipelineTestReportManager(GetWithoutIdMixin, RESTManager): self, id: Optional[Union[int, str]] = None, **kwargs: Any ) -> Optional[ProjectPipelineTestReport]: return cast(Optional[ProjectPipelineTestReport], super().get(id=id, **kwargs)) + + +class ProjectPipelineTestReportSummary(RESTObject): + _id_attr = None + + +class ProjectPipelineTestReportSummaryManager(GetWithoutIdMixin, RESTManager): + _path = "/projects/{project_id}/pipelines/{pipeline_id}/test_report_summary" + _obj_cls = ProjectPipelineTestReportSummary + _from_parent_attrs = {"project_id": "project_id", "pipeline_id": "id"} + + def get( + self, id: Optional[Union[int, str]] = None, **kwargs: Any + ) -> Optional[ProjectPipelineTestReportSummary]: + return cast( + Optional[ProjectPipelineTestReportSummary], super().get(id=id, **kwargs) + ) |
