Skip to content

Commit

Permalink
bump module to go 1.22, update opslevel-go submodule hash (#411)
Browse files Browse the repository at this point in the history
* bump module to go 1.22, update opslevel-go submodule hash

* update opslevel-go submodule hash

* fix local tests
  • Loading branch information
davidbloss authored Jul 26, 2024
1 parent 20e5004 commit 76bb2ed
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Dependency-20240724-134715.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Dependency
body: bump go module version to 1.22
time: 2024-07-24T13:47:15.127839-05:00
3 changes: 3 additions & 0 deletions .changes/unreleased/Dependency-20240724-134750.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Dependency
body: bump github.com/hashicorp/terraform-plugin-framework to v1.10.0
time: 2024-07-24T13:47:50.22434-05:00
3 changes: 3 additions & 0 deletions .changes/unreleased/Dependency-20240724-134806.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Dependency
body: bump github.com/hashicorp/terraform-plugin-framework-validators to v0.13.0
time: 2024-07-24T13:48:06.886955-05:00
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/opslevel/terraform-provider-opslevel

go 1.21
go 1.22

require (
github.com/hashicorp/terraform-plugin-framework v1.9.0
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
github.com/hashicorp/terraform-plugin-framework v1.10.0
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/opslevel/opslevel-go/v2024 v2024.7.5
github.com/relvacode/iso8601 v1.4.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e
github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM=
github.com/hashicorp/terraform-plugin-docs v0.13.0 h1:6e+VIWsVGb6jYJewfzq2ok2smPzZrt1Wlm9koLeKazY=
github.com/hashicorp/terraform-plugin-docs v0.13.0/go.mod h1:W0oCmHAjIlTHBbvtppWHe8fLfZ2BznQbuv8+UD8OucQ=
github.com/hashicorp/terraform-plugin-framework v1.9.0 h1:caLcDoxiRucNi2hk8+j3kJwkKfvHznubyFsJMWfZqKU=
github.com/hashicorp/terraform-plugin-framework v1.9.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg=
github.com/hashicorp/terraform-plugin-framework v1.10.0 h1:xXhICE2Fns1RYZxEQebwkB2+kXouLC932Li9qelozrc=
github.com/hashicorp/terraform-plugin-framework v1.10.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0 h1:bxZfGo9DIUoLLtHMElsu+zwqI4IsMZQBRRy4iLzZJ8E=
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0/go.mod h1:wGeI02gEhj9nPANU62F2jCaHjXulejm/X+af4PdZaNo=
github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co=
github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ=
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
Expand Down
9 changes: 2 additions & 7 deletions tests/local/resource_filter.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,18 @@ run "resource_filter_big_predicate_two" {
opslevel = opslevel.fake
}

assert {
condition = opslevel_filter.big.predicate[1].case_sensitive == true
error_message = "expected case_sensitive to be true for opslevel_filter.big.predicate[1]"
}

assert {
condition = opslevel_filter.big.predicate[1].key == "lifecycle_index"
error_message = "wrong predicate 'key' for opslevel_filter.big.predicate[1]"
}

assert {
condition = opslevel_filter.big.predicate[1].key_data == "big_predicate"
condition = opslevel_filter.big.predicate[1].key_data == null
error_message = "wrong 'key_data' for opslevel_filter.big.predicate[1]"
}

assert {
condition = opslevel_filter.big.predicate[1].type == "ends_with"
condition = opslevel_filter.big.predicate[1].type == "greater_than_or_equal_to"
error_message = "wrong predicate 'type' for opslevel_filter.big.predicate[1]"
}

Expand Down
8 changes: 3 additions & 5 deletions tests/local/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ resource "opslevel_filter" "big" {
value = "1"
}
predicate {
case_sensitive = true
key = "lifecycle_index"
key_data = "big_predicate"
type = "ends_with"
value = "1"
key = "lifecycle_index"
type = "greater_than_or_equal_to"
value = "1"
}
}

Expand Down

0 comments on commit 76bb2ed

Please sign in to comment.