Skip to content

Commit

Permalink
Fixing navigation (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendbennett committed Jan 16, 2024
1 parent f5abf73 commit 648730a
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 47 deletions.
4 changes: 0 additions & 4 deletions website/data/plugin-testing-nav-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@
"title": "Number",
"path": "acceptance-tests/known-value-checks/number"
},
{
"title": "Null ",
"path": "acceptance-tests/known-value-checks/null"
},
{
"title": "Object",
"path": "acceptance-tests/known-value-checks/object"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func TestExpectKnownValue_CheckPlan_Bool(t *testing.T) {
{
Config: `resource "test_resource" "one" {
bool_attribute = true
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ The `other` parameter passed to the `CheckValue` method is one of the following

Refer to the following built-in known value checks for implementations that handle the different types that can be passed to the `CheckValue` method in the `other` parameter:

* [BoolValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#BoolValueExact)
* [Float64ValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#Float64ValueExact)
* [Int64ValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#Int64ValueExact)
* [ListValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#ListValueExact)
* [MapValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#MapValueExact)
* [NumberValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#NumberValueExact)
* [ObjectValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#ObjectValueExact)
* [SetValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#SetValueExact)
* [StringValueExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#StringValueExact)
* [BoolExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#BoolExact)
* [Float64Exact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#Float64Exact)
* [Int64Exact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#Int64Exact)
* [ListExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#ListExact)
* [MapExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#MapExact)
* [NumberExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#NumberExact)
* [ObjectExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#ObjectExact)
* [SetExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#SetExact)
* [StringExact](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-testing/knownvalue#StringExact)
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func TestExpectKnownValue_CheckPlan_Float64(t *testing.T) {
{
Config: `resource "test_resource" "one" {
float_attribute = 1.23
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func TestExpectKnownValue_CheckPlan_Int64(t *testing.T) {
{
Config: `resource "test_resource" "one" {
int_attribute = 123
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ func TestExpectKnownValue_CheckPlan_List(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
// Provider definition omitted.
// Provider definition omitted.
Steps: []resource.TestStep{
{
Config: `resource "test_resource" "one" {
list_attribute = [
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -70,8 +69,7 @@ func TestExpectKnownValue_CheckPlan_ListPartial(t *testing.T) {
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -108,8 +106,7 @@ func TestExpectKnownValue_CheckPlan_ListElements(t *testing.T) {
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ func TestExpectKnownValue_CheckPlan_Map(t *testing.T) {
key1 = "value1"
key2 = "value2"
}
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -72,8 +71,7 @@ func TestExpectKnownValue_CheckPlan_MapPartial(t *testing.T) {
key1 = "value1"
key2 = "value2"
}
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -110,8 +108,7 @@ func TestExpectKnownValue_CheckPlan_MapElements(t *testing.T) {
key1 = "value1"
key2 = "value2"
}
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func TestExpectKnownValue_CheckPlan_Number(t *testing.T) {
{
Config: `resource "test_resource" "one" {
number_attribute = 123
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ func TestExpectKnownValue_CheckPlan_Object(t *testing.T) {
attr1 = "value1"
attr2 = "value2"
}
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -71,8 +70,7 @@ func TestExpectKnownValue_CheckPlan_ObjectPartial(t *testing.T) {
attr1 = "value1"
attr2 = "value2"
}
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ func TestExpectKnownValue_CheckPlan_Set(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
// Provider definition omitted.
// Provider definition omitted.
Steps: []resource.TestStep{
{
Config: `resource "test_resource" "one" {
set_attribute = [
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -70,8 +69,7 @@ func TestExpectKnownValue_CheckPlan_SetPartial(t *testing.T) {
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down Expand Up @@ -108,8 +106,7 @@ func TestExpectKnownValue_CheckPlan_SetElements(t *testing.T) {
"value1",
"value2"
]
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ func TestExpectKnownValue_CheckPlan_String(t *testing.T) {
{
Config: `resource "test_resource" "one" {
string_attribute = "str"
}
`,
}`,
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectKnownValue(
Expand Down

0 comments on commit 648730a

Please sign in to comment.