Skip to content

Commit

Permalink
test: Add a minimum ROS version
Browse files Browse the repository at this point in the history
  • Loading branch information
vaerh committed Sep 19, 2024
1 parent d83bcfd commit 20f854e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routeros/resource_ip_dns_adlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ import (
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)

const testDnsAdlistMinVersion = "7.15"
const testResourceDnsAdlist = "routeros_dns_adlist.test"

func TestAccResourceDnsAdlistTest_basic(t *testing.T) {
if !testCheckMinVersion(t, testDnsAdlistMinVersion) {
t.Logf("Test skipped, the minimum required version is %v", testDnsAdlistMinVersion)
return
}

for _, name := range testNames {
t.Run(name, func(t *testing.T) {
resource.Test(t, resource.TestCase{
Expand Down

0 comments on commit 20f854e

Please sign in to comment.