File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ func Provider() *schema.Provider {
14
14
"url" : {
15
15
Type : schema .TypeString ,
16
16
Required : true ,
17
- DefaultFunc : schema .EnvDefaultFunc ("ELKALIASES_URL " , nil ),
17
+ DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_ENDPOINT " , nil ),
18
18
Description : "The URL for the Elasticsearch instance." ,
19
19
},
20
20
"token" : {
21
21
Type : schema .TypeString ,
22
22
Required : true ,
23
23
Sensitive : true ,
24
- DefaultFunc : schema .EnvDefaultFunc ("ELKALIASES_TOKEN " , nil ),
24
+ DefaultFunc : schema .EnvDefaultFunc ("ELASTICSEARCH_API_KEY " , nil ),
25
25
Description : "The token for API authentication." ,
26
26
},
27
27
},
Original file line number Diff line number Diff line change @@ -251,10 +251,10 @@ func TestAccElkaliasesIndex_invalid(t *testing.T) {
251
251
}
252
252
253
253
func testAccPreCheck (t * testing.T ) {
254
- if v := os .Getenv ("ELKALIASES_URL " ); v == "" {
254
+ if v := os .Getenv ("ELASTICSEARCH_ENDPOINT " ); v == "" {
255
255
t .Fatal ("ELKALIASES_URL must be set for acceptance tests" )
256
256
}
257
- if v := os .Getenv ("ELKALIASES_TOKEN " ); v == "" {
257
+ if v := os .Getenv ("ELASTICSEARCH_API_KEY " ); v == "" {
258
258
t .Fatal ("ELKALIASES_TOKEN must be set for acceptance tests" )
259
259
}
260
260
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
docker compose -f test/docker-compose.yml up -d --wait
4
- TF_ACC=1 ELKALIASES_URL =http://localhost:9200 ELKALIASES_TOKEN =empty go test ./provider -v
4
+ TF_ACC=1 ELASTICSEARCH_ENDPOINT =http://localhost:9200 ELASTICSEARCH_API_KEY =empty go test ./provider -v
5
5
ret=$( echo $? )
6
6
docker compose -f test/docker-compose.yml down
7
7
You can’t perform that action at this time.
0 commit comments