Back to godoc.org

Package fixtures

v0.8.4
Latest Go to latest

The latest major version is .

Published: Jan 18, 2018 | License: Apache-2.0 | Module: github.com/UKHomeOffice/drone

Index

Constants

const HookDeploy = "" /* 1006 byte string literal not displayed */

HookPush is a sample deployment hook. https://developer.github.com/v3/activity/events/types/#deploymentevent

const HookPullRequest = "" /* 1275 byte string literal not displayed */

HookPullRequest is a sample hook pull request https://developer.github.com/v3/activity/events/types/#pullrequestevent

const HookPullRequestInvalidAction = `
{
  "action": "reopened",
  "number": 1
}
`

HookPullRequestInvalidAction is a sample hook pull request that has an action not equal to synchrize or opened, and is expected to be ignored.

const HookPullRequestInvalidState = `
{
  "action": "synchronize",
  "pull_request": {
    "number": 1,
    "state": "closed"
  }
}
`

HookPullRequestInvalidState is a sample hook pull request that has a state not equal to open, and is expected to be ignored.

const HookPush = "" /* 1226 byte string literal not displayed */

HookPush is a sample push hook. https://developer.github.com/v3/activity/events/types/#pushevent

const HookPushDeleted = `
{
  "deleted": true
}
`

HookPush is a sample push hook that is marked as deleted, and is expected to be ignored.

func Handler

func Handler() http.Handler

Handler returns an http.Handler that is capable of handling a variety of mock Bitbucket requests and returning mock responses.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier