Skip to content

Commit

Permalink
Merge pull request #375 from simondeziel/more-api-checks
Browse files Browse the repository at this point in the history
Test for required API extensions in network LB and zones tests
  • Loading branch information
adamcstephens authored Nov 14, 2023
2 parents 0116089 + 9544633 commit f0dfaa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lxd/resource_lxd_network_lb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestAccNetworkLB_basic(t *testing.T) {
var lb api.NetworkLoadBalancer

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheckAPIExtensions(t, []string{"network_load_balancer"}) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand All @@ -39,7 +39,7 @@ func TestAccNetworkLB_withConfig(t *testing.T) {
}

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheckAPIExtensions(t, []string{"network_load_balancer"}) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down Expand Up @@ -71,7 +71,7 @@ func TestAccNetworkLB_withBackend(t *testing.T) {
}

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheckAPIExtensions(t, []string{"network_load_balancer"}) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down
2 changes: 1 addition & 1 deletion lxd/resource_lxd_network_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestAccNetworkZone_project(t *testing.T) {
projectName := petname.Name()

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheckAPIExtensions(t, []string{"projects_networks_zones"}) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down

0 comments on commit f0dfaa9

Please sign in to comment.