Skip to content

Commit

Permalink
fix test (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
yec-akamai authored Apr 23, 2024
1 parent b336bd4 commit 507c47a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions linode/kernels/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ func TestAccDataSourceKernels_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "kernels.0.architecture", "x86_64"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.deprecated", "false"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.kvm", "true"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.label", "Latest 64 bit (6.2.9-x86_64-linode160)"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.pvops", "true"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.version", "6.2.9"),
resource.TestCheckResourceAttr(resourceName, "kernels.0.xen", "false"),
acceptance.CheckResourceAttrContains(resourceName, "kernels.0.label", "Latest 64 bit"),
),
},
{
Expand Down
12 changes: 2 additions & 10 deletions linode/kernels/tmpl/data_filter.gotf
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,15 @@ data "linode_kernels" "kernels" {

filter {
name = "label"
values = ["Latest 64 bit (6.2.9-x86_64-linode160)"]
values = ["Latest 64 bit"]
match_by="substring"
}

filter {
name = "pvops"
values = [true]
}

filter {
name = "version"
values = ["6.2.9"]
}

filter {
name = "xen"
values = ["false"]
}
}

{{ end }}

0 comments on commit 507c47a

Please sign in to comment.