-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webhook from github to jenkins fails with 500 Status (#342)
* Webhook from github to jenkins fails with 500 Status The code was using an empty namespace, fixed that Added test check for namespace More tests for github webhook requests Fixes openshiftio/openshift.io#4600
- Loading branch information
1 parent
96b0b7e
commit 820b743
Showing
6 changed files
with
91 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
package wit | ||
|
||
// DefaultMockOwner is a mock owner value to be used by tests | ||
const DefaultMockOwner = "mockTenantID" | ||
|
||
// Mock implementation of WIT Service | ||
type Mock struct { | ||
OwnedBy string | ||
} | ||
|
||
// SearchCodebase is a mock method | ||
func (w *Mock) SearchCodebase(repo string) (*Info, error) { | ||
return &Info{ | ||
OwnedBy: "mockTenantID", | ||
OwnedBy: w.OwnedBy, | ||
}, nil | ||
} |