Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #249 from suzuki-shunsuke/test/fix-testdata
Browse files Browse the repository at this point in the history
fix testdata and example and install_local_terraform
  • Loading branch information
suzuki-shunsuke committed Mar 12, 2020
2 parents 51f9f6a + 096f5c0 commit 80bdb3f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/v0.12/event_definition.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ resource "graylog_event_definition" "test" {
{
"type": "aggregation-v1",
"query": "test",
"query_parameters": [],
"streams": [
"${graylog_stream.test.id}"
],
Expand All @@ -33,6 +32,8 @@ EOF
}
EOF

key_spec = ["test"]

notification_settings {
grace_period_ms = 0
backlog_size = 0
Expand All @@ -54,7 +55,6 @@ resource "graylog_event_definition" "test2" {
{
"type": "aggregation-v1",
"query": "test",
"query_parameters": [],
"streams": [
"${graylog_stream.test.id}"
],
Expand Down
2 changes: 2 additions & 0 deletions graylog/testdata/event_definition/create/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package create

import (
"github.com/suzuki-shunsuke/go-graylog/v11/graylog/graylog"
"github.com/suzuki-shunsuke/go-set/v6"
)

func Request() *graylog.EventDefinition {
Expand All @@ -23,6 +24,7 @@ func Request() *graylog.EventDefinition {
},
},
},
KeySpec: set.NewStrSet("test"),
NotificationSettings: graylog.EventDefinitionNotificationSettings{
GracePeriodMS: 0,
BacklogSize: 0,
Expand Down
2 changes: 1 addition & 1 deletion graylog/testdata/event_definition/create/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
]
}
},
"key_spec": [],
"key_spec": ["test"],
"notification_settings": {
"grace_period_ms": 0,
"backlog_size": 0
Expand Down
2 changes: 2 additions & 0 deletions graylog/testdata/event_definition/create/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package create

import (
"github.com/suzuki-shunsuke/go-graylog/v11/graylog/graylog"
"github.com/suzuki-shunsuke/go-set/v6"
)

func Response() *graylog.EventDefinition {
Expand All @@ -23,6 +24,7 @@ func Response() *graylog.EventDefinition {
},
},
},
KeySpec: set.NewStrSet("test"),
NotificationSettings: graylog.EventDefinitionNotificationSettings{
GracePeriodMS: 0,
BacklogSize: 0,
Expand Down
2 changes: 1 addition & 1 deletion graylog/testdata/event_definition/create/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
]
}
},
"key_spec": [],
"key_spec": ["test"],
"notification_settings": {
"grace_period_ms": 0,
"backlog_size": 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_local_terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ ee() {
cd "$(dirname "$0")/.."

ee mkdir -p ~/.terraform.d/plugins
ee go build -o ~/.terraform.d/plugins/terraform-provider-graylog ./terraform
ee go build -o ~/.terraform.d/plugins/terraform-provider-graylog ./cmd/terraform-provider-graylog

0 comments on commit 80bdb3f

Please sign in to comment.