mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Add notifications by webhook.
Add a new config entry moving to version 13.
```
"webhook": {
"1": {
"enable": true,
"address": "http://requestb.in/1i9al7m1"
}
}
```
This commit is contained in:
@@ -228,6 +228,12 @@ func TestQueueARN(t *testing.T) {
|
||||
queueARN string
|
||||
errCode APIErrorCode
|
||||
}{
|
||||
|
||||
// Valid webhook queue arn.
|
||||
{
|
||||
queueARN: "arn:minio:sqs:us-east-1:1:webhook",
|
||||
errCode: ErrNone,
|
||||
},
|
||||
// Valid redis queue arn.
|
||||
{
|
||||
queueARN: "arn:minio:sqs:us-east-1:1:redis",
|
||||
@@ -306,6 +312,11 @@ func TestUnmarshalSQSARN(t *testing.T) {
|
||||
queueARN string
|
||||
Type string
|
||||
}{
|
||||
// Valid webhook queue arn.
|
||||
{
|
||||
queueARN: "arn:minio:sqs:us-east-1:1:webhook",
|
||||
Type: "webhook",
|
||||
},
|
||||
// Valid redis queue arn.
|
||||
{
|
||||
queueARN: "arn:minio:sqs:us-east-1:1:redis",
|
||||
|
||||
Reference in New Issue
Block a user