-
Notifications
You must be signed in to change notification settings - Fork 92
/
template.go
42 lines (35 loc) · 933 Bytes
/
template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package tmpl
import (
"testing"
"github.com/linode/terraform-provider-linode/linode/acceptance"
)
type TemplateData struct {
Engine string
Label string
Region string
AllowedIP string
ReplicationType string
ClusterSize int
Encrypted bool
SSLConnection bool
}
func Basic(t *testing.T, label, engine, region string) string {
return acceptance.ExecuteTemplate(t,
"database_mysql_basic", TemplateData{
Engine: engine,
Label: label,
Region: region,
})
}
func Complex(t *testing.T, data TemplateData) string {
return acceptance.ExecuteTemplate(t,
"database_mysql_complex", data)
}
func ComplexUpdates(t *testing.T, data TemplateData) string {
return acceptance.ExecuteTemplate(t,
"database_mysql_complex_updates", data)
}
func DataBasic(t *testing.T, data TemplateData) string {
return acceptance.ExecuteTemplate(t,
"database_mysql_data_basic", data)
}