mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
chore: bump version to 5.0.13 and fix test mocks
This commit is contained in:
parent
07b4765b8d
commit
486ee29bc8
2 changed files with 17 additions and 1 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
5.0.12
|
||||
5.0.13
|
||||
|
|
|
|||
|
|
@ -57,6 +57,14 @@ func (l *testAuditLogger) VerifySignature(event audit.Event) bool {
|
|||
return l.verifyResult
|
||||
}
|
||||
|
||||
func (l *testAuditLogger) GetWebhookURLs() []string {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
func (l *testAuditLogger) UpdateWebhookURLs(urls []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type testAuditLoggerNoVerify struct {
|
||||
events []audit.Event
|
||||
}
|
||||
|
|
@ -78,6 +86,14 @@ func (l *testAuditLoggerNoVerify) Close() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (l *testAuditLoggerNoVerify) GetWebhookURLs() []string {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
func (l *testAuditLoggerNoVerify) UpdateWebhookURLs(urls []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func setAuditLogger(t *testing.T, logger audit.Logger) {
|
||||
prev := audit.GetLogger()
|
||||
audit.SetLogger(logger)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue