Skip to content

Commit

Permalink
rename TestCheckResourceInt64AttrJsonEq -> TestCheckResourceJsonEq
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Feb 21, 2025
1 parent d4dd621 commit a43bf44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (o resourceTelemetryServiceRegistryEntry) testChecks(t testing.TB, rType, r

// required and computed attributes can always be checked
result.append(t, "TestCheckResourceAttr", "name", o.name)
result.append(t, "TestCheckResourceInt64AttrJsonEq", "application_schema", o.applicationSchema)
result.append(t, "TestCheckResourceJsonEq", "application_schema", o.applicationSchema)
result.append(t, "TestCheckResourceAttr", "storage_schema_path", o.storageSchemaPath)
result.append(t, "TestCheckResourceAttrSet", "version")
result.append(t, "TestCheckResourceAttr", "built_in", "false")
Expand Down
4 changes: 2 additions & 2 deletions apstra/test_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func (o *testChecks) append(t testing.TB, testCheckFuncName string, testCheckFun

o.checks = append(o.checks, testcheck.TestCheckResourceInt64AttrBetween(o.path, testCheckFuncArgs[0], int64min, int64max))
o.logLines.appendf("TestCheckResourceInt64AttrBetween(%s, %q, %d, %d)", o.path, testCheckFuncArgs[0], int64min, int64max)
case "TestCheckResourceInt64AttrJsonEq":
case "TestCheckResourceJsonEq":
if len(testCheckFuncArgs) != 2 {
t.Fatalf("%s requires 2 args, got %d", testCheckFuncName, len(testCheckFuncArgs))
}
Expand All @@ -666,7 +666,7 @@ func (o *testChecks) append(t testing.TB, testCheckFuncName string, testCheckFun
}
return nil
}))
o.logLines.appendf("TestCheckResourceInt64AttrJsonEq(%s, %q %q)", o.path, testCheckFuncArgs[0], testCheckFuncArgs[1])
o.logLines.appendf("TestCheckResourceJsonEq(%s, %q %q)", o.path, testCheckFuncArgs[0], testCheckFuncArgs[1])
}
}

Expand Down

0 comments on commit a43bf44

Please sign in to comment.