Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !3089

Closed
Created Feb 26, 2013 by Administrator@rootOwner
  • Report abuse
Report abuse

Update app/contexts/test_hook_context.rb

  • Overview 3
  • Commits 1
  • Changes 1

Created by: p-schneider

"Test Hook" did not work (http://gitlabserver/someproject/hooks/1/test resulting in HTTP 500: Internal Server Error) related to the changes in 7bab81b1.

Before I fixed it I had this error in log/production.log:

Started GET "/someproject/hooks/1/test" for 192.168.1.100 at 2013-02-26 15:24:26 +0100
Processing by HooksController#test as HTML
  Parameters: {"project_id"=>"someproject", "id"=>"1"}
Completed 500 Internal Server Error in 118ms

NoMethodError (undefined method `post_receive_data' for #<Project:0x00000004e1ec28>):
  app/contexts/test_hook_context.rb:5:in `execute'
  app/controllers/hooks_controller.rb:26:in `test'
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/p-schneider/patch-1