Skip to content
Snippets Groups Projects

[E2E] Add new test for Custom Server Hooks on Create Tag API Endpoint

Merged John McDonnell requested to merge jmd-add-git-server-hook-test-tagging into master
All threads resolved!

Description of the test

This is an API level test to ensure that the ability to define Custom Server Hook errors messages https://docs.gitlab.com/ee/administration/server_hooks.html#custom-error-messages is being respected.

This is part of an effort to avoid future regression in this space as part of #362666 (closed)

NB - The use of the tag API endpoint in this scenario is somewhat arbitrary as many events can trigger a prereceive hook but it's not feasible for now to test this scenario for every single action that may trigger such an event.

New Test Case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/369053

Checklist

  • Confirm the test has a testcase: tag linking to an existing test case in the test case project.
  • Note if the test is intended to run in specific scenarios. If a scenario is new, add a link to the MR that adds the new scenario.
  • Follow the end-to-end tests style guide and best practices.
  • Use the appropriate RSpec metadata tag(s).
  • Most resources will be cleaned up via the general cleanup task. Check that is successful, or ensure resources are cleaned up in the test:
    • New resources have api_get_path and api_delete_path implemented if possible.
    • If any resource cannot be deleted in the general delete task, make sure it is ignored.
    • If any resource cannot be deleted in the general delete task, remove it in the test (e.g., in an after block).
  • Ensure that no transient bugs are hidden accidentally due to the usage of waits and reloads.
  • Verify the tags to ensure it runs on the desired test environments.
  • If this MR has a dependency on another MR, such as a GitLab QA MR, specify the order in which the MRs should be merged.
  • (If applicable) Create a follow-up issue to document the special setup necessary to run the test: ISSUE_LINK
  • If the test requires an admin's personal access token, ensure that the test passes on your local environment with and without the GITLAB_QA_ADMIN_ACCESS_TOKEN provided.
Edited by John McDonnell

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • John McDonnell changed milestone to %15.3

    changed milestone to %15.3

  • Suggested Reviewers (beta)

    The individuals below may be good candidates to participate in the review based on various factors.

    You can use slash commands in comments to quickly assign /assign_reviewer @user1.

    Suggested Reviewers
    @rspeicher, @aqualls, @a_mcdonald, @dchevalier2, @mlapierre

    If you do not believe these suggestions are useful, please apply the label Bad Suggested Reviewer. You can also provide feedback for this feature on this issue: https://gitlab.com/gitlab-org/gitlab/-/issues/357923.

    Automatically generated by Suggested Reviewers Bot - an experimental ML-based recommendation engine created by ~"group::applied ml".

  • John McDonnell added 261 commits

    added 261 commits

    Compare with previous version

  • John McDonnell changed title from Add test for Custom Server Hooks on Create Tag API Endpoint to [E2E ] Add new test for Custom Server Hooks on Create Tag API Endpoint

    changed title from Add test for Custom Server Hooks on Create Tag API Endpoint to [E2E ] Add new test for Custom Server Hooks on Create Tag API Endpoint

  • 1 Message
    :book: CHANGELOG missing:

    If you want to create a changelog entry for GitLab FOSS, add the Changelog trailer to the commit message you want to add to the changelog.

    If you want to create a changelog entry for GitLab EE, also add the EE: true trailer to your commit message.

    If this merge request doesn't need a CHANGELOG entry, feel free to ignore this message.

    Reviewer roulette

    Changes that require review have been detected!

    Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

    Category Reviewer Maintainer
    QA Carlo Catimbang (@carlocatimbang) (UTC+8, 4 hours behind @john.mcdonnell) Ramya Authappan (@at.ramya) (UTC+5.5, 6.5 hours behind @john.mcdonnell)

    To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

    To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

    Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

  • John McDonnell changed title from [E2E ] Add new test for Custom Server Hooks on Create Tag API Endpoint to [E2E] Add new test for Custom Server Hooks on Create Tag API Endpoint

    changed title from [E2E ] Add new test for Custom Server Hooks on Create Tag API Endpoint to [E2E] Add new test for Custom Server Hooks on Create Tag API Endpoint

  • mentioned in issue #362666 (closed)

  • Allure report

    allure-report-publisher generated test report!

    review-qa-blocking: :exclamation: test report for 3316fc0f

    expand test summary
    +-----------------------------------------------------------------------------------------+
    |                                     suites summary                                      |
    +------------------------------------+--------+--------+---------+-------+-------+--------+
    |                                    | passed | failed | skipped | flaky | total | result |
    +------------------------------------+--------+--------+---------+-------+-------+--------+
    | Create                             | 24     | 0      | 1       | 23    | 25    | ❗     |
    | Manage                             | 38     | 0      | 2       | 40    | 40    | ❗     |
    | Protect                            | 2      | 0      | 0       | 2     | 2     | ❗     |
    | Plan                               | 47     | 0      | 1       | 47    | 48    | ❗     |
    | Verify                             | 14     | 0      | 1       | 14    | 15    | ❗     |
    | Feature flag handler sanity checks | 9      | 0      | 0       | 9     | 9     | ❗     |
    | Version sanity check               | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Secure                             | 2      | 0      | 0       | 2     | 2     | ❗     |
    | Configure                          | 0      | 0      | 1       | 0     | 1     | ➖     |
    +------------------------------------+--------+--------+---------+-------+-------+--------+
    | Total                              | 136    | 0      | 7       | 137   | 143   | ❗     |
    +------------------------------------+--------+--------+---------+-------+-------+--------+

    review-qa-all: :x: test report for 3316fc0f

    expand test summary
    +---------------------------------------------------------------------------+
    |                              suites summary                               |
    +----------------------+--------+--------+---------+-------+-------+--------+
    |                      | passed | failed | skipped | flaky | total | result |
    +----------------------+--------+--------+---------+-------+-------+--------+
    | Manage               | 63     | 2      | 4       | 34    | 69    | ❌     |
    | Create               | 117    | 0      | 12      | 18    | 129   | ❗     |
    | Release              | 5      | 0      | 0       | 0     | 5     | ✅     |
    | Secure               | 19     | 0      | 2       | 12    | 21    | ❗     |
    | Fulfillment          | 0      | 0      | 13      | 0     | 13    | ➖     |
    | Verify               | 28     | 0      | 2       | 7     | 30    | ❗     |
    | Plan                 | 6      | 0      | 0       | 1     | 6     | ❗     |
    | Package              | 0      | 0      | 3       | 0     | 3     | ➖     |
    | Product Intelligence | 1      | 0      | 1       | 0     | 2     | ✅     |
    | Configure            | 0      | 0      | 2       | 0     | 2     | ➖     |
    +----------------------+--------+--------+---------+-------+-------+--------+
    | Total                | 239    | 2      | 39      | 72    | 280   | ❌     |
    +----------------------+--------+--------+---------+-------+-------+--------+

    package-and-qa: :x: test report for 3316fc0f

    expand test summary
    +---------------------------------------------------------------------------+
    |                              suites summary                               |
    +----------------------+--------+--------+---------+-------+-------+--------+
    |                      | passed | failed | skipped | flaky | total | result |
    +----------------------+--------+--------+---------+-------+-------+--------+
    | Create               | 927    | 1      | 37      | 2     | 965   | ❌     |
    | Plan                 | 332    | 0      | 0       | 0     | 332   | ✅     |
    | Verify               | 254    | 0      | 18      | 0     | 272   | ✅     |
    | Manage               | 676    | 0      | 18      | 80    | 694   | ❗     |
    | Version sanity check | 0      | 0      | 6       | 0     | 6     | ➖     |
    | Secure               | 126    | 0      | 12      | 24    | 138   | ❗     |
    | Fulfillment          | 14     | 0      | 67      | 2     | 81    | ❗     |
    | Configure            | 1      | 0      | 18      | 0     | 19    | ✅     |
    | Package              | 161    | 0      | 21      | 20    | 182   | ❗     |
    | Product Intelligence | 13     | 0      | 0       | 0     | 13    | ✅     |
    | Release              | 30     | 0      | 0       | 0     | 30    | ✅     |
    | Protect              | 12     | 0      | 0       | 0     | 12    | ✅     |
    | Enablement:Search    | 10     | 0      | 1       | 0     | 11    | ✅     |
    +----------------------+--------+--------+---------+-------+-------+--------+
    | Total                | 2556   | 1      | 198     | 128   | 2755  | ❌     |
    +----------------------+--------+--------+---------+-------+-------+--------+
  • requested review from @carlocatimbang

  • Carlo Catimbang
  • Thanks for clarifying @john.mcdonnell. LGTM :thumbsup_tone2:

  • Carlo Catimbang approved this merge request

    approved this merge request

  • John McDonnell requested review from @chloeliu

    requested review from @chloeliu

  • Chloe Liu
  • Chloe Liu removed review request for @chloeliu

    removed review request for @chloeliu

  • John McDonnell added 1 commit

    added 1 commit

    • 339acfda - Update change_path method name to be more concise

    Compare with previous version

  • John McDonnell added 2532 commits

    added 2532 commits

    • 339acfda...3a6202d5 - 2529 commits from branch master
    • b1220753 - Add test for Custom Server Hooks on Create Tag API Endpoint
    • 284deeed - Update change_path method name to be more concise
    • e4e41c95 - Update formatting for new rubocop rules

    Compare with previous version

  • John McDonnell requested review from @chloeliu

    requested review from @chloeliu

  • Chloe Liu approved this merge request

    approved this merge request

  • Chloe Liu resolved all threads

    resolved all threads

  • merged

  • @chloeliu, did you forget to run a pipeline before you merged this work? Based on our code review process, if the latest pipeline finished more than 2 hours ago, you should:

    1. Ensure the merge request is not in Draft status.
    2. Start a pipeline (especially important for Community contribution merge requests).
    3. Set the merge request to merge when pipeline succeeds.

    This is a guideline, not a rule. Please consider replying to this comment for transparency.

    This message was generated automatically. You're welcome to improve it.

  • Chloe Liu mentioned in commit 2a2a3b9e

    mentioned in commit 2a2a3b9e

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading