@@ -30,6 +30,7 @@ func TestAccResourceOutputElasticsearch(t *testing.T) {
30
30
Config : testAccResourceOutputCreateElasticsearch (policyName ),
31
31
Check : resource .ComposeTestCheckFunc (
32
32
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "name" , fmt .Sprintf ("Elasticsearch Output %s" , policyName )),
33
+ resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "id" , "elasticsearch-output" ),
33
34
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "type" , "elasticsearch" ),
34
35
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "config_yaml" , "\" ssl.verification_mode\" : \" none\" \n " ),
35
36
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "default_integrations" , "false" ),
@@ -42,6 +43,7 @@ func TestAccResourceOutputElasticsearch(t *testing.T) {
42
43
Config : testAccResourceOutputUpdateElasticsearch (policyName ),
43
44
Check : resource .ComposeTestCheckFunc (
44
45
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "name" , fmt .Sprintf ("Updated Elasticsearch Output %s" , policyName )),
46
+ resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "id" , "elasticsearch-output" ),
45
47
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "type" , "elasticsearch" ),
46
48
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "config_yaml" , "\" ssl.verification_mode\" : \" none\" \n " ),
47
49
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "default_integrations" , "false" ),
@@ -72,6 +74,7 @@ func TestAccResourceOutputLogstash(t *testing.T) {
72
74
Config : testAccResourceOutputCreateLogstash (policyName ),
73
75
Check : resource .ComposeTestCheckFunc (
74
76
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "name" , fmt .Sprintf ("Logstash Output %s" , policyName )),
77
+ resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "id" , "logstash-output" ),
75
78
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "type" , "logstash" ),
76
79
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "config_yaml" , "\" ssl.verification_mode\" : \" none\" \n " ),
77
80
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "default_integrations" , "false" ),
@@ -87,6 +90,7 @@ func TestAccResourceOutputLogstash(t *testing.T) {
87
90
Config : testAccResourceOutputLogstashUpdate (policyName ),
88
91
Check : resource .ComposeTestCheckFunc (
89
92
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "name" , fmt .Sprintf ("Updated Logstash Output %s" , policyName )),
93
+ resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "id" , "logstash-output" ),
90
94
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "type" , "logstash" ),
91
95
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "config_yaml" , "\" ssl.verification_mode\" : \" none\" \n " ),
92
96
resource .TestCheckResourceAttr ("elasticstack_fleet_output.test_output" , "default_integrations" , "false" ),
@@ -110,6 +114,7 @@ provider "elasticstack" {
110
114
111
115
resource "elasticstack_fleet_output" "test_output" {
112
116
name = "%s"
117
+ output_id = "elasticsearch-output"
113
118
type = "elasticsearch"
114
119
config_yaml = yamlencode({
115
120
"ssl.verification_mode" : "none"
@@ -132,6 +137,7 @@ provider "elasticstack" {
132
137
133
138
resource "elasticstack_fleet_output" "test_output" {
134
139
name = "%s"
140
+ output_id = "elasticsearch-output"
135
141
type = "elasticsearch"
136
142
config_yaml = yamlencode({
137
143
"ssl.verification_mode" : "none"
@@ -156,6 +162,7 @@ provider "elasticstack" {
156
162
resource "elasticstack_fleet_output" "test_output" {
157
163
name = "%s"
158
164
type = "logstash"
165
+ output_id = "logstash-output"
159
166
config_yaml = yamlencode({
160
167
"ssl.verification_mode" : "none"
161
168
})
@@ -183,6 +190,7 @@ provider "elasticstack" {
183
190
resource "elasticstack_fleet_output" "test_output" {
184
191
name = "%s"
185
192
type = "logstash"
193
+ output_id = "logstash-output"
186
194
config_yaml = yamlencode({
187
195
"ssl.verification_mode" : "none"
188
196
})
0 commit comments