Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 12, 2024
1 parent 860a317 commit 78d1731
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 505 deletions.
30 changes: 0 additions & 30 deletions docs/data-sources/example.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/functions/example.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "example function - scaffolding"
page_title: "example function - assert"
subcategory: ""
description: |-
Example function
Expand Down
33 changes: 21 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding Provider"
subcategory: ""
page_title: "Provider: Assert"
description: |-
The Assert provider provides functions to verify values in your Terraform configuration to make sure they meet specific criteria.
---

# scaffolding Provider
# ASSERT Provider

The Assert provider is a utility provider that helps practitioners
to simplify the way they write assertions in their Terraform configuration.

This provider does not manage any infrastructure, but instead provides a set of provider-defined functions
that can be used to assert that values in Terraform configuration meet specific criteria.

Use the navigation to the left to read about the available resources.

## Example Usage

As of Terraform 1.8 and later, providers can implement functions that you can call from the Terraform configuration.

Define the provider as a `required_provider` to use its functions

```terraform
provider "scaffolding" {
# example configuration here
terraform {
required_providers {
assert = {
source = "bschaatsbergen/assert"
version = ">= 1.0.0"
}
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional
## Limitations

- `endpoint` (String) Example provider attribute
31 changes: 0 additions & 31 deletions docs/resources/example.md

This file was deleted.

3 changes: 0 additions & 3 deletions examples/data-sources/scaffolding_example/data-source.tf

This file was deleted.

11 changes: 8 additions & 3 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
provider "scaffolding" {
# example configuration here
}
terraform {
required_providers {
assert = {
source = "bschaatsbergen/assert"
version = ">= 1.0.0"
}
}
}
3 changes: 0 additions & 3 deletions examples/resources/scaffolding_example/resource.tf

This file was deleted.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hashicorp/terraform-provider-scaffolding-framework
module github.com/bschaatsbergen/terraform-provider-assert

go 1.21

Expand All @@ -7,7 +7,6 @@ require (
github.com/hashicorp/terraform-plugin-docs v0.18.0
github.com/hashicorp/terraform-plugin-framework v1.6.1
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.7.0
)

Expand Down Expand Up @@ -40,6 +39,7 @@ require (
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.20.0 // indirect
github.com/hashicorp/terraform-json v0.21.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
Expand Down
105 changes: 0 additions & 105 deletions internal/provider/example_data_source.go

This file was deleted.

32 changes: 0 additions & 32 deletions internal/provider/example_data_source_test.go

This file was deleted.

6 changes: 3 additions & 3 deletions internal/provider/example_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestExampleFunction_Known(t *testing.T) {
{
Config: `
output "test" {
value = provider::scaffolding::example("testvalue")
value = provider::assert::example("testvalue")
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand All @@ -43,7 +43,7 @@ func TestExampleFunction_Null(t *testing.T) {
{
Config: `
output "test" {
value = provider::scaffolding::example(null)
value = provider::assert::example(null)
}
`,
// The parameter does not enable AllowNullValue
Expand All @@ -67,7 +67,7 @@ func TestExampleFunction_Unknown(t *testing.T) {
}
output "test" {
value = provider::scaffolding::example(terraform_data.test.output)
value = provider::assert::example(terraform_data.test.output)
}
`,
Check: resource.ComposeAggregateTestCheckFunc(
Expand Down

0 comments on commit 78d1731

Please sign in to comment.