-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatasource_ip_arps_test.go
41 lines (33 loc) · 1.47 KB
/
datasource_ip_arps_test.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
package routeros
// Script generated with sample from device MikroTik 7.11.2 (stable) on CHR AMD-x86_64
import (
"testing"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)
const testDatasourceIpArps = "data.routeros_ip_arps.data"
func TestAccDatasourceIpArpsTest_basic(t *testing.T) {
for _, name := range testNames {
t.Run(name, func(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t)
testSetTransportEnv(t, name)
},
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
{
Config: testAccDatasourceIpArpsConfig(),
Check: resource.ComposeTestCheckFunc(
testResourcePrimaryInstanceId(testDatasourceIpRoutes),
),
},
},
})
})
}
}
func testAccDatasourceIpArpsConfig() string {
return providerConfig + `
data "routeros_ip_arps" "data" {}
`
}