Skip to content

Commit

Permalink
fix node devices test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Sep 15, 2024
1 parent d37b41e commit 3f28376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libvirt/data_source_libvirt_node_devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ func TestAccLibvirtNodeDevicesDataSource(t *testing.T) {
Config: testAccDataSourceNodeDevicesPci,
Check: resource.ComposeTestCheckFunc(
resource.TestMatchResourceAttr(
"data.libvirt_node_devices.node", "devices[0]", regexp.MustCompile(`^pci_\d{4}_\d{2}_\d{2}_\d{1}`)),
"data.libvirt_node_devices.node", "devices.0", regexp.MustCompile(`^pci_\d{4}_\d{2}_\d{2}_\d{1}`)),
),
},
{
Config: testAccDataSourceNodeDevicesSystem,
Check: resource.ComposeTestCheckFunc(
resource.TestMatchResourceAttr(
"data.libvirt_node_devices.node", "devices[0]", regexp.MustCompile(`^computer$`)),
"data.libvirt_node_devices.node", "devices.0", regexp.MustCompile(`^computer$`)),
),
},
},
Expand Down

0 comments on commit 3f28376

Please sign in to comment.